From 8bb82f430c7ae7b9a424739c4b9759d7af0d9662 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Sun, 23 Apr 2006 18:23:42 -0400 Subject: [PATCH] ENH: Add a line to Add/Remove programs to uninstall --- Modules/NSIS.template.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in index 8ed84d496..bcee37fc7 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"