#26 Uninstall does not work if installdir != default installdir

open
5
2011-09-01
2011-09-01
msd
No

Tested with 0.2.0 Milestone 1

Uninstall does not work if installdir != default installdir.
This happens only if you try to install an the installer has found a existing version.

Reason: The location given to the uninstaller ist alway the default install directory

Solution:
Change the "Run the uninstaller" section in the velocity functions.vm template

; Run the uninstaller
uninst:
ReadRegStr $nsisR1 ${nsisProdUninstRootKey} "${nsisProdUninstKey}" "InstallDir"
ClearErrors
ExecWait '$nsisR0 _?=$nsisR1'

Before it was
ExecWait '$nsisR0 _?=$nsisInstDir'

Discussion