From f45887c1f1c05519cc9361dbc5dfb161bf07c303 Mon Sep 17 00:00:00 2001 From: Holger Frydrych Date: Wed, 23 Aug 2023 16:57:01 +0200 Subject: [PATCH] Add options to create start menu and desktop shortcuts in installer --- Installer/farcry.nsi | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Installer/farcry.nsi b/Installer/farcry.nsi index b7b6732..8264b89 100644 --- a/Installer/farcry.nsi +++ b/Installer/farcry.nsi @@ -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 @@ -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/' @@ -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\* @@ -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