forked from pwall2222/NOWT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NOWT.iss
68 lines (58 loc) · 2.22 KB
/
NOWT.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#define public Dependency_NoExampleSetup
#include ".\InnoDependencyInstaller\CodeDependencies.iss"
[Setup]
#define MyAppSetupName 'NOWT'
#define MyAppVersion '1.3.4'
#define MyAppPublisher 'PWall'
#define MyAppCopyright 'Soneliem & PWall'
#define MyAppURL 'https://github.com/pwall2222/NOWT'
AppName={#MyAppSetupName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppSetupName} {#MyAppVersion}
AppCopyright={#MyAppCopyright}
VersionInfoVersion={#MyAppVersion}
VersionInfoCompany={#MyAppPublisher}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
OutputBaseFilename={#MyAppSetupName}
DefaultGroupName={#MyAppSetupName}
DefaultDirName={autopf}\{#MyAppSetupName}
UninstallDisplayIcon=..\NOWT\Assets\logo.ico
SetupIconFile=..\NOWT\Assets\logo.ico
SourceDir=inno
OutputDir=out
AllowNoIcons=yes
PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
; remove next line if you only deploy 32-bit binaries and dependencies
ArchitecturesInstallIn64BitMode=x64
[Languages]
Name: en; MessagesFile: "compiler:Default.isl"
[Files]
; #ifdef UseNetCoreCheck
; download netcorecheck.exe: https://go.microsoft.com/fwlink/?linkid=2135256
; download netcorecheck_x64.exe: https://go.microsoft.com/fwlink/?linkid=2135504
Source: "netcorecheck.exe"; Flags: dontcopy noencryption
Source: "netcorecheck_x64.exe"; Flags: dontcopy noencryption
; #endif
;#ifdef UseDirectX
;Source: "dxwebsetup.exe"; Flags: dontcopy noencryption
;#endif
Source: "NOWT.exe"; DestDir: "{app}"; DestName: "NOWT.exe"; Check: Dependency_IsX64; Flags: ignoreversion
Source: "WebView2Loader.dll"; DestDir: "{app}"; DestName: "WebView2Loader.dll"; Flags: ignoreversion
[Icons]
Name: "{group}\{#MyAppSetupName}"; Filename: "{app}\NOWT.exe"
Name: "{group}\{cm:UninstallProgram,{#MyAppSetupName}}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\{#MyAppSetupName}"; Filename: "{app}\NOWT.exe"; Tasks: desktopicon
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; Flags: unchecked
[Run]
Filename: "{app}\NOWT.exe"; Description: "{cm:LaunchProgram,{#MyAppSetupName}}"; Flags: nowait postinstall skipifsilent
[Code]
function InitializeSetup: Boolean;
begin
ExtractTemporaryFile('netcorecheck_x64.exe');
Dependency_AddDotNet60Desktop;
Result := True;
end;