Ok, I have tried several variations of this and it does not seem to work...
Do I need to do anything in the custom actions command line argument property as well?
My custom action executable reads for these command line arguments:
Dim args As String() = Environment.GetCommandLineArgs
Dim user As String = ""
Dim pass As String = ""
If args.Length > 1 Then
Dim s As String = ""
For Each arg As String In args
If Microsoft.VisualBasic.Left(arg, 4) = "user" Then
user = Mid(arg, 6)
If Microsoft.VisualBasic.Left(arg, 4) = "pass" Then
pass = Mid(arg, 6)
End If
Next
This is what's in the CustomActionData property for the custom action that launches the exe:
/user=[USER] /pass=[PASS]
I have nothing in the arguments property.
But the exe is not being passed the arguments when it runs using this command:
misexec /i setup.msi user=MyUsername pass=MyPassword
???