-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstaller_x64.iss
More file actions
66 lines (58 loc) · 2.63 KB
/
Copy pathinstaller_x64.iss
File metadata and controls
66 lines (58 loc) · 2.63 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
; Inno Setup Script for Daily Prayer Timer (Native) — 64-bit
#define AppName "Daily Prayer Timer"
#define AppVersion "2.10.0"
#define AppPublisher "Abiruzzaman Molla"
#define AppURL "https://github.com/AbiruzzamanMolla"
#define AppExeName "DailyPrayerTime.Native.exe"
#define SourcePath "J:\Web Development\abir\software\DailyPrayerTime\DailyPrayerTime.Native\bin\Release\net8.0-windows10.0.19041.0\win-x64\publish"
[Setup]
AppId={{628cbde9-f8bb-42b8-a69b-17912d7ba218}
AppName={#AppName}
AppVersion={#AppVersion}
AppPublisher={#AppPublisher}
AppPublisherURL={#AppURL}
AppSupportURL={#AppURL}
AppUpdatesURL={#AppURL}
UninstallDisplayIcon={app}\{#AppExeName}
UninstallDisplayName={#AppName}
DefaultDirName={autopf}\Daily Prayer Timer
DisableProgramGroupPage=yes
PrivilegesRequired=admin
OutputBaseFilename=DailyPrayerTimer_Setup_v{#AppVersion}_x64
Compression=lzma
SolidCompression=yes
WizardStyle=modern
; Windows 10+ minimum (build 10240)
MinVersion=10.0
; 64-bit only
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "{#SourcePath}\{#AppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "DailyPrayerTime.DeskBand\bin\Release\net48\DailyPrayerTime.DeskBand.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "DailyPrayerTime.DeskBand\bin\Release\net48\Newtonsoft.Json.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#SourcePath}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{autoprograms}\{#AppName}"; Filename: "{app}\{#AppExeName}"; WorkingDir: "{app}"
Name: "{autodesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon; WorkingDir: "{app}"
[Run]
Filename: "{app}\{#AppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(AppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
; Register DeskBand
Filename: "{dotnet4064}\regasm.exe"; Parameters: "/codebase ""{app}\DailyPrayerTime.DeskBand.dll"""; StatusMsg: "Registering Taskbar Extension..."; Flags: runhidden
[UninstallRun]
; Unregister DeskBand
Filename: "{dotnet4064}\regasm.exe"; Parameters: "/u ""{app}\DailyPrayerTime.DeskBand.dll"""; RunOnceId: "UnregisterDeskBand"; Flags: runhidden
[Code]
function IsWindows11: Boolean;
var
Version: TWindowsVersion;
begin
GetWindowsVersionEx(Version);
// Windows 11 is version 10.0, build 22000 or higher
Result := (Version.Major = 10) and (Version.Build >= 22000);
end;