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
This commit is contained in:
joostverburg 2003-09-23 19:57:55 +00:00
parent 97cde160db
commit 68e6784c69

View file

@ -228,10 +228,17 @@ Section "Desktop Shortcut" SecIcons
CreateShortCut "$SMPROGRAMS\NSIS\NSIS Documentation.lnk" "$INSTDIR\Docs\index.html" CreateShortCut "$SMPROGRAMS\NSIS\NSIS Documentation.lnk" "$INSTDIR\Docs\index.html"
!endif !endif
IfFileExists "$INSTDIR\NSIS.exe" "" +3 IfFileExists "$INSTDIR\NSIS.exe" 0 +3
CreateShortCut "$DESKTOP\Nullsoft Install System.lnk" "$INSTDIR\NSIS.exe" CreateShortCut "$DESKTOP\Nullsoft Install System.lnk" "$INSTDIR\NSIS.exe"
Goto +2 Goto deskshortcut_done
CreateShortCut "$DESKTOP\Nullsoft Install System.lnk" "$INSTDIR\makensisw.exe"
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 SectionEnd
@ -921,6 +928,7 @@ Section -post
SetOutPath $INSTDIR\Contrib\Graphics\Icons SetOutPath $INSTDIR\Contrib\Graphics\Icons
File "..\Contrib\Graphics\Icons\modern-install.ico" File "..\Contrib\Graphics\Icons\modern-install.ico"
File "..\Contrib\Graphics\Icons\modern-uninstall.ico" File "..\Contrib\Graphics\Icons\modern-uninstall.ico"
SetOutPath $INSTDIR\Contrib\Graphics\Wizard
File "..\Contrib\Graphics\Wizard\win.bmp" File "..\Contrib\Graphics\Wizard\win.bmp"
graphics: graphics:
@ -945,7 +953,7 @@ Section -post
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "NoRepair" "1" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "NoRepair" "1"
!ifndef NO_STARTMENUSHORTCUTS !ifndef NO_STARTMENUSHORTCUTS
IfFileExists $SMPROGRAMS\NSIS "" nofunshit IfFileExists $SMPROGRAMS\NSIS "" no_startshortcuts
SetDetailsPrint textonly SetDetailsPrint textonly
DetailPrint "Creating Shortcuts..." DetailPrint "Creating Shortcuts..."
@ -1069,7 +1077,7 @@ Section -post
Push "VPatch Readme" Push "VPatch Readme"
Call AddContribToStartMenu Call AddContribToStartMenu
nofunshit: no_startshortcuts:
!endif !endif
; will only be removed if empty ; will only be removed if empty
@ -1277,4 +1285,4 @@ Section Uninstall
SetDetailsPrint both SetDetailsPrint both
SectionEnd SectionEnd