-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.iss
44 lines (35 loc) · 1.89 KB
/
setup.iss
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
[code]
#define VerFile FileOpen("version")
#define AppVer FileRead(VerFile)
#expr FileClose(VerFile)
#undef VerFile
[Setup]
AppName=NADO
AppVersion={#AppVer}
DefaultDirName={pf}\NADO
DefaultGroupName=NADO
UninstallDisplayIcon={app}\nado.exe
Compression=lzma2
SolidCompression=yes
OutputBaseFilename=NADO_setup
SetupIconFile=graphics\icon.ico
DisableDirPage=no
WizardImageFile=graphics\left.bmp
WizardSmallImageFile=graphics\mini.bmp
[Files]
Source: "nado.dist\*" ; DestDir: "{app}"; Flags: recursesubdirs;
[Icons]
Name: "{group}\NADO"; Filename: "{app}\nado.exe"
Name: "{group}\Shutdown NADO"; Filename: "http://127.0.0.1:9173/terminate"
Name: "{group}\Uninstall NADO"; Filename: "{uninstallexe}"
Name: "{commondesktop}\NADO"; Filename: "{app}\nado.exe"
Name: "{commondesktop}\Shutdown NADO"; Filename: "http://127.0.0.1:9173/terminate"
[Registry]
; keys for 32-bit systems
Root: HKCU32; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\nado.exe"; ValueData: "RUNASADMIN"; Flags: uninsdeletekeyifempty uninsdeletevalue; Check: not IsWin64
Root: HKLM32; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\nado.exe"; ValueData: "RUNASADMIN"; Flags: uninsdeletekeyifempty uninsdeletevalue; Check: not IsWin64
; keys for 64-bit systems
Root: HKCU64; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\nado.exe"; ValueData: "RUNASADMIN"; Flags: uninsdeletekeyifempty uninsdeletevalue; Check: IsWin64
Root: HKLM64; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\nado.exe"; ValueData: "RUNASADMIN"; Flags: uninsdeletekeyifempty uninsdeletevalue; Check: IsWin64
[Run]
Filename: "{app}\NADO.exe"; Description: "Run NADO"; Flags: shellexec postinstall skipifsilent unchecked