Question : Call SOURCEDIR executable from embedded VBScript custom action

Hi,
I need a VBScript for a Wise Package Studio embedded vbscript custom action.  I need it to launch an executable located in the [SOURCEDIR} folder. The exe is located in the same folder as the MSI.

Thanks.

Answer : Call SOURCEDIR executable from embedded VBScript custom action

Can you try this:

strFileName=Session.Property("SOURCEDIR") & "MyExe.exe"
Set objShell = CreateObject("WScript.Shell")
objShell.Run strFileName, 1, True

Regards,

Rob.
Random Solutions  
 
programming4us programming4us