0

Hi,

I want to know while creating setup how to put serial key form and validate it during the setup installation in c# vs2005.

Thanks in Advance.

3
Contributors
5
Replies
8
Views
5 Years
Discussion Span
Last Post by abelLazm
0

I have added the form and getting the values during setup install but if the serial key is not valid it is not rolling back the setup
my code is like that

Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)
        Try
            MyBase.Install(stateSaver)
            myInput = Me.Context.Parameters.Item("Message")
            If myInput Is Nothing Then
                myInput = "Please Enter the Serail Key"
            ElseIf checkserailkeyas(myInput) = True Then
                MsgBox("Registratrion Sucessfull")
            Else
                'MsgBox("Entered Key is Not Valid")
                Throw New InstallException("Rollback Transaction")
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub


Public Overrides Sub Rollback(ByVal savedState As System.Collections.IDictionary)
        MyBase.Rollback(savedState)
    End Sub
0

I believe this is the C# forum 0.0. You should re-post in the VB forums for correctness and people who can better answer your question.

0

I believe this is the C# forum 0.0. You should re-post in the VB forums for correctness and people who can better answer your question.

Why one should ask C# question in VB forum???????

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.