Repository navigation
Expand file tree
/
Copy pathsetup.iss
More file actions
78 lines (64 loc) · 3.23 KB
/
Copy pathsetup.iss
File metadata and controls
78 lines (64 loc) · 3.23 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
68
69
70
71
72
73
74
75
76
77
78
; ==================================================
#define AppVersion "1.0.0"
#define BuildNumber "2"
; ==================================================
#define FullVersion AppVersion + "." + BuildNumber
[Setup]
AppName=MaidKit
AppVersion={#AppVersion}
AppPublisher=dev.solsynth
AppPublisherURL=https://solsynth.dev
AppUpdatesURL=https://github.com/Solsynth/MaidKit/releases
AppCopyright=Copyright © 2026 dev.solsynth
VersionInfoVersion={#FullVersion}
UninstallDisplayName=MaidKit
UninstallDisplayIcon={app}\maid_kit.exe
DefaultDirName={commonpf}\MaidKit
; Reuse the directory of an existing installation so unattended updates
; (/SILENT) replace the same files the running build came from.
UsePreviousAppDir=yes
; Keep this set: a blank DefaultGroupName makes the compiler store the literal
; string "(Default)" and every shortcut lands in Start Menu\Programs\(Default).
DefaultGroupName=MaidKit
OutputDir=.\Installer
OutputBaseFilename=windows-x86_64-setup
SetupIconFile=.\assets\icons\icon.ico
Compression=lzma2/ultra64
SolidCompression=yes
LZMAUseSeparateProcess=yes
LZMANumBlockThreads=4
ArchitecturesAllowed=x64compatible
PrivilegesRequired=admin
[Files]
Source: ".\build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[InstallDelete]
; Builds up to 3.0.0+48 shipped no DefaultGroupName, so their shortcuts went
; into that literal "(Default)" folder. Setting DefaultGroupName moves the group
; back to MaidKit for them too (Inno Setup treats a recorded "(Default)" as
; unset), but nothing deletes the links the old install created, and the Start
; menu would list MaidKit twice. Remove this app's two links, and drop the
; placeholder folder only after every other app in it is gone as well.
Type: files; Name: "{commonprograms}\(Default)\MaidKit.lnk"
Type: files; Name: "{commonprograms}\(Default)\{cm:UninstallProgram,MaidKit}.lnk"
Type: dirifempty; Name: "{commonprograms}\(Default)"
[Icons]
Name: "{group}\MaidKit"; Filename: "{app}\maid_kit.exe"; IconFilename: "{app}\maid_kit.exe"
Name: "{group}\{cm:UninstallProgram,MaidKit}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\MaidKit"; Filename: "{app}\maid_kit.exe"; Tasks: desktopicon
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Run]
Filename: "{app}\maid_kit.exe"; Description: "Launch MaidKit"; Flags: nowait postinstall skipifsilent
; The updater runs this installer with /SILENT, and Setup closes the running
; MaidKit through the Restart Manager before replacing its files. Nothing is
; left on screen afterwards and RestartApplications cannot bring MaidKit back
; (Flutter's Windows runner never calls RegisterApplicationRestart), so relaunch
; the installed build with the original, non-elevated user token.
Filename: "{app}\maid_kit.exe"; Flags: nowait runasoriginaluser skipifnotsilent
; Stop every MaidKit engine before removing files locked by Flutter/WebView2.
[UninstallRun]
Filename: "{sys}\taskkill.exe"; Parameters: "/F /T /IM maid_kit.exe"; Flags: runhidden waituntilterminated skipifdoesntexist
[UninstallDelete]
Type: filesandordirs; Name: "{userappdata}\dev.solsynth\MaidKit"
Type: files; Name: "{group}\MaidKit.lnk"
Type: files; Name: "{autodesktop}\MaidKit.lnk"