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
‎Aug 09, 2010
08:36 AM
LaunchAppAndWait not executing
I have an InstallScript Custom Action in a Basic MSI project that calls the LaunchAppAndWait function to execute Net Localgroup method. The install runs successfully, but it doesn't extract the zipped file.
Here is my call:
LaunchAppAndWait ("", szCommandLine, LAAW_OPTION_MAXIMIZED | LAAW_OPTION_WAIT)
Value of szCommandLine is:
C:\Windows\system32\NET localgroup ReportUsers >"C:\Program Files\ACCTGRP.txt"
I have also tried following an it didn't work:
LaunchAppAndWait (szpath, szCommandLine, LAAW_OPTION_MAXIMIZED | LAAW_OPTION_WAIT)
LaunchAppAndWait returns 0, which is no error, but the command doesn't seem to have done anything.
I have tried executing the exact same command from the DOS prompt, and it works fine. I don't understand why it isn't working in InstallShield. Can anyone help as I am totally lost.
Here is my call:
LaunchAppAndWait ("", szCommandLine, LAAW_OPTION_MAXIMIZED | LAAW_OPTION_WAIT)
Value of szCommandLine is:
C:\Windows\system32\NET localgroup ReportUsers >"C:\Program Files\ACCTGRP.txt"
I have also tried following an it didn't work:
LaunchAppAndWait (szpath, szCommandLine, LAAW_OPTION_MAXIMIZED | LAAW_OPTION_WAIT)
LaunchAppAndWait returns 0, which is no error, but the command doesn't seem to have done anything.
I have tried executing the exact same command from the DOS prompt, and it works fine. I don't understand why it isn't working in InstallShield. Can anyone help as I am totally lost.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 09, 2010
03:23 PM
What is the value of LAAW_PARAMETERS.nLaunchResult after LaunchAppAndWait returns?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 10, 2010
11:24 AM
If you're on an OS where UAC is present, it is also possible that the installation is writing it somewhere under ProgramData (since you're trying to write to Program Files and it is possibly being redirected to ProgramData).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 10, 2010
12:44 PM
Does it work if you just launch net.exe without redirecting (>) output to a file? If you do need to capture the output in a text file, perhaps see [thread=193982]this thread[/thread].
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)