|
| 1 | +[Setup] |
| 2 | +AppName=SentraCore |
| 3 | +AppVersion=1.0 |
| 4 | +AppPublisher=SentraCore Development Team |
| 5 | +DefaultDirName={autopf}\SentraCore |
| 6 | +DefaultGroupName=SentraCore |
| 7 | +OutputDir=..\dist |
| 8 | +OutputBaseFilename=SentraCore_Setup_v1.0 |
| 9 | +Compression=lzma |
| 10 | +SolidCompression=yes |
| 11 | +SetupIconFile=compiler:SetupClassicIcon.ico |
| 12 | +UninstallDisplayIcon={app}\sentracore_dashboard.exe |
| 13 | + |
| 14 | +[Files] |
| 15 | +; The Python Engine (Headless executable) |
| 16 | +Source: "..\dist\SentraCoreEngine.exe"; DestDir: "{app}"; Flags: ignoreversion |
| 17 | + |
| 18 | +; The Flutter Dashboard and all its dependencies |
| 19 | +Source: "..\dashboard\build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs |
| 20 | + |
| 21 | +[Icons] |
| 22 | +; Start Menu Shortcut for the Dashboard |
| 23 | +Name: "{group}\SentraCore Dashboard"; Filename: "{app}\sentracore_dashboard.exe" |
| 24 | +; Desktop Shortcut for the Dashboard |
| 25 | +Name: "{autodesktop}\SentraCore Dashboard"; Filename: "{app}\sentracore_dashboard.exe"; Tasks: desktopicon |
| 26 | +; Uninstaller Shortcut |
| 27 | +Name: "{group}\Uninstall SentraCore"; Filename: "{uninstallexe}" |
| 28 | + |
| 29 | +[Tasks] |
| 30 | +Name: "desktopicon"; Description: "Create a &desktop shortcut"; GroupDescription: "Additional icons:" |
| 31 | +Name: "startup"; Description: "Run SentraCore Engine automatically when Windows starts"; GroupDescription: "Background Service:" |
| 32 | + |
| 33 | +[Registry] |
| 34 | +; Add the Engine to Windows Startup if the user selected the task |
| 35 | +Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "SentraCoreEngine"; ValueData: """{app}\SentraCoreEngine.exe"""; Tasks: startup |
| 36 | + |
| 37 | +[Run] |
| 38 | +; Optionally run the engine right after installation |
| 39 | +Filename: "{app}\SentraCoreEngine.exe"; Description: "Start SentraCore Engine (Background)"; Flags: nowait postinstall runhidden |
| 40 | +; Optionally launch the dashboard |
| 41 | +Filename: "{app}\sentracore_dashboard.exe"; Description: "Launch SentraCore Dashboard"; Flags: nowait postinstall |
| 42 | + |
| 43 | +[UninstallRun] |
| 44 | +; Attempt to gracefully kill the engine process during uninstallation |
| 45 | +Filename: "{cmd}"; Parameters: "/c taskkill /f /im SentraCoreEngine.exe"; Flags: runhidden waituntilterminated |
0 commit comments