From 13634a7bf2cb03f069fcad0d86c790a71eb44ae6 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 9 Nov 2002 18:57:51 +0000 Subject: [PATCH] Uninstall shortcut too git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1648 212acab6-be3b-0410-9dea-997c60f758d6 --- Examples/Modern UI/StartMenu.nsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Examples/Modern UI/StartMenu.nsi b/Examples/Modern UI/StartMenu.nsi index c5a03b94..ef7bd495 100644 --- a/Examples/Modern UI/StartMenu.nsi +++ b/Examples/Modern UI/StartMenu.nsi @@ -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"