workspace/setup/setup.iss

79 lines
3.2 KiB
Plaintext
Raw Normal View History

2024-10-08 21:14:45 +00:00
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "Workspace"
#define MyAppVersion "0.1"
#define MyAppPublisher "-"
#define MyAppURL "-"
2024-10-09 10:46:48 +00:00
#define MyAppExeName "workspace.exe"
2024-10-08 21:14:45 +00:00
[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{3B478709-0F8E-4715-BE35-1F76B4FDA134}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
2024-10-09 10:46:48 +00:00
DefaultDirName=c:\{#MyAppName}
DisableDirPage=No
2024-10-08 21:14:45 +00:00
; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
; on anything but x64 and Windows 11 on Arm.
ArchitecturesAllowed=x64compatible
; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
; meaning it should use the native 64-bit Program Files directory and
; the 64-bit view of the registry.
ArchitecturesInstallIn64BitMode=x64compatible
DisableProgramGroupPage=yes
; Remove the following line to run in administrative install mode (install for all users.)
PrivilegesRequired=lowest
2024-10-09 10:46:48 +00:00
OutputBaseFilename=workspace_setup
SetupIconFile=..\workspace\assets\icon.ico
2024-10-08 21:14:45 +00:00
Compression=lzma
SolidCompression=yes
WizardStyle=modern
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
2024-10-09 10:46:48 +00:00
; [Registry]
; Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; Flags: preservecreatesvalue
2024-10-08 21:14:45 +00:00
[Files]
2024-10-09 10:46:48 +00:00
Source: "..\workspace\target\release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\workspace\target\release\log_history.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\workspace\target\release\log_history.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "file\nats-server.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\fast-log-viewer\build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
2024-10-08 21:14:45 +00:00
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
2024-10-09 10:46:48 +00:00
Name: "{autostartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
2024-10-08 21:14:45 +00:00
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
2024-10-09 10:46:48 +00:00
; [Code]
; procedure RefreshEnvironment;
; var
; dwResult: Dword;
; begin
; SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, Integer(PChar('Environment')), SMTO_ABORTIFHUNG, 5000, dwResult);
; end;
;
; procedure CurStepChanged(CurStep: TSetupStep);
; begin
; if CurStep = ssPostInstall then
; begin
; RefreshEnvironment(); // Call the function after the installation
; end;
; end;