Archive: Upgrade Scenario in NSIS

Upgrade Scenario in NSIS
Hi Guys,

Here is what I am trying to do:
1. There is already an older version of the product that has been installed.
2. If a newer version is installed it will invoke the uninstall.exe in $INSTDIR.

Up to this point I got it working but my problem are the following:
1. When I use the code below. It always prompts the Reboot Dialog at the end even if I

ExecWait '"$INSTDIR\uninstall.exe" _?=$INSDIR'

2. When I uninstall using the Standalone uninstall.exe it doesn't show this reboot dialog.

Please help me. For those who encountered this one. You can also give some tips on any workaround I can try.

Thanks a lot! :)

not sure if it has anything to do with your issue, but are you sure $INSDIR is defined?
I guess it should be $INSTDIR instead.

Hi jpderuiter,

Thanks for the reply but it's just a typo on my side actually but in my code it is really INSTDIR.

I already figured out the problem and thanks anyway for your help. :)