[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
// 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; master-x64.ina
[Code] // --------------------------------------------------------------------- // Custom function to check Windows version (64-bit check already handled) // --------------------------------------------------------------------- function IsWin10: Boolean; begin Result := (GetWindowsVersion >= $0A000002); // Windows 10 build 10240+ end; [Files] ; Install main executable (ensure this is
[UninstallDelete] Type: filesandordirs; Name: "{app}\logs" Install dependencies (e.g.
[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
// 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;