summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-23 22:23:42 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-23 22:23:42 (GMT)
commit8bb82f430c7ae7b9a424739c4b9759d7af0d9662 (patch)
treed1c1b1661b173319226c2fc987706b3c83f95194
parent1198106e3c701588bfa6d20abc6dc216490d064c (diff)
downloadCMake-8bb82f430c7ae7b9a424739c4b9759d7af0d9662.zip
CMake-8bb82f430c7ae7b9a424739c4b9759d7af0d9662.tar.gz
CMake-8bb82f430c7ae7b9a424739c4b9759d7af0d9662.tar.bz2
ENH: Add a line to Add/Remove programs to uninstall
-rw-r--r--Modules/NSIS.template.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in
index 8ed84d4..bcee37f 100644
--- a/Modules/NSIS.template.in
+++ b/Modules/NSIS.template.in
@@ -362,6 +362,10 @@ Section "Installer Section" InstSection
;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_DIRECTORY@" \
+ "DisplayName" "@CPACK_PACKAGE_INSTALL_DIRECTORY@ -- @CPACK_PACKAGE_DESCRIPTION_SUMMARY@"
+WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_DIRECTORY@" \
+ "UninstallString" "$INSTDIR\Uninstall.exe"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
@@ -416,6 +420,7 @@ Section "Uninstall"
;Remove the uninstaller itself.
Delete "$INSTDIR\Uninstall.exe"
+ DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_DIRECTORY@"
;Remove the installation directory if it is empty.
RMDir "$INSTDIR"