We are translating our application to .Net4, but we still have clients in Windows XP SP2. Therefore, I need to do additional checks in the setup.
Creating a pop-up message at the beginning of the setup to throw XP SP2 users is pretty simple:
function InitializeSetup(): Boolean;
var
Version: TWindowsVersion;
begin
if IsModuleLoaded('monalbumphoto.exe') then begin
MsgBox(ExpandConstant('{cm:PleaseClose}'), mbError, MB_OK);
Result := false;
Abort;
end else begin
GetWindowsVersionEx(Version);
if (Version.Major = 5) and (Version.Minor = 1) and (Version.ServicePackMajor < 3) then begin
MsgBox(ExpandConstant('{cm:WrongVersion}'), mbError, MB_OK);
Result := false;
Abort;
end else begin
Result := true;
end;
end;
end;
But now the requirements have changed. I need to show a (long) message, explaining that the user must either upgrade to SP3 or download an outdated version of our application with a link to it.
The easiest way is to change the message box to use the YESNO buttons (for example, in this question How to display a hyperlink in Inno Setup? ) To automatically load the settings. But I want to go further.
. ( Inno Setup) , , , , .
, , ?
!