Files
aza/AzA march 2026/installer/aza_empfang_shell_installer.iss
2026-05-11 08:27:44 +02:00

80 lines
2.5 KiB
Plaintext

; Inno Setup 6 — nur Empfang-/Praxis-Chat-WebView-Huelle (AZA_EmpfangShell.exe).
; Kein AzA-Desktop, keine Arzt-Lizenz, keine KG-/Diktier-Bestandteile.
#define MyAppName "AzA Empfang Chat"
#ifndef MyAppVersion
#define MyAppVersion "0.1.0"
#endif
#define MyAppPublisher "AZA MedWork"
#define MyAppExeName "AZA_EmpfangShell.exe"
#define DistDir SourcePath + "\..\dist"
#define IconSource SourcePath + "\..\logo.ico"
[Setup]
AppId={{A91F3C88-5E10-4B2A-9D88-E8C4B7F8A901}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL=https://aza-medwork.ch
DefaultDirName={autopf}\AZA Empfang Chat
DefaultGroupName=AzA Empfang Chat
DisableProgramGroupPage=yes
OutputDir={#DistDir}\installer
OutputBaseFilename=aza_empfang_chat_setup
Compression=lzma
SolidCompression=yes
WizardStyle=modern
PrivilegesRequired=admin
ArchitecturesInstallIn64BitMode=x64
UninstallDisplayIcon={app}\logo.ico
SetupIconFile={#IconSource}
SetupMutex=AZAEmpfangChatSetupMutex
CloseApplications=no
RestartApplications=no
[Languages]
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
[Tasks]
Name: "desktopicon"; Description: "Desktop-Verknuepfung erstellen"; GroupDescription: "Zusaetzliche Aufgaben:"
[Files]
Source: "{#DistDir}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion restartreplace uninsrestartdelete
Source: "{#IconSource}"; DestDir: "{app}"; Flags: ignoreversion
[Icons]
Name: "{group}\AzA Empfang Chat"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\logo.ico"
Name: "{autodesktop}\AzA Empfang Chat"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\logo.ico"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "AzA Empfang Chat starten"; Flags: nowait postinstall skipifsilent
[Code]
function InitializeSetup(): Boolean;
var
R: Integer;
begin
Result := True;
Exec('taskkill.exe', '/F /IM AZA_EmpfangShell.exe', '', SW_HIDE, ewWaitUntilTerminated, R);
Sleep(300);
end;
function PrepareToInstall(var NeedsRestart: Boolean): String;
var
R: Integer;
begin
Result := '';
Exec('taskkill.exe', '/F /IM AZA_EmpfangShell.exe', '', SW_HIDE, ewWaitUntilTerminated, R);
Sleep(300);
end;
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var
DataDir: String;
begin
if CurUninstallStep = usPostUninstall then
begin
DataDir := ExpandConstant('{userappdata}\AzA\EmpfangWebView');
Log('AzA Empfang Chat deinstalliert. WebView-/Sitzungsdaten bleiben unter "' + DataDir + '" (kein automatisches Loeschen durch diesen Installer).');
end;
end;