Skip to content

Commit

Permalink
Add options to create start menu and desktop shortcuts in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
fholger committed Aug 23, 2023
1 parent e20b47e commit f45887c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Installer/farcry.nsi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
!include "MUI2.nsh"
!include "WordFunc.nsh"
!define VERSION '0.6.0'
!define VERSION '0.7.0a'

Name "FarCry VR Mod"
Name "Far Cry VR Mod"
; should not need admin privileges as the install folder should be user writable, anyway
RequestExecutionLevel user

Expand All @@ -20,6 +20,8 @@ It features a full roomscale VR experience with motion controller support.'

!define MUI_DIRECTORYPAGE_TEXT 'Please enter the location of your FarCry installation.'

!define MUI_COMPONENTSPAGE_NODESC

!define MUI_FINISHPAGE_TITLE 'Installation complete.'
!define MUI_FINISHPAGE_TEXT 'You can launch the VR Mod by running FarCryVR.exe from your FarCry install directory.'
!define MUI_FINISHPAGE_SHOWREADME 'https://farcryvr.de/manual/'
Expand All @@ -28,12 +30,14 @@ It features a full roomscale VR experience with motion controller support.'

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_LANGUAGE "English"

Section ""
Section "!Mod files"
SectionIn RO
SetOutPath $INSTDIR\Mods\CryVR
File /r .\assembly\Mods\CryVR\*

Expand All @@ -45,6 +49,14 @@ Section ""
File .\assembly\FarCryVR_dev.bat
SectionEnd

Section "Start menu shortcut"
CreateShortcut "$SMPrograms\$(^Name).lnk" "$InstDir\FarCryVR.exe"
SectionEnd

Section /o "Desktop shortcut"
CreateShortcut "$Desktop\$(^Name).lnk" "$InstDir\FarCryVR.exe"
SectionEnd

Function .onInit
; try to look up install directory for the GOG.com version of Far Cry
SetRegView 32
Expand Down

0 comments on commit f45887c

Please sign in to comment.