cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
palanisamy
Level 7

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);
Labels (1)
0 Kudos
(6) Replies
mumbles
Level 7

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).
0 Kudos
palanisamy
Level 7

Thanks for your quick reply Mumbles, my installer runs only user have administartor rights.
0 Kudos
mumbles
Level 7

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.
0 Kudos
rguggisberg
Level 13

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.
0 Kudos
palanisamy
Level 7

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.
0 Kudos
DebbieL
Level 17

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.
0 Kudos