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
- :
- LaunchAppAndWait hangs
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
‎Mar 22, 2010
07:31 AM
LaunchAppAndWait hangs
Hi,
I call LaunchAppAndWait to execute batch files after files are installed, In windows7 Operating system LaunchAppAndWait hangs.
I checked in WindowsTaskManager cmd.exe is in running state.
please chk the following code
svVDBatchFileDir=SUPPORTDIR;
ChangeDirectory(svVDBatchFileDir);
nResult = LaunchAppAndWait("Myfile.bat","",LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);
I call LaunchAppAndWait to execute batch files after files are installed, In windows7 Operating system LaunchAppAndWait hangs.
I checked in WindowsTaskManager cmd.exe is in running state.
please chk the following code
svVDBatchFileDir=SUPPORTDIR;
ChangeDirectory(svVDBatchFileDir);
nResult = LaunchAppAndWait("Myfile.bat","",LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 22, 2010
08:18 AM
go to the non-administrative command line and see if you can run the batch file that way. It's probably not completing due to the fact that it's running something on Windows7 that is not completing (Probably due to permissions).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 23, 2010
12:46 AM
Thanks for your quick reply Mumbles, my installer runs only user have administartor rights.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 23, 2010
06:35 AM
Try and create a setup.exe and right click 'run as administrator' not available on Windows7 for MSI's, only exe's.
If it works with the setup.exe as admistrator, that may be the easiest way to get it working.
If it works with the setup.exe as admistrator, that may be the easiest way to get it working.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 23, 2010
03:45 PM
Temporarily remove the 'HIDDEN' option so that you can see the error message in the CMD window. I don't use hidden for this reason.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2010
12:15 AM
thanks mumbles for your suggestion, When i try to run my setup.exe as run as adminstrator, Now LaunchAppAndWait works fine,
How i can set these run as administrator in installshield 2010.
How i can set these run as administrator in installshield 2010.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2010
08:08 AM
Try using LaunchApplication instead of LaunchAppAndWait. The "Additional Information" section of the following help topic has details that may apply to your scenario:
http://helpnet.flexerasoftware.com/Robo/BIN/Robo.dll?tpc=/robo/projects/installshield16langref/LaunchApplication.htm
I hope that helps.
http://helpnet.flexerasoftware.com/Robo/BIN/Robo.dll?tpc=/robo/projects/installshield16langref/LaunchApplication.htm
I hope that helps.