; TrayIconGuard v8 — optional Inno Setup 6 script (classic setup.exe). ; The app itself needs NO dependencies; this merely packages exe + shortcuts. #ifndef MyAppVersion #define MyAppVersion "8.0.0" #endif #define MyAppName "TrayIconGuard" #define MyAppPublisher "TrayIconGuard Project" #define MyAppURL "https://github.com/paulmann/windows-show-all-tray-icons" #define MyAppExeName "TrayIconGuard.exe" [Setup] AppId={{8F3E2C1A-6D4B-4E59-9A27-TRAYICON8} AppName={#MyAppName} AppVersion={#MyAppVersion} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} DefaultDirName={localappdata}\Programs\{#MyAppName} DefaultGroupName={#MyAppName} PrivilegesRequired=lowest ArchitecturesAllowed=x64compatible ArchitecturesInstallIn64BitMode=x64compatible OutputDir=..\dist OutputBaseFilename=TrayIconGuard-{#MyAppVersion}-setup SetupIconFile=..\resources\icon.ico UninstallDisplayIcon={app}\{#MyAppExeName} Compression=lzma2/max SolidCompression=yes WizardStyle=modern [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl" [Tasks] Name: "autostart"; Description: "{cm:AutoStartProgram,{#MyAppName}}"; Flags: unchecked Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; Flags: unchecked [Files] Source: "..\dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion [Icons] Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon [Registry] Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "TrayIconGuard"; ValueData: """{app}\{#MyAppExeName}"" --minimized"; Flags: uninsdeletevalue; Tasks: autostart [Run] Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent