|
| 1 | +; ThreadPilot Installer Script for Inno Setup |
| 2 | +; Copyright (C) 2025 Prime Build |
| 3 | + |
| 4 | +#define MyAppName "ThreadPilot" |
| 5 | +#define MyAppVersion "0.1.0-beta" |
| 6 | +#define MyAppPublisher "Prime Build" |
| 7 | +#define MyAppURL "https://github.com/PrimeBuild-pc/ThreadPilot" |
| 8 | +#define MyAppExeName "ThreadPilot.exe" |
| 9 | +#define MyAppSourceDir "bin\Publish" |
| 10 | + |
| 11 | +[Setup] |
| 12 | +AppId={{E8F7A3B2-5C4D-4E6F-8A9B-1C2D3E4F5A6B} |
| 13 | +AppName={#MyAppName} |
| 14 | +AppVersion={#MyAppVersion} |
| 15 | +AppVerName={#MyAppName} {#MyAppVersion} |
| 16 | +AppPublisher={#MyAppPublisher} |
| 17 | +AppPublisherURL={#MyAppURL} |
| 18 | +AppSupportURL={#MyAppURL}/issues |
| 19 | +AppUpdatesURL={#MyAppURL}/releases |
| 20 | +DefaultDirName={autopf}\{#MyAppName} |
| 21 | +DefaultGroupName={#MyAppName} |
| 22 | +AllowNoIcons=yes |
| 23 | +LicenseFile=LICENSE.md |
| 24 | +PrivilegesRequired=admin |
| 25 | +OutputDir=bin\Installer |
| 26 | +OutputBaseFilename=ThreadPilot_v{#MyAppVersion}_Setup |
| 27 | +SetupIconFile=ico.ico |
| 28 | +Compression=lzma2/ultra64 |
| 29 | +SolidCompression=yes |
| 30 | +WizardStyle=modern |
| 31 | +ArchitecturesInstallIn64BitMode=x64compatible |
| 32 | +ArchitecturesAllowed=x64compatible |
| 33 | +UninstallDisplayIcon={app}\{#MyAppExeName} |
| 34 | + |
| 35 | +[Languages] |
| 36 | +Name: "english"; MessagesFile: "compiler:Default.isl" |
| 37 | + |
| 38 | +[Tasks] |
| 39 | +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked |
| 40 | +Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode |
| 41 | + |
| 42 | +[Files] |
| 43 | +Source: "{#MyAppSourceDir}\ThreadPilot.exe"; DestDir: "{app}"; Flags: ignoreversion |
| 44 | +Source: "{#MyAppSourceDir}\*.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 45 | +Source: "{#MyAppSourceDir}\*.pdb"; DestDir: "{app}"; Flags: ignoreversion |
| 46 | +Source: "{#MyAppSourceDir}\Powerplans\*"; DestDir: "{app}\Powerplans"; Flags: ignoreversion recursesubdirs createallsubdirs |
| 47 | + |
| 48 | +[Icons] |
| 49 | +Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" |
| 50 | +Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" |
| 51 | +Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon |
| 52 | +Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon |
| 53 | + |
| 54 | +[Run] |
| 55 | +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent runascurrentuser |
| 56 | + |
| 57 | +[UninstallDelete] |
| 58 | +Type: filesandordirs; Name: "{localappdata}\ThreadPilot" |
| 59 | +Type: filesandordirs; Name: "{userappdata}\ThreadPilot" |
0 commit comments