use install dir written to registry as potential default

This commit is contained in:
Stephen Birarda 2016-01-25 16:16:29 -08:00
parent 57f9d82efa
commit f4ece26271

View file

@ -378,7 +378,7 @@ Section "-Core installation"
@CPACK_NSIS_FULL_INSTALL@
;Store installation folder
WriteRegStr SHCTX "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "" $INSTDIR
WriteRegStr HKLM "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "" $INSTDIR
;Package the signed uninstaller produced by the inner loop
!ifndef INNER
@ -919,6 +919,8 @@ Section "Uninstall"
SectionEnd
!endif
InstallDirRegKey HKLM "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" ""
Function .onInit
!ifdef INNER