Uninstall shortcut too
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1648 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
595c77a38d
commit
13634a7bf2
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,7 @@ Section "modern.exe" SecCopyUI
|
|||
;Create shortcut
|
||||
CreateDirectory "$SMPROGRAMS\${MUI_STARTMENU_VARIABLE}"
|
||||
CreateShortCut "$SMPROGRAMS\${MUI_STARTMENU_VARIABLE}\Modern UI.lnk" "$INSTDIR\modern.exe"
|
||||
CreateShortCut "$SMPROGRAMS\${MUI_STARTMENU_VARIABLE}\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||
|
||||
;Write shortcut location to the registry (for Uninstaller)
|
||||
WriteRegStr HKCU "Software\${MUI_PRODUCT}" "Start Menu Folder" "${MUI_STARTMENU_VARIABLE}"
|
||||
|
@ -92,6 +93,7 @@ Section "Uninstall"
|
|||
;Remove shortcut
|
||||
ReadRegStr ${TEMP1} HKCU "Software\${MUI_PRODUCT}" "Start Menu Folder"
|
||||
Delete "$SMPROGRAMS\${TEMP1}\Modern UI.lnk"
|
||||
Delete "$SMPROGRAMS\${TEMP1}\Uninstall.lnk"
|
||||
RMDir "$SMPROGRAMS\${TEMP1}" ;Only if empty, so it won't delete other shortcuts
|
||||
|
||||
RMDir "$INSTDIR"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue