Archive: ExecWait - not waiting for return


ExecWait - not waiting for return
Hi,

The first step of upgrading the application i am writing installer to is uninstalling the performing some steps of the uninstall of current installed version.

For that - i am lunching using ExecWait from withing the install section of the new version the existing uninstall.exe (with some command line parameters).

The problem is that although i use ExecWait - the setup process does not wait for the uninstall to return and continue like i have used only the Exec command.

I have searched the forum - but couldn't find anything.

I also wrote two other test installers to do the same (one lunching the other and waits) - but the test works perfectly.

Any idea - what can cause this behavior?

Tx

Oren


For nsis uninstallers: ExecWait '"$INSTDIR\uninstall.exe" _?=$INSTDIR'
for other uninstallers, you need to find out if it has a switch you can use for it to wait, if not, try http://nsis.sourceforge.net/ExecWait...th_Job_Objects


Hi Anders,

Thanks for the quick reply...but i am not sure i understand your answer :cry:

1. Yes - it is a nsis uninstaller.

2. What do you mean by ExecWait '"$INSTDIR\uninstall.exe" _?=$INSTDIR'?
Can you please elaborate what does this code do?

3. Generally speaking - shouldn't ExecWait be enough?

tx

Oren


http://nsis.sourceforge.net/When_I_u...he_uninstaller

Stu


Thanks

Problem solved