Start New Discussion within our Software Development Community

if one installer class in my project and in custom action doing some procedure to validate the serial key using user interface editor during setup creation.

while installing the set up if the condition is not true the setup in rolling back it is installing.

code is as below that

Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)
            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")
                ''MsgBox("Entered Key is Not Valid")
                Throw New InstallException("Rollback Transaction")
            End If
        Catch ex As Exception
        End Try
    End Sub

    Public Overrides Sub Commit(ByVal savedState As System.Collections.IDictionary)

    End Sub

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

 Public Overrides Sub Uninstall(ByVal savedState As System.Collections.IDictionary)
    End Sub

please provide some help.......

Thanks in Advance

Can you please share how do you integrate serial key authorization within your project?
Much appreciated. You can PM me if you don't mind.


This article has been dead for over six months. Start a new discussion instead.