mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 03:19:40 +00:00
[ROSBE]
Add RosBE Version to the shortcut names. svn path=/trunk/RosBE/; revision=2221
This commit is contained in:
parent
0f302eeee8
commit
837811b285
@ -279,14 +279,14 @@ Section -StartMenuShortcuts SEC05
|
||||
;;
|
||||
;; Add our start menu shortcuts.
|
||||
;;
|
||||
IfFileExists "$SMPROGRAMS\$ICONS_GROUP\ReactOS Build Environment.lnk" +13 0
|
||||
IfFileExists "$SMPROGRAMS\$ICONS_GROUP\ReactOS Build Environment ${PRODUCT_VERSION}.lnk" +13 0
|
||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||
CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
|
||||
SetOutPath $REACTOS_SOURCE_DIRECTORY
|
||||
IfFileExists "$INSTDIR\RosBE.cmd" 0 +2
|
||||
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\ReactOS Build Environment.lnk" "$SYSDIR\cmd.exe" '/t:0A /k "$INSTDIR\RosBE.cmd"' "$INSTDIR\rosbe.ico"
|
||||
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\ReactOS Build Environment ${PRODUCT_VERSION}.lnk" "$SYSDIR\cmd.exe" '/t:0A /k "$INSTDIR\RosBE.cmd"' "$INSTDIR\rosbe.ico"
|
||||
IfFileExists "$INSTDIR\RosBE.ps1" 0 +2
|
||||
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\ReactOS Build Environment - PS.lnk" "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" "-noexit &'$INSTDIR\RosBE.ps1'" "$INSTDIR\rosbe.ico"
|
||||
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\ReactOS Build Environment ${PRODUCT_VERSION} - PS.lnk" "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" "-noexit &'$INSTDIR\RosBE.ps1'" "$INSTDIR\rosbe.ico"
|
||||
SetOutPath $INSTDIR
|
||||
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall RosBE.lnk" \
|
||||
"$INSTDIR\Uninstall.exe"
|
||||
@ -303,12 +303,12 @@ Section /o "Desktop Shortcuts" SEC06
|
||||
;;
|
||||
;; Add our desktop shortcuts.
|
||||
;;
|
||||
IfFileExists "$DESKTOP\ReactOS Build Environment.lnk" +6 0
|
||||
IfFileExists "$DESKTOP\ReactOS Build Environment ${PRODUCT_VERSION}.lnk" +6 0
|
||||
SetOutPath $REACTOS_SOURCE_DIRECTORY
|
||||
IfFileExists "$INSTDIR\RosBE.cmd" 0 +2
|
||||
CreateShortCut "$DESKTOP\ReactOS Build Environment.lnk" "$SYSDIR\cmd.exe" '/t:0A /k "$INSTDIR\RosBE.cmd"' "$INSTDIR\rosbe.ico"
|
||||
CreateShortCut "$DESKTOP\ReactOS Build Environment ${PRODUCT_VERSION}.lnk" "$SYSDIR\cmd.exe" '/t:0A /k "$INSTDIR\RosBE.cmd"' "$INSTDIR\rosbe.ico"
|
||||
IfFileExists "$INSTDIR\RosBE.ps1" 0 +2
|
||||
CreateShortCut "$DESKTOP\ReactOS Build Environment - PS.lnk" "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" "-noexit &'$INSTDIR\RosBE.ps1'" "$INSTDIR\rosbe.ico"
|
||||
CreateShortCut "$DESKTOP\ReactOS Build Environment ${PRODUCT_VERSION} - PS.lnk" "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" "-noexit &'$INSTDIR\RosBE.ps1'" "$INSTDIR\rosbe.ico"
|
||||
SectionEnd
|
||||
|
||||
Section /o "Quick Launch Shortcuts" SEC07
|
||||
@ -317,12 +317,12 @@ Section /o "Quick Launch Shortcuts" SEC07
|
||||
;;
|
||||
;; Add our quick launch shortcuts.
|
||||
;;
|
||||
IfFileExists "$QUICKLAUNCH\ReactOS Build Environment.lnk" +6 0
|
||||
IfFileExists "$QUICKLAUNCH\ReactOS Build Environment ${PRODUCT_VERSION}.lnk" +6 0
|
||||
SetOutPath $REACTOS_SOURCE_DIRECTORY
|
||||
IfFileExists "$INSTDIR\RosBE.cmd" 0 +2
|
||||
CreateShortCut "$QUICKLAUNCH\ReactOS Build Environment.lnk" "$SYSDIR\cmd.exe" '/t:0A /k "$INSTDIR\RosBE.cmd"' "$INSTDIR\rosbe.ico"
|
||||
CreateShortCut "$QUICKLAUNCH\ReactOS Build Environment ${PRODUCT_VERSION}.lnk" "$SYSDIR\cmd.exe" '/t:0A /k "$INSTDIR\RosBE.cmd"' "$INSTDIR\rosbe.ico"
|
||||
IfFileExists "$INSTDIR\RosBE.ps1" 0 +2
|
||||
CreateShortCut "$QUICKLAUNCH\ReactOS Build Environment - PS.lnk" "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" "-noexit &'$INSTDIR\RosBE.ps1'" "$INSTDIR\rosbe.ico"
|
||||
CreateShortCut "$QUICKLAUNCH\ReactOS Build Environment ${PRODUCT_VERSION} - PS.lnk" "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" "-noexit &'$INSTDIR\RosBE.ps1'" "$INSTDIR\rosbe.ico"
|
||||
SectionEnd
|
||||
|
||||
Section -Post SEC08
|
||||
@ -352,10 +352,10 @@ Function un.onInit
|
||||
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 \
|
||||
"Do you want to remove the Shortcuts? If you just want to Update to a new Version of RosBE, keep them. This keeps your previous settings." \
|
||||
IDNO +5
|
||||
Delete /REBOOTOK "$DESKTOP\ReactOS Build Environment.lnk"
|
||||
Delete /REBOOTOK "$QUICKLAUNCH\ReactOS Build Environment.lnk"
|
||||
Delete /REBOOTOK "$DESKTOP\ReactOS Build Environment - PS.lnk"
|
||||
Delete /REBOOTOK "$QUICKLAUNCH\ReactOS Build Environment - PS.lnk"
|
||||
Delete /REBOOTOK "$DESKTOP\ReactOS Build Environment ${PRODUCT_VERSION}.lnk"
|
||||
Delete /REBOOTOK "$QUICKLAUNCH\ReactOS Build Environment ${PRODUCT_VERSION}.lnk"
|
||||
Delete /REBOOTOK "$DESKTOP\ReactOS Build Environment ${PRODUCT_VERSION} - PS.lnk"
|
||||
Delete /REBOOTOK "$QUICKLAUNCH\ReactOS Build Environment ${PRODUCT_VERSION} - PS.lnk"
|
||||
FunctionEnd
|
||||
|
||||
Section Uninstall
|
||||
|
Loading…
Reference in New Issue
Block a user