Old 29th May 2010, 19:23   #1
jammusi
Member
 
Join Date: Dec 2009
Posts: 78
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
jammusi is offline   Reply With Quote
Old 29th May 2010, 19:34   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,275
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 29th May 2010, 19:48   #3
jammusi
Member
 
Join Date: Dec 2009
Posts: 78
Hi Anders,

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

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
jammusi is offline   Reply With Quote
Old 29th May 2010, 20:15   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
http://nsis.sourceforge.net/When_I_u...he_uninstaller

Stu
Afrow UK is offline   Reply With Quote
Old 30th May 2010, 12:53   #5
jammusi
Member
 
Join Date: Dec 2009
Posts: 78
Thanks

Problem solved
jammusi is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump