I have a issue with the return code of vbScript, I tried with the custom action "execute inline code" and "launch attached file".
This is the code, that I used with the action "launch attached file":
Code: Select all
Function MyVBScriptCA
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "C:\\SETUP\\DRIVER\\sp69009\\Setup.exe -s",, True
If Err.Number <> "0" Then
' return error
MyVBScriptCA = 3
Exit Function
End If
' return success
MyVBScriptCA = 1
Exit Function
End Function
The custom action return the following error code 1720. The code works correctly out of the project.
Thanks,
Mark.
FOLLOW US
Get the latest news in Application Packaging