Repository navigation
Expand file tree
/
Copy pathsetup.iss
More file actions
65 lines (53 loc) · 2.52 KB
/
Copy pathsetup.iss
File metadata and controls
65 lines (53 loc) · 2.52 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
; ==================================================
; Defaults only: the release workflow passes the real
; values from pubspec.yaml as /DAppVersion and /DBuildNumber.
#define AppVersion "1.0.0"
#define BuildNumber "1"
; ==================================================
#define FullVersion AppVersion + "." + BuildNumber
[Setup]
AppName=Persynth
AppVersion={#AppVersion}
AppPublisher=dev.solsynth
AppPublisherURL=https://solsynth.dev
AppUpdatesURL=https://github.com/Solsynth/SynthPet/releases
AppCopyright=Copyright © 2026 dev.solsynth
VersionInfoVersion={#FullVersion}
UninstallDisplayName=Persynth
UninstallDisplayIcon={app}\persynth.exe
DefaultDirName={commonpf}\Persynth
; Reuse the directory of an existing installation so an unattended update
; (/SILENT) replaces the same files the running build came from.
UsePreviousAppDir=yes
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
[Icons]
Name: "{group}\Persynth"; Filename: "{app}\persynth.exe"; IconFilename: "{app}\persynth.exe"
Name: "{group}\{cm:UninstallProgram,Persynth}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\Persynth"; Filename: "{app}\persynth.exe"; Tasks: desktopicon
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Run]
Filename: "{app}\persynth.exe"; Description: "Launch Persynth"; Flags: nowait postinstall skipifsilent
; The updater runs this installer with /SILENT, and Setup closes the running
; Persynth through the Restart Manager before replacing its files. Nothing is
; left on screen afterwards and RestartApplications cannot bring it back
; (Flutter's Windows runner never calls RegisterApplicationRestart), so relaunch
; the installed build with the original, non-elevated user token.
Filename: "{app}\persynth.exe"; Flags: nowait runasoriginaluser skipifnotsilent
; Stop the app before removing files locked by Flutter/the embedded browser.
[UninstallRun]
Filename: "{sys}\taskkill.exe"; Parameters: "/F /T /IM persynth.exe"; Flags: runhidden waituntilterminated skipifdoesntexist
[UninstallDelete]
Type: filesandordirs; Name: "{userappdata}\dev.solsynth\persynth"
Type: files; Name: "{group}\Persynth.lnk"
Type: files; Name: "{autodesktop}\Persynth.lnk"