From 4e5d26a2d1453f17366b36444ad0581f4b83dcd4 Mon Sep 17 00:00:00 2001 From: Matthew Bowra-Dean Date: Wed, 8 Sep 2010 21:26:07 +1200 Subject: [PATCH] Windows installer launches browser to download .NET with user's consent. --- packaging/windows/OpenRA.nsi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packaging/windows/OpenRA.nsi b/packaging/windows/OpenRA.nsi index da8c7d954e..5b0312c60f 100644 --- a/packaging/windows/OpenRA.nsi +++ b/packaging/windows/OpenRA.nsi @@ -201,9 +201,15 @@ Section "-DotNet" DotNet IfErrors error 0 IntCmp $0 1 done error done error: - MessageBox MB_OK ".NET Framework v3.5 SP1 or later is required to run OpenRA. $\nPlease install it from \ - http://www.microsoft.com/downloads/en/details.aspx?familyid=ab99342f-5d1a-413d-8319-81da479ab0d7 $\nand try the installer again" - Abort + MessageBox MB_YESNO ".NET Framework v3.5 SP1 or later is required to run OpenRA. $\n \ + Do you wish for the installer to launch your web browser in order to download and install it?" \ + IDYES download IDNO error2 + download: + ExecShell "open" "http://www.microsoft.com/downloads/en/details.aspx?familyid=ab99342f-5d1a-413d-8319-81da479ab0d7" + Goto done + error2: + MessageBox MB_OK "Installation will continue but be aware that OpenRA will not run unless .NET v3.5 SP1 \ + or later is installed." done: SectionEnd