From 19890821fba4439d2e236e5b0a5f7d8ab6561eb4 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Wed, 19 Aug 2009 18:26:40 +0000 Subject: [PATCH] add llcon in Windows add remove software dialog --- windows/installer.nsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/windows/installer.nsi b/windows/installer.nsi index 3948fbf9..a7d641b4 100755 --- a/windows/installer.nsi +++ b/windows/installer.nsi @@ -6,6 +6,7 @@ !define INSTALLER_NAME "llconinstaller.exe" !define VS_REDIST_PATH "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\" !define VS_REDIST_EXE "vcredist_x86.exe" +!define UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" SetCompressor lzma @@ -14,12 +15,20 @@ Caption "${APP_NAME}" OutFile "${INSTALLER_NAME}" InstallDir "$PROGRAMFILES\${APP_NAME}" +LicenseText "License" +LicenseData "..\COPYING" + +Page license Page directory Page instfiles Section + ; add reg keys so that software appears in Windows "Add/Remove Software" + WriteRegStr HKLM "${UNINST_KEY}" "DisplayName" "${APP_NAME} (remove only)" + WriteRegStr HKLM "${UNINST_KEY}" "UninstallString" '"$INSTDIR\${UNINSTALL_EXE}"' + SetOutPath $INSTDIR ; main application @@ -55,6 +64,8 @@ SectionEnd Section "Uninstall" +DeleteRegKey HKLM "${UNINST_KEY}" + Delete "$DESKTOP\${APP_NAME}.lnk" Delete "$SMPROGRAMS\${APP_NAME}\${APP_NAME}.lnk" Delete "$SMPROGRAMS\${APP_NAME}\${UNINSTALL_EXE}.lnk"