I have one condition , if it true MSi installation/Uninstallation should terminate. How can i implement through vbscript in custom action. ?
anybody assist me.
I have one condition , if it true MSi installation/Uninstallation should terminate. How can i implement through vbscript in custom action. ?
anybody assist me.
Return Values of JScript and VBScript Custom Actions
msiDoActionStatusNoAction 0 Action not executed.
msiDoActionStatusSuccess IDOK = 1 Action completed successfully.
msiDoActionStatusUserExit IDCANCEL = 2 Premature termination by user.
msiDoActionStatusFailure IDABORT = 3 Unrecoverable error. Returned if there is an error during parsing or execution of the JScript or VBScript.
msiDoActionStatusSuspend IDRETRY = 4 Suspended sequence to be resumed later.
msiDoActionStatusFinished IDIGNORE = 5 Skip remaining actions. Not an error.
Function MyVBScriptCA()
    If Session.Property("CustomErrorStatus") <> "0" Then
        'return error
        MyVBScriptCA = 3
        Exit Function
    End If
    ' return success
    MyVBScriptCA = 1
    Exit Function
End Function
Also consider reading VBScript (and Jscript) MSI CustomActions suck.