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: LaunchAppAndWait not executing?
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
Apr 09, 2010
12:01 PM
LaunchAppAndWait not executing?
I have an InstallScript Custom Action in a Basic MSI project that calls the LaunchAppAndWait function to execute 7zip to extract a file. The zipped file is already on the target machine. The install runs successfully, but it doesn't extract the zipped file.
Here is the message when I output the szApp and szCmd parameters from LaunchAppAndWait during the install:
C:\Program Files\7zip\7za.exe" e "C:\Program Files\OC4J\oc4j.zip" "-oC:\Program Files\OC4J"
I also print out the error code using LAAW_PARAMETERS.nLaunchResult. It returns 0, which is no error for 7zip, however the command doesn't seem to have done anything.
I have the message dialog popping up immediately after calling LaunchAppAndWait, so it stops the installation until I hit the OK button. When the dialog is up, I execute the exact same command from the DOS prompt, and it works fine. I don't understand why it isn't working in InstallShield. Can anybody shed some light on what is going wrong?
Here is the message when I output the szApp and szCmd parameters from LaunchAppAndWait during the install:
C:\Program Files\7zip\7za.exe" e "C:\Program Files\OC4J\oc4j.zip" "-oC:\Program Files\OC4J"
I also print out the error code using LAAW_PARAMETERS.nLaunchResult. It returns 0, which is no error for 7zip, however the command doesn't seem to have done anything.
I have the message dialog popping up immediately after calling LaunchAppAndWait, so it stops the installation until I hit the OK button. When the dialog is up, I execute the exact same command from the DOS prompt, and it works fine. I don't understand why it isn't working in InstallShield. Can anybody shed some light on what is going wrong?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 22, 2010
05:47 AM
szApp = "C:\\Program Files\\7zip\\7za.exe";
LongPathToQuotes(szApp, TRUE);
szCmd = "e " + "\"" + "C:\\Program Files\\OC4J\\oc4j.zip" + "\"" + " -o " + "\"" + "C:\\Program Files\\OC4J" + "\"";
Now try LaunchAppAndWait with these two parameters.
LongPathToQuotes(szApp, TRUE);
szCmd = "e " + "\"" + "C:\\Program Files\\OC4J\\oc4j.zip" + "\"" + " -o " + "\"" + "C:\\Program Files\\OC4J" + "\"";
Now try LaunchAppAndWait with these two parameters.