Posted 13 May 2008 - 12:58
I am using INSTALLSCRIPT MSI project
I am trying to launch LaunchAppAndWait function in PatchUIAfter. All the paramters and exe works perfectly fine in OnBegin or between any dialog.
If i put the same code in PatchUIAfter InstallScript wont launch the exe(Basically LaunchAppandWait fails).
I checked all the parameters and exe is perfect. Guess this is issue with IS or known thing which i might not know.
Please suggest me is there any function available in installscript which can wait until my exe finishes its work other than LaunchAppandWait. I tried with Shell32.ShellExecuteA and it works fine but it wont wait until my exe is finished its work. Or can i make some how ShellExecuteA to wait in installscript to wait some how?
Need help in this
Posted 15 May 2008 - 05:10
Is there any doc available or is this issue with installscript.
Can some body suggest me how to launch and wait for the applcation result with installscript ?
Posted 26 May 2008 - 10:31
Check this below mentioned function
LaunchAppAndWait ( szProgram, szCmdLine, nOptions );
in nOptions use LAAW_OPTION_WAIT....
Posted 02 June 2008 - 15:28
guess its a bug with IS script. Now m launching from command line cmd and pass exe as parameter.
Thanks for the help
Posted 03 June 2008 - 18:20
1) use the ShellExceuteEx + WaitForSingleObject in a custom DLL function.
2) I have not tried this but it might work, Use ShellExecute with Start APPNAME /wait