add llcon in Windows add remove software dialog

This commit is contained in:
Volker Fischer 2009-08-19 18:26:40 +00:00
parent f37f28fc93
commit 19890821fb

View file

@ -6,6 +6,7 @@
!define INSTALLER_NAME "llconinstaller.exe" !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_PATH "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\"
!define VS_REDIST_EXE "vcredist_x86.exe" !define VS_REDIST_EXE "vcredist_x86.exe"
!define UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}"
SetCompressor lzma SetCompressor lzma
@ -14,12 +15,20 @@ Caption "${APP_NAME}"
OutFile "${INSTALLER_NAME}" OutFile "${INSTALLER_NAME}"
InstallDir "$PROGRAMFILES\${APP_NAME}" InstallDir "$PROGRAMFILES\${APP_NAME}"
LicenseText "License"
LicenseData "..\COPYING"
Page license
Page directory Page directory
Page instfiles Page instfiles
Section 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 SetOutPath $INSTDIR
; main application ; main application
@ -55,6 +64,8 @@ SectionEnd
Section "Uninstall" Section "Uninstall"
DeleteRegKey HKLM "${UNINST_KEY}"
Delete "$DESKTOP\${APP_NAME}.lnk" Delete "$DESKTOP\${APP_NAME}.lnk"
Delete "$SMPROGRAMS\${APP_NAME}\${APP_NAME}.lnk" Delete "$SMPROGRAMS\${APP_NAME}\${APP_NAME}.lnk"
Delete "$SMPROGRAMS\${APP_NAME}\${UNINSTALL_EXE}.lnk" Delete "$SMPROGRAMS\${APP_NAME}\${UNINSTALL_EXE}.lnk"