This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Changes to LaunchAppandWait??
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2008
07:38 PM
Changes to LaunchAppandWait??
I am creating a new installer using IS 2008. Installscript MSI project. I have carried over code from my IS 12 Installscript MSI project. However it does not work.
I have messageboxed both my program and cmd line and they look right. I have even run the exe. by opening a cmd window, drag and drop the exe from the SUPPORTDIR location and typed in the cmd line and it works fine but it will not work from within my script.
sProgram = SUPPORTDIR ^ SUPPORT_FILE;
sCmdLine = '\"' + sConfigFilePath + '\" \"' + sURL + '\" \"' + sName + '\" \"' + sDescription + '\" ' + sName + ' Remove';
LaunchAppAndWait(sProgram, sCmdLine, LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);
In IS 12 did LaunchAppandWait use cmd.exe and IS2008 use Windows API function CreateProcess??
I'm at a loss!
I have messageboxed both my program and cmd line and they look right. I have even run the exe. by opening a cmd window, drag and drop the exe from the SUPPORTDIR location and typed in the cmd line and it works fine but it will not work from within my script.
sProgram = SUPPORTDIR ^ SUPPORT_FILE;
sCmdLine = '\"' + sConfigFilePath + '\" \"' + sURL + '\" \"' + sName + '\" \"' + sDescription + '\" ' + sName + ' Remove';
LaunchAppAndWait(sProgram, sCmdLine, LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);
In IS 12 did LaunchAppandWait use cmd.exe and IS2008 use Windows API function CreateProcess??
I'm at a loss!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2008
09:03 PM
I found part of the problem. I found the temp folder where my support files were extracted to. the problem is that 3 minutes later another temp folder was created and the installshield files were extracted there but mine were not. and when I messagebox the SUPPORTDIR path. It is the second folder that does not contain my files.
Any suggestions?
Any suggestions?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2008
09:39 PM
Sure, look at the sticky in this forum. A couple of years ago the InstallScript engine was refactored ( starting with IS12 ) and SUPPORTDIR is no longer valid. Do MsiGetProperty ( hMSI, "SUPPORTDIR"......); instead.