- edition.json (nur im Demo-Build) bzw. DASHBOARD_DEMO=1 schaltet die Demo ein. projectList() gibt dann fest nach Name die ersten 6 Projekte aus; Board, Galerie, Liste, Kennzahlen, Speicher, Aktivität, Details, Aktionen, Löschen und Aufräumen kennen damit nur diese 6. - Backup: robocopy schließt in der Demo alle übrigen Projektordner per /XD aus (auch die automatische Sicherung). - Neu/Klonen: Server lehnt ab Grenze ab, Oberfläche zeigt einen Kauf-Hinweis. - Demo-Banner "Demo – 6 von N Projekten sichtbar" + "Vollversion holen", Demo-Badge und Kauf-Button unter Einstellungen → Über. EN/DE. - build.ps1 -Demo → release\ProjectDashboard-Demo.exe und ProjectDashboard-Demo-Setup.exe; der Installer nutzt dieselbe AppId wie die Vollversion, die ihn später am selben Ort ersetzt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
99 lines
3.9 KiB
Plaintext
99 lines
3.9 KiB
Plaintext
; Installer for Project Dashboard (Inno Setup 6). Built by build.ps1 -Release:
|
|
; ISCC.exe /DAppVer=<package.json version> installer\ProjectDashboard.iss
|
|
; -> release\ProjectDashboard-Setup.exe
|
|
;
|
|
; Wraps the one-file release exe: per-user install (no admin / UAC), Start menu entry,
|
|
; optional desktop icon, uninstall entry in Windows "Apps". The app itself unpacks to
|
|
; %LOCALAPPDATA%\ProjectDashboard on first start, exactly like the portable exe.
|
|
|
|
#ifndef AppVer
|
|
#define AppVer "1.0.0"
|
|
#endif
|
|
#define AppName "Project Dashboard"
|
|
#define AppExe "ProjectDashboard.exe"
|
|
; /DDemo (build.ps1 -Demo): same AppId and folder as the full version, so installing the
|
|
; full version after buying replaces the demo in place (shortcuts and settings stay)
|
|
#ifdef Demo
|
|
#define SourceExe "ProjectDashboard-Demo.exe"
|
|
#define SetupName "ProjectDashboard-Demo-Setup"
|
|
#define ShownName "Project Dashboard (Demo)"
|
|
#else
|
|
#define SourceExe "ProjectDashboard.exe"
|
|
#define SetupName "ProjectDashboard-Setup"
|
|
#define ShownName "Project Dashboard"
|
|
#endif
|
|
|
|
[Setup]
|
|
AppId={{6F3C2E9A-4B1D-4E7A-9C55-2D8B0F1A7E31}
|
|
AppName={#AppName}
|
|
AppVersion={#AppVer}
|
|
AppVerName={#ShownName} {#AppVer}
|
|
AppPublisher=Michael Media
|
|
AppPublisherURL=https://sn09.itch.io/project-dashboard
|
|
AppSupportURL=https://discord.gg/Ej4JPmCZva
|
|
AppCopyright=© 2026 Michael Media
|
|
; per-user: installs to %LOCALAPPDATA%\Programs, no admin rights needed
|
|
PrivilegesRequired=lowest
|
|
PrivilegesRequiredOverridesAllowed=dialog
|
|
DefaultDirName={autopf}\{#AppName}
|
|
DefaultGroupName={#AppName}
|
|
DisableProgramGroupPage=yes
|
|
DisableDirPage=auto
|
|
OutputDir=..\release
|
|
OutputBaseFilename={#SetupName}
|
|
SetupIconFile=..\launcher\app.ico
|
|
UninstallDisplayIcon={app}\{#AppExe}
|
|
UninstallDisplayName={#ShownName}
|
|
WizardStyle=modern
|
|
Compression=lzma2/max
|
|
SolidCompression=yes
|
|
ArchitecturesAllowed=x64compatible
|
|
ArchitecturesInstallIn64BitMode=x64compatible
|
|
MinVersion=10.0
|
|
; an update replaces the running exe: close it first
|
|
CloseApplications=force
|
|
RestartApplications=no
|
|
|
|
[Languages]
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
|
|
|
|
[CustomMessages]
|
|
english.DeleteData=Also delete your settings and data (project folders list, backup state, window position)?%n%nYour project folders and backups are NOT touched either way.
|
|
german.DeleteData=Auch deine Einstellungen und Daten löschen (Liste der Projektordner, Backup-Stand, Fensterposition)?%n%nDeine Projektordner und Backups werden in keinem Fall angefasst.
|
|
|
|
[Tasks]
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
|
|
|
|
[Files]
|
|
Source: "..\release\{#SourceExe}"; DestDir: "{app}"; DestName: "{#AppExe}"; Flags: ignoreversion
|
|
|
|
[Icons]
|
|
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExe}"
|
|
Name: "{group}\{cm:UninstallProgram,{#AppName}}"; Filename: "{uninstallexe}"
|
|
Name: "{autodesktop}\{#AppName}"; Filename: "{app}\{#AppExe}"; Tasks: desktopicon
|
|
|
|
[Run]
|
|
Filename: "{app}\{#AppExe}"; Description: "{cm:LaunchProgram,{#AppName}}"; Flags: nowait postinstall skipifsilent
|
|
|
|
[UninstallRun]
|
|
; the app may run in the tray: stop it (and its server) before removing files
|
|
Filename: "{sys}\taskkill.exe"; Parameters: "/f /t /im {#AppExe}"; Flags: runhidden; RunOnceId: "StopApp"
|
|
|
|
[UninstallDelete]
|
|
; the unpacked app copy is rebuilt on every start anyway
|
|
Type: filesandordirs; Name: "{localappdata}\ProjectDashboard\app"
|
|
|
|
[Code]
|
|
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
|
|
begin
|
|
if CurUninstallStep = usPostUninstall then
|
|
begin
|
|
// "Start with Windows" pointed at the installed exe
|
|
RegDeleteValue(HKEY_CURRENT_USER, 'Software\Microsoft\Windows\CurrentVersion\Run', 'ProjectDashboard');
|
|
if not UninstallSilent then
|
|
if MsgBox(CustomMessage('DeleteData'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then
|
|
DelTree(ExpandConstant('{localappdata}\ProjectDashboard'), True, True, True);
|
|
end;
|
|
end;
|