Skip to content

Commit f4496f4

Browse files
author
Joachim Marder
committed
On Windows 8 and higher, we now offer the Windows 8.1 SDK for download.
1 parent 3945733 commit f4496f4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Designer/FSettings.pas

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,20 @@ implementation
5353
IOUtils;
5454

5555
const
56-
cUiccDownloadUrl = 'http://www.microsoft.com/en-us/download/confirmation.aspx?id=8279';
56+
cUiccDownloadUrl7 = 'http://www.microsoft.com/en-us/download/confirmation.aspx?id=8279'; //Windows 7 SDK
57+
cUiccDownloadUrl8 = 'http://go.microsoft.com/fwlink/p/?LinkId=323507'; // Windows 8 SDK download permalink
5758

58-
{ TFormSettings }
59+
{ TFormSettings }
5960

6061
procedure TFormSettings.DownloadButtonClick(Sender: TObject);
62+
var
63+
lDownloadUrl: String;
6164
begin
62-
ShellExecute(0, nil, PChar(cUiccDownloadUrl), '', '', SW_SHOWNORMAL);
65+
if TOSVersion.Check(6, 2) then
66+
lDownloadUrl := cUiccDownloadUrl8 // Windows 8 and higher
67+
else
68+
lDownloadUrl := cUiccDownloadUrl7; // Windows 7 and below
69+
ShellExecute(0, nil, PChar(lDownloadUrl), '', '', SW_SHOWNORMAL);
6370
end;
6471

6572
constructor TFormSettings.Create(const Settings: TSettings);

0 commit comments

Comments
 (0)