forked from NVIDIA/Q2RTX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteam_setup.nsi
65 lines (45 loc) · 1.87 KB
/
steam_setup.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
RequestExecutionLevel user
Unicode True
!include "nsDialogs.nsh"
!include "MUI2.nsh"
!include "FileFunc.nsh"
!include "StrFunc.nsh"
${StrTrimNewLines}
${StrRep}
!define SOURCE_DIR ".."
!define MUI_ICON "..\src\windows\res\q2rtx.ico"
!define MUI_ABORTWARNING
Outfile "Quake2RTX-Steam-Setup.exe"
Name "Quake II RTX"
InstallDir "$EXEDIR\.."
!define MUI_COMPONENTSPAGE_SMALLDESC
!insertmacro MUI_PAGE_COMPONENTS
Var FullGameDir
!define MUI_PAGE_CUSTOMFUNCTION_PRE FullGamePage_Pre
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE FullGamePage_Leave
!define MUI_PAGE_HEADER_TEXT "Quake II Game Files"
!define MUI_PAGE_HEADER_SUBTEXT ""
!define MUI_DIRECTORYPAGE_TEXT_TOP "Choose the folder where the Quake II game files are located. The installer will copy the necessary files to the Quake II RTX install location."
!define MUI_DIRECTORYPAGE_TEXT_DESTINATION "Folder with the Quake II executable"
!define MUI_DIRECTORYPAGE_VARIABLE $FullGameDir
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section "Quake II Shareware Demo" Section_Shareware
SetOutPath "$INSTDIR\baseq2"
SetCompress AUTO
File "${SOURCE_DIR}\baseq2\shareware\pak0.pak"
SetOutPath "$INSTDIR\baseq2\players"
File /r "${SOURCE_DIR}\baseq2\shareware\players\*"
SectionEnd
Section /o "Quake II Full Game" Section_FullGame
CopyFiles "$FullGameDir\baseq2\pak*.pak" "$INSTDIR\baseq2"
CopyFiles "$FullGameDir\baseq2\players" "$INSTDIR\baseq2"
CopyFiles "$FullGameDir\baseq2\video" "$INSTDIR\baseq2"
CopyFiles "$FullGameDir\music" "$INSTDIR\music"
SectionEnd
!include "setup_gamefiles.nsh"
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${Section_Shareware} "Install a copy of the Quake II Shareware Demo"
!insertmacro MUI_DESCRIPTION_TEXT ${Section_FullGame} "Locate and copy the media files for the full game"
!insertmacro MUI_FUNCTION_DESCRIPTION_END