From 68e6784c69e216133d104b09abcf39a8e1a40b58 Mon Sep 17 00:00:00 2001 From: joostverburg Date: Tue, 23 Sep 2003 19:57:55 +0000 Subject: [PATCH] forgot a SetOutPath, improved desktop shortcut creation git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2959 212acab6-be3b-0410-9dea-997c60f758d6 --- Examples/makensis.nsi | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Examples/makensis.nsi b/Examples/makensis.nsi index 3041a286..3374a8dc 100644 --- a/Examples/makensis.nsi +++ b/Examples/makensis.nsi @@ -228,10 +228,17 @@ Section "Desktop Shortcut" SecIcons CreateShortCut "$SMPROGRAMS\NSIS\NSIS Documentation.lnk" "$INSTDIR\Docs\index.html" !endif - IfFileExists "$INSTDIR\NSIS.exe" "" +3 + IfFileExists "$INSTDIR\NSIS.exe" 0 +3 CreateShortCut "$DESKTOP\Nullsoft Install System.lnk" "$INSTDIR\NSIS.exe" - Goto +2 - CreateShortCut "$DESKTOP\Nullsoft Install System.lnk" "$INSTDIR\makensisw.exe" + Goto deskshortcut_done + + IfFileExists "$INSTDIR\makensisw.exe" 0 +3 + CreateShortCut "$DESKTOP\Nullsoft Install System.lnk" "$INSTDIR\makensisw.exe" + Goto deskshortcut_done + + CreateShortCut "$DESKTOP\Nullsoft Install System.lnk" "$INSTDIR\makensis.exe" + + deskshortcut_done: SectionEnd @@ -921,6 +928,7 @@ Section -post SetOutPath $INSTDIR\Contrib\Graphics\Icons File "..\Contrib\Graphics\Icons\modern-install.ico" File "..\Contrib\Graphics\Icons\modern-uninstall.ico" + SetOutPath $INSTDIR\Contrib\Graphics\Wizard File "..\Contrib\Graphics\Wizard\win.bmp" graphics: @@ -945,7 +953,7 @@ Section -post WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "NoRepair" "1" !ifndef NO_STARTMENUSHORTCUTS - IfFileExists $SMPROGRAMS\NSIS "" nofunshit + IfFileExists $SMPROGRAMS\NSIS "" no_startshortcuts SetDetailsPrint textonly DetailPrint "Creating Shortcuts..." @@ -1069,7 +1077,7 @@ Section -post Push "VPatch Readme" Call AddContribToStartMenu - nofunshit: + no_startshortcuts: !endif ; will only be removed if empty @@ -1277,4 +1285,4 @@ Section Uninstall SetDetailsPrint both -SectionEnd +SectionEnd \ No newline at end of file