Files
thor-watcher/installer.iss
2026-03-20 17:34:51 -04:00

42 lines
1.4 KiB
Plaintext

; Inno Setup script for Thor Watcher
; Run through Inno Setup Compiler after building dist\thor-watcher.exe
[Setup]
AppName=Thor Watcher
AppVersion=0.2.0
AppPublisher=Terra-Mechanics Inc.
DefaultDirName={pf}\ThorWatcher
DefaultGroupName=Thor Watcher
OutputBaseFilename=thor-watcher-setup
Compression=lzma
SolidCompression=yes
; Require admin rights so we can write to Program Files
PrivilegesRequired=admin
[Tasks]
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; Flags: unchecked
[Dirs]
; Create the agent_logs folder so the watcher can write logs on first run
Name: "{app}\agent_logs"
[Files]
; Main executable — built by build.bat / PyInstaller
Source: "dist\thor-watcher.exe"; DestDir: "{app}"; Flags: ignoreversion
[Icons]
; Start Menu shortcut
Name: "{group}\Thor Watcher"; Filename: "{app}\thor-watcher.exe"
; Start Menu uninstall shortcut
Name: "{group}\Uninstall Thor Watcher"; Filename: "{uninstallexe}"
; Desktop shortcut (optional — controlled by [Tasks] above)
Name: "{commondesktop}\Thor Watcher"; Filename: "{app}\thor-watcher.exe"; Tasks: desktopicon
; Startup folder shortcut so the tray app launches on login
Name: "{userstartup}\Thor Watcher"; Filename: "{app}\thor-watcher.exe"
[Run]
; Offer to launch the app after install (unchecked by default)
Filename: "{app}\thor-watcher.exe"; \
Description: "Launch Thor Watcher"; \
Flags: nowait postinstall skipifsilent unchecked