// Check for .NET Framework 4.8 if not IsDotNet48Installed then begin SuppressibleMsgBox('This application requires .NET Framework 4.8.' + #13#10 + 'Please install it from https://dotnet.microsoft.com/download/dotnet-framework/net48', mbError, MB_OK, MB_OK); Result := False; Exit; end;
; --- 64-bit specific settings --- ArchitecturesInstallIn64BitMode=x64compatible ArchitecturesAllowed=x64compatible PrivilegesRequired=admin PrivilegesRequiredOverridesAllowed=dialog SetupLogging=yes UninstallLogMode=append master-x64.ina
// --------------------------------------------------------------------- // Check for .NET Framework 4.8 (example) // --------------------------------------------------------------------- function IsDotNet48Installed: Boolean; var Release: Cardinal; begin Result := False; if RegQueryDWordValue(HKLM, 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', 'Release', Release) then begin Result := (Release >= 528040); // .NET 4.8 = 528040 end; end; // Check for
[UninstallDelete] Type: filesandordirs; Name: "{app}\logs" Result := False
[Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsWin10
[Files] ; Install main executable (ensure this is your 64-bit .exe) Source: "bin\x64\Release\MyApp.exe"; DestDir: "{app}"; Flags: ignoreversion ; Install dependencies (e.g., DLLs, configs) Source: "bin\x64\Release*.dll"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs ; Install documentation Source: "docs*"; DestDir: "{app}\docs"; Flags: ignoreversion recursesubdirs ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Code] // --------------------------------------------------------------------- // Custom function to check Windows version (64-bit check already handled) // --------------------------------------------------------------------- function IsWin10: Boolean; begin Result := (GetWindowsVersion >= $0A000002); // Windows 10 build 10240+ end;