Reinstall feature
Hi all,
I need to extend my installer, so that if the product is already installed and the setup is run, to first (if the user choses) uninstall the existent version or to (if the user choses) just install all the files without running the uninstaller first. For this task I have a few questions:
1) In the NSIS\Examples\makensis.nsi is done
ReadRegStr $R1 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "UninstallString"
ExecWait '$R1 _?=$INSTDIR'
What does the _?= mean?
2) When uninstalling I know for sure that one of my dlls is in use and can't be released. So it can't be deleted, so normally at the end it asks for a reboot. I also specifically ask for a reboot after a normal installation b/c all applications need the new dll. But in the reinstall scenario I would like to not have 2 reboots, one after running the uninstaller and one after installing, but only one reboot after both steps. So I need to run (from my installer) the uninstaller somehow, with a parameter that says that the reboot shouldn't be asked, and then somehow in my uninstaller code to repress the reboot if that param is specified. Can I do that? If yes, how can I check in the uninstaller the parameters?
Thx,
Viv