docs: update INSTALL.md and TIS_RMS_Client.iss for Windows release and Inno Setup configuration
This commit is contained in:
1 parent
4d969ba0a5
commit
d9ce190ead
2 files changed
+87
-16
No files matched your search
@@ -1,58 +1,75 @@
|
||||
; Script generated for Inno Setup 6
|
||||
; TIS RMS Windows Desktop Client Installer
|
||||
; Features: Ultra-compressed release, .NET & VC++ dependency checks, custom install directory selection, desktop shortcut checkbox, uninstaller, no auto-start.
|
||||
|
||||
#define MyAppName "TIS RMS Client"
|
||||
#define MyAppVersion "1.0.0"
|
||||
#define MyAppPublisher "TIS RMS"
|
||||
#define MyAppPublisher "Talisay Integrated School"
|
||||
#define MyAppURL "https://tis-rms.cc.cd"
|
||||
#define MyAppExeName "frontend.exe"
|
||||
#define MyAppIcon "windows\runner\resources\app_icon.ico"
|
||||
|
||||
[Setup]
|
||||
; NOTE: The value of AppId uniquely identifies this application.
|
||||
; Unique application GUID
|
||||
AppId={{D36F3B1A-58F9-4672-91EA-A2B095790FC4}
|
||||
AppName={#MyAppName}
|
||||
AppVersion={#MyAppVersion}
|
||||
AppPublisher={#MyAppPublisher}
|
||||
AppPublisherURL={#MyAppURL}
|
||||
AppSupportURL={#MyAppURL}
|
||||
AppUpdatesURL={#MyAppURL}
|
||||
|
||||
; Destination install directory (allows user to select destination install path)
|
||||
DefaultDirName={autopf}\TIS RMS Client
|
||||
DefaultGroupName={#MyAppName}
|
||||
AllowNoIcons=yes
|
||||
; Output configuration
|
||||
DisableDirPage=no
|
||||
DisableProgramGroupPage=no
|
||||
|
||||
; Output installer file configuration
|
||||
OutputDir=..\installers
|
||||
OutputBaseFilename=TIS_RMS_Client_Setup
|
||||
SetupIconFile={#MyAppIcon}
|
||||
UninstallDisplayIcon={app}\{#MyAppExeName}
|
||||
; Ultra compression for smallest file size
|
||||
UninstallDisplayName={#MyAppName}
|
||||
|
||||
; Ultra compression for the smallest release file size
|
||||
Compression=lzma2/ultra64
|
||||
SolidCompression=yes
|
||||
WizardStyle=modern
|
||||
|
||||
; Architecture constraints (64-bit Windows 10/11)
|
||||
ArchitecturesInstallIn64BitMode=x64compatible
|
||||
ArchitecturesAllowed=x64compatible
|
||||
DisableDirPage=no
|
||||
DisableProgramGroupPage=no
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
||||
[Tasks]
|
||||
; Checkbox for adding shortcut to desktop
|
||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||
|
||||
[Files]
|
||||
; Main application binaries and libraries (excluding dev .lib and .exp files)
|
||||
; Main application binaries and libraries (excludes unnecessary dev .lib and .exp files for smaller footprint)
|
||||
Source: "build\windows\x64\runner\Release\*.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "build\windows\x64\runner\Release\*.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "build\windows\x64\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "{#MyAppIcon}"; DestDir: "{app}"; DestName: "app_icon.ico"; Flags: ignoreversion
|
||||
|
||||
[Icons]
|
||||
; Start menu shortcut
|
||||
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\app_icon.ico"
|
||||
; Uninstaller shortcut in start menu group
|
||||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
||||
; Desktop shortcut (optional via checkbox)
|
||||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\app_icon.ico"; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
; Launch application option after installation (no auto-start on boot)
|
||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||
|
||||
[Code]
|
||||
// Helper function to check for Microsoft Visual C++ 2015-2022 Redistributable (x64)
|
||||
// Helper function to verify Microsoft Visual C++ 2015-2022 Redistributable (x64)
|
||||
function IsVCRedistInstalled: Boolean;
|
||||
var
|
||||
installed: Cardinal;
|
||||
@@ -62,6 +79,14 @@ begin
|
||||
Result := RegQueryDWordValue(HKLM, 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64', 'Installed', installed) and (installed = 1);
|
||||
end;
|
||||
|
||||
// Helper function to verify Microsoft .NET Desktop Runtime
|
||||
function IsDotNetRuntimeInstalled: Boolean;
|
||||
begin
|
||||
Result := RegKeyExists(HKLM64, 'SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.WindowsDesktop.App') or
|
||||
RegKeyExists(HKLM64, 'SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedhost') or
|
||||
RegKeyExists(HKLM, 'SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.WindowsDesktop.App');
|
||||
end;
|
||||
|
||||
function InitializeSetup: Boolean;
|
||||
begin
|
||||
Result := True;
|
||||
|
||||
Reference in new issue
Block a user