installer: ProjectDashboard-Setup.exe (inno setup)

- installer/ProjectDashboard.iss: verpackt die Release-exe in einen
  Installer – pro Benutzer, ohne Admin-Rechte, Startmenü, optional
  Desktop-Icon, Eintrag unter Windows "Apps", Deutsch/Englisch.
  Deinstallation beendet die App (auch im Tray), entfernt den
  Autostart-Eintrag und fragt, ob Einstellungen/Daten mit gelöscht
  werden sollen; Projektordner und Backups bleiben immer unberührt.
- build.ps1 -Release baut danach automatisch release\ProjectDashboard-Setup.exe,
  wenn Inno Setup 6 installiert ist (sonst Hinweis).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 21:54:46 +01:00
parent bf6bbf0169
commit 0883c8cfff
2 changed files with 101 additions and 0 deletions

View File

@@ -88,3 +88,17 @@ Remove-Item $stage, $payload, $zip -Recurse -Force
# the normal build must not pick up the self-contained restore state
Remove-Item (Join-Path $launcher 'obj') -Recurse -Force -ErrorAction SilentlyContinue
Write-Host ("-> {0} ({1:N0} MB)" -f $out, ((Get-Item $out).Length / 1MB))
# ── installer: release\ProjectDashboard-Setup.exe wraps the exe (Inno Setup 6, optional) ──
$iscc = @("$env:LOCALAPPDATA\Programs\Inno Setup 6\ISCC.exe", "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe", "$env:ProgramFiles\Inno Setup 6\ISCC.exe") |
Where-Object { Test-Path $_ } | Select-Object -First 1
if ($iscc) {
Write-Host 'Setup bauen ...'
$ver = (Get-Content (Join-Path $here 'package.json') -Raw | ConvertFrom-Json).version
& $iscc /Q "/DAppVer=$ver" (Join-Path $here 'installer\ProjectDashboard.iss')
if ($LASTEXITCODE -ne 0) { throw "Inno Setup failed ($LASTEXITCODE)" }
$setup = Join-Path $outDir 'ProjectDashboard-Setup.exe'
Write-Host ("-> {0} ({1:N0} MB)" -f $setup, ((Get-Item $setup).Length / 1MB))
} else {
Write-Host 'Setup übersprungen: Inno Setup 6 nicht gefunden (winget install JRSoftware.InnoSetup).'
}