Master-x64.ina 【FAST - STRATEGY】

// --------------------------------------------------------------------- // Prerequisite check before installation begins // --------------------------------------------------------------------- function InitializeSetup: Boolean; begin Result := True;

[Code] // --------------------------------------------------------------------- // Custom function to check Windows version (64-bit check already handled) // --------------------------------------------------------------------- function IsWin10: Boolean; begin Result := (GetWindowsVersion >= $0A000002); // Windows 10 build 10240+ end; master-x64.ina

[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 begin Result := True

[UninstallDelete] Type: filesandordirs; Name: "{app}\logs" begin Result := (GetWindowsVersion &gt

[Run] Filename: "{app}\MyApp.exe"; Description: "{cm:LaunchProgram,My Application}"; Flags: nowait postinstall skipifsilent

// 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;