move documentation links to NSIS Menu
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5475 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d017b43324
commit
575a4ffee5
1 changed files with 4 additions and 103 deletions
|
@ -283,19 +283,10 @@ ${MementoSection} "Desktop Shortcut" SecShortcuts
|
||||||
SectionIn 1 2
|
SectionIn 1 2
|
||||||
SetOutPath $INSTDIR
|
SetOutPath $INSTDIR
|
||||||
!ifndef NO_STARTMENUSHORTCUTS
|
!ifndef NO_STARTMENUSHORTCUTS
|
||||||
CreateDirectory $SMPROGRAMS\NSIS
|
CreateShortCut "$SMPROGRAMS\NSIS.lnk" "$INSTDIR\NSIS.exe"
|
||||||
|
|
||||||
CreateShortCut "$SMPROGRAMS\NSIS\NSIS Menu.lnk" "$INSTDIR\NSIS.exe" ""
|
|
||||||
|
|
||||||
CreateShortCut "$SMPROGRAMS\NSIS\MakeNSISW (Compiler GUI).lnk" "$INSTDIR\makensisw.exe"
|
|
||||||
|
|
||||||
CreateShortCut "$SMPROGRAMS\NSIS\NSIS Documentation.lnk" "$INSTDIR\NSIS.chm"
|
|
||||||
WriteINIStr "$SMPROGRAMS\NSIS\NSIS Site.url" "InternetShortcut" "URL" "http://nsis.sourceforge.net/"
|
|
||||||
CreateShortCut "$SMPROGRAMS\NSIS\Uninstall NSIS.lnk" "$INSTDIR\uninst-nsis.exe"
|
|
||||||
|
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
CreateShortCut "$DESKTOP\Nullsoft Install System.lnk" "$INSTDIR\NSIS.exe"
|
CreateShortCut "$DESKTOP\NSIS.lnk" "$INSTDIR\NSIS.exe"
|
||||||
|
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
|
@ -801,75 +792,6 @@ Section -post
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "NoModify" "1"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "NoModify" "1"
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "NoRepair" "1"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS" "NoRepair" "1"
|
||||||
|
|
||||||
!ifndef NO_STARTMENUSHORTCUTS
|
|
||||||
IfFileExists $SMPROGRAMS\NSIS "" no_startshortcuts
|
|
||||||
|
|
||||||
SetDetailsPrint textonly
|
|
||||||
DetailPrint "Creating Shortcuts..."
|
|
||||||
SetDetailsPrint listonly
|
|
||||||
|
|
||||||
IfFileExists $INSTDIR\Examples 0 +2
|
|
||||||
CreateShortCut "$SMPROGRAMS\NSIS\NSIS Examples Directory.lnk" "$INSTDIR\Examples"
|
|
||||||
|
|
||||||
; MakeNSISW
|
|
||||||
CreateDirectory $SMPROGRAMS\NSIS\Contrib
|
|
||||||
CreateShortCut "$SMPROGRAMS\NSIS\Contrib\MakeNSISw Readme.lnk" "$INSTDIR\Docs\makensisw\readme.txt"
|
|
||||||
|
|
||||||
; ZIP2EXE
|
|
||||||
IfFileExists "$INSTDIR\Bin\zip2exe.exe" 0 +2
|
|
||||||
CreateShortCut "$SMPROGRAMS\NSIS\Contrib\zip2exe (Create SFX).lnk" "$INSTDIR\Bin\zip2exe.exe"
|
|
||||||
|
|
||||||
; Modern UI
|
|
||||||
Push "Modern UI"
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; Splash
|
|
||||||
Push Splash
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; Advanced splash
|
|
||||||
Push AdvSplash
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; Math
|
|
||||||
Push Math
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; NSISdl
|
|
||||||
Push NSISdl
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; nsExec
|
|
||||||
Push nsExec
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; StartMenu
|
|
||||||
Push StartMenu
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; BgImage
|
|
||||||
Push BgImage
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; Banner
|
|
||||||
Push Banner
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; System
|
|
||||||
Push System
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; VPatch
|
|
||||||
Push VPatch
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
; InstallOptions
|
|
||||||
Push InstallOptions
|
|
||||||
Call AddReadmeToStartMenu
|
|
||||||
|
|
||||||
no_startshortcuts:
|
|
||||||
!endif
|
|
||||||
|
|
||||||
WriteUninstaller $INSTDIR\uninst-nsis.exe
|
WriteUninstaller $INSTDIR\uninst-nsis.exe
|
||||||
|
|
||||||
${MementoSectionSave}
|
${MementoSectionSave}
|
||||||
|
@ -1036,27 +958,6 @@ FunctionEnd
|
||||||
|
|
||||||
!endif # VER_MAJOR & VER_MINOR & VER_REVISION & VER_BUILD
|
!endif # VER_MAJOR & VER_MINOR & VER_REVISION & VER_BUILD
|
||||||
|
|
||||||
!ifndef NO_STARTMENUSHORTCUTS
|
|
||||||
Function AddReadmeToStartMenu
|
|
||||||
Pop $0
|
|
||||||
StrCpy $1 "$0 Readme"
|
|
||||||
IfFileExists $INSTDIR\Docs\$0\$0.txt 0 +3
|
|
||||||
StrCpy $0 Docs\$0\$0.txt
|
|
||||||
Goto create
|
|
||||||
IfFileExists $INSTDIR\Docs\$0\$0.html 0 +3
|
|
||||||
StrCpy $0 Docs\$0\$0.html
|
|
||||||
Goto create
|
|
||||||
IfFileExists $INSTDIR\Docs\$0\Readme.txt 0 +3
|
|
||||||
StrCpy $0 Docs\$0\Readme.txt
|
|
||||||
Goto create
|
|
||||||
IfFileExists $INSTDIR\Docs\$0\Readme.html 0 done
|
|
||||||
StrCpy $0 Docs\$0\Readme.html
|
|
||||||
create:
|
|
||||||
CreateShortCut $SMPROGRAMS\NSIS\Contrib\$1.lnk $INSTDIR\$0
|
|
||||||
done:
|
|
||||||
FunctionEnd
|
|
||||||
!endif
|
|
||||||
|
|
||||||
Function ShowReleaseNotes
|
Function ShowReleaseNotes
|
||||||
${If} ${FileExists} $WINDIR\hh.exe
|
${If} ${FileExists} $WINDIR\hh.exe
|
||||||
StrCpy $0 $WINDIR\hh.exe
|
StrCpy $0 $WINDIR\hh.exe
|
||||||
|
@ -1109,8 +1010,8 @@ Section Uninstall
|
||||||
DetailPrint "Deleting Files..."
|
DetailPrint "Deleting Files..."
|
||||||
SetDetailsPrint listonly
|
SetDetailsPrint listonly
|
||||||
|
|
||||||
RMDir /r $SMPROGRAMS\NSIS
|
Delete $SMPROGRAMS\NSIS.lnk
|
||||||
Delete "$DESKTOP\Nullsoft Install System.lnk"
|
Delete $DESKTOP\NSIS.lnk
|
||||||
Delete $INSTDIR\makensis.exe
|
Delete $INSTDIR\makensis.exe
|
||||||
Delete $INSTDIR\makensisw.exe
|
Delete $INSTDIR\makensisw.exe
|
||||||
Delete $INSTDIR\NSIS.exe
|
Delete $INSTDIR\NSIS.exe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue