-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbase.nsi
More file actions
67 lines (53 loc) · 1.75 KB
/
base.nsi
File metadata and controls
67 lines (53 loc) · 1.75 KB
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
66
67
;--------------------------------
;Include Modern UI
!include "MUI2.nsh"
!include sections.nsh
;--------------------------------
; The name of the installer
Name "LibBuilder"
; The file to write
OutFile "LibBuilderInstaller.exe"
; Request application privileges
RequestExecutionLevel admin
;--------------------------------
VIProductVersion "2.0.0.0"
VIAddVersionKey ProductName "LibBuilder"
VIAddVersionKey CompanyName "Timeline Financials GmbH & Co. KG"
VIAddVersionKey LegalCopyright "Timeline Financials GmbH & Co. KG"
VIAddVersionKey FileDescription "Timeline Financials GmbH & Co. KG"
;--------------------------------
; Pages
;installer
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "German"
;--------------------------------
Section "basierend auf .Net Framework 4.7.2" P1
File "/oname=$pluginsdir\Setup.exe" "LibBuilderInstaller_net472.exe"
SectionEnd
Section /o "basierend auf .Net Core 3.1" P2
File "/oname=$pluginsdir\Setup.exe" "LibBuilderInstaller_netcoreapp3.1.exe"
SectionEnd
Section /o "basierend auf .Net 5.0" P3
File "/oname=$pluginsdir\Setup.exe" "LibBuilderInstaller_net5.0-windows.exe"
SectionEnd
Section ; Hidden section that runs the show
DetailPrint "Installing selected application..."
SetDetailsPrint none
ExecWait '"$pluginsdir\Setup.exe"'
SetDetailsPrint lastused
SectionEnd
Function .onInit
Initpluginsdir ; Make sure $pluginsdir exists
StrCpy $1 ${P2} ;The default
FunctionEnd
Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${P1}
!insertmacro RadioButton ${P2}
!insertmacro RadioButton ${P3}
!insertmacro EndRadioButtons
FunctionEnd