Master-x64.ina Apr 2026
; --- Optional: Disable program group page if not needed --- ; DisableProgramGroupPage=yes
// --------------------------------------------------------------------- // 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;
[Icons] Name: "{group}\My Application"; Filename: "{app}\MyApp.exe" Name: "{group}{cm:UninstallProgram,My Application}"; Filename: "{uninstallexe}" Name: "{autodesktop}\My Application"; Filename: "{app}\MyApp.exe"; Tasks: desktopicon Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\My Application"; Filename: "{app}\MyApp.exe"; Tasks: quicklaunchicon 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
[Code] // --------------------------------------------------------------------- // Custom function to check Windows version (64-bit check already handled) // --------------------------------------------------------------------- function IsWin10: Boolean; begin Result := (GetWindowsVersion >= $0A000002); // Windows 10 build 10240+ end; ; --- Optional: Disable program group page if
// 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;
[Languages] Name: "english"; MessagesFile: "compiler:Default.isl" var Release: Cardinal
// Optional: Check for admin rights (already set above, but double-check) if not IsAdminLoggedOn then begin SuppressibleMsgBox('Administrator rights are required to install this application.', mbError, MB_OK, MB_OK); Result := False; Exit; end; end;
[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