Add Checkbox for create desktop shortcut

This commit is contained in:
Rim 2023-12-16 16:48:54 -05:00
parent ce68a8d0e1
commit 7b735f1288

View File

@ -5,7 +5,7 @@
; Constants
!define PRODUCT_NAME "t7x"
!define PRODUCT_DESCRIPTION "Call of Duty: Black Ops III Client"
!define COPYRIGHT "Created by Rim - This product is free and open source"
!define COPYRIGHT "Created by Ahrimdon - Free and Open Source"
!define PRODUCT_VERSION "1.0.0.0"
!define SETUP_VERSION "1.0.0.0"
@ -13,7 +13,7 @@
Name "${PRODUCT_NAME}"
OutFile "build\t7xInstaller.exe"
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
RequestExecutionLevel user ; Request user-level execution, not admin
RequestExecutionLevel admin ; Request user-level execution, not admin
; Version Info
VIProductVersion "${PRODUCT_VERSION}"
@ -31,10 +31,18 @@ VIAddVersionKey "FileVersion" "${SETUP_VERSION}"
!define MUI_FINISHPAGE_RUN "$INSTDIR\t7x.exe"
!define MUI_FINISHPAGE_TEXT "Setup has finished installing ${PRODUCT_NAME} on your computer.$\n$\nClick Finish to close this wizard."
!define MUI_FINISHPAGE_SHOWREADME ${Checkbox}
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut"
!define MUI_FINISHPAGE_SHOWREADME_CHECKED
; Modern UI Settings
!define MUI_ABORTWARNING
!define MUI_UNABORTWARNING
; Show details by default
ShowInstDetails show
ShowInstDetails show
; Installer Images
!define MUI_WELCOMEFINISHPAGE_BITMAP "assets\logo-cropped.bmp"
!define MUI_HEADERIMAGE_BITMAP "assets\banner-t7x-title.bmp"