mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:41:02 +02:00
create interface desktop shortcut if required
This commit is contained in:
parent
fd3b665add
commit
ca2b3c323d
1 changed files with 18 additions and 1 deletions
|
@ -563,7 +563,7 @@ FunctionEnd
|
||||||
@CPACK_NSIS_PAGE_COMPONENTS@
|
@CPACK_NSIS_PAGE_COMPONENTS@
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
Page custom PostInstallOptionsPage
|
Page custom PostInstallOptionsPage HandlePostInstallOptions
|
||||||
|
|
||||||
!insertmacro MUI_UNPAGE_CONFIRM
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
!insertmacro MUI_UNPAGE_INSTFILES
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
|
@ -783,6 +783,9 @@ Function PostInstallOptionsPage
|
||||||
Abort
|
Abort
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
; Set the text on the dialog button to match finish
|
||||||
|
SendMessage $POST_INSTALL_DIALOG ${WM_SETTEXT} 0 "STR:$(^CloseBtn)"
|
||||||
|
|
||||||
StrCpy $CURRENT_OFFSET "0"
|
StrCpy $CURRENT_OFFSET "0"
|
||||||
|
|
||||||
${If} ${SectionIsSelected} ${client}
|
${If} ${SectionIsSelected} ${client}
|
||||||
|
@ -820,6 +823,20 @@ Function PostInstallOptionsPage
|
||||||
nsDialogs::Show
|
nsDialogs::Show
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
Var DESKTOP_CLIENT_CHECKBOX_STATE
|
||||||
|
|
||||||
|
Function HandlePostInstallOptions
|
||||||
|
${If} ${SectionIsSelected} ${client}
|
||||||
|
; check if the user asked for a desktop shortcut to High Fidelity
|
||||||
|
${NSD_GetState} $DESKTOP_CLIENT_CHECKBOX $DESKTOP_CLIENT_CHECKBOX_STATE
|
||||||
|
|
||||||
|
${If} $DESKTOP_CLIENT_CHECKBOX_STATE == ${BST_CHECKED}
|
||||||
|
CreateShortCut "$DESKTOP\@INTERFACE_SHORTCUT_NAME@.lnk" "$INSTDIR\@INTERFACE_WIN_EXEC_NAME@"
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
|
${EndIf}
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
; determine admin versus local install
|
; determine admin versus local install
|
||||||
Function un.onInit
|
Function un.onInit
|
||||||
|
|
Loading…
Reference in a new issue