Run Program command not working
Posted: Sat Aug 05, 2006 1:32 pm
The run program command does not start the program.
I have debugged the script and the Run statement is executed but the program is not started (also checked with taskmanager).
I have also checked if the program can be started by hand from any working folder with the absoloute path so being in c:\\ and then run c:\\program files\\testapp\\TestApp.exe and this works.
I also tried the Run As command in your script but also doesn't work.
Any clues?
<<Code Folding Region>>
Comment: End of Installation
Hide Dialog
Display Dialog: finish, wait for dialog to return (modal)
if Variable SILENT Equals FALSE
if Variable REBOOTCOMPUTER Equals TRUE
if Variable SUCCESS Equals REBOOT
Reboot Computer
end
end
if Variable RUNAPP Equals TRUE
if Variable REMOVE Equals FALSE
if Variable SUCCESS Equals COMPLETE
Run Program $TARGETDIR$\\TestApp.exe
Comment: TO-DO: Insert command that starts your application here
end
end
end
end
<<Code Folding Region>>
I have debugged the script and the Run statement is executed but the program is not started (also checked with taskmanager).
I have also checked if the program can be started by hand from any working folder with the absoloute path so being in c:\\ and then run c:\\program files\\testapp\\TestApp.exe and this works.
I also tried the Run As command in your script but also doesn't work.
Any clues?
<<Code Folding Region>>
Comment: End of Installation
Hide Dialog
Display Dialog: finish, wait for dialog to return (modal)
if Variable SILENT Equals FALSE
if Variable REBOOTCOMPUTER Equals TRUE
if Variable SUCCESS Equals REBOOT
Reboot Computer
end
end
if Variable RUNAPP Equals TRUE
if Variable REMOVE Equals FALSE
if Variable SUCCESS Equals COMPLETE
Run Program $TARGETDIR$\\TestApp.exe
Comment: TO-DO: Insert command that starts your application here
end
end
end
end
<<Code Folding Region>>