sbaebler
01-30-2008, 04:39 AM
Hello
In order to configure the application I install, I need it to be run once and shut down again after 5 seconds. I tried to do this with the Visual Basic Script:
Dim WshShell, oExec
Set WshShell = WScript.CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("application.exe")
Wscript.Sleep 5000
oExec.Terminate()
I set the Wait for Action Option to yes and the Ignore Exit Code to no.
The behaviour is as expected, when I run it in the internet explorer, but when I add it as Custom action to Installshield Express, I just get an error "...A script required for this install to complete could not be run. ..." during the installation.
Am I not allowed to launch applications in a vbs in Installshield? Is there a better way to do this (maybe using InstallScript instead of using VBScript) ?
In order to configure the application I install, I need it to be run once and shut down again after 5 seconds. I tried to do this with the Visual Basic Script:
Dim WshShell, oExec
Set WshShell = WScript.CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("application.exe")
Wscript.Sleep 5000
oExec.Terminate()
I set the Wait for Action Option to yes and the Ignore Exit Code to no.
The behaviour is as expected, when I run it in the internet explorer, but when I add it as Custom action to Installshield Express, I just get an error "...A script required for this install to complete could not be run. ..." during the installation.
Am I not allowed to launch applications in a vbs in Installshield? Is there a better way to do this (maybe using InstallScript instead of using VBScript) ?