; Installateur Inno Setup DÉDIÉ au CLI (distinct de la GUI Anonymisation.iss). ; Cible : tests internes + intégration de la brique CLI dans un autre logiciel. ; - AppId distinct de la GUI (ne partage pas la désinstallation) ; - installation utilisateur sans droits admin (PrivilegesRequired=lowest) ; - clés registre HKCU stables (InstallPath / ExePath / Version) + App Paths HKCU ; pour qu'un autre logiciel retrouve l'exe ; PAS d'ajout au PATH système. #define MyAppName "Anonymisation-CLI" #define MyAppPublisher "CHUXX" #define MyAppExeName "Anonymisation-CLI.exe" #ifndef AppVersion #define AppVersion "1.0.0" #endif [Setup] ; AppId PROPRE au CLI (différent du GUID GUI 6D11E4F8-...) — ne pas réutiliser ailleurs. AppId={{B2F4A7C1-9E3D-4A52-8C77-1D6E0A9B4F30} AppName={#MyAppName} AppVersion={#AppVersion} AppPublisher={#MyAppPublisher} DefaultDirName={localappdata}\Programs\{#MyAppName} DisableDirPage=no DisableProgramGroupPage=yes PrivilegesRequired=lowest OutputDir=..\release OutputBaseFilename=Anonymisation-CLI-Setup SetupIconFile=..\assets\icons\app.ico UninstallDisplayIcon={app}\{#MyAppExeName} Compression=lzma2 SolidCompression=yes WizardStyle=modern ArchitecturesAllowed=x64compatible ArchitecturesInstallIn64BitMode=x64compatible [Languages] Name: "french"; MessagesFile: "compiler:Languages\French.isl" [Files] Source: "..\dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion Source: "Anonymisation-CLI-README.txt"; DestDir: "{app}"; DestName: "README.txt"; Flags: ignoreversion skipifsourcedoesntexist [Registry] ; Clés stables pour intégration logicielle tierce (HKCU, supprimées à la désinstallation). Root: HKCU; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}"; Flags: uninsdeletekey Root: HKCU; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}"; ValueType: string; ValueName: "ExePath"; ValueData: "{app}\{#MyAppExeName}" Root: HKCU; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}"; ValueType: string; ValueName: "Version"; ValueData: "{#AppVersion}" ; App Paths HKCU : permet à un tiers de résoudre Anonymisation-CLI.exe via la base de registre. Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\App Paths\{#MyAppExeName}"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName}"; Flags: uninsdeletekey Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\App Paths\{#MyAppExeName}"; ValueType: string; ValueName: "Path"; ValueData: "{app}" [Icons] ; Pas de raccourci bureau pour un CLI ; entrée menu Démarrer vers le README (aide). Name: "{autoprograms}\{#MyAppName} (README)"; Filename: "{app}\README.txt"