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.
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
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.
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???????
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.