Merge pull request #12491 from pchote/force-dotnet

Abort installation if .NET 4.5 isn't installed.
This commit is contained in:
reaperrr
2016-12-28 20:51:43 +01:00
committed by GitHub

View File

@@ -152,15 +152,8 @@ Section "-DotNet" DotNet
IfErrors error 0
IntCmp $0 1 done error done
error:
MessageBox MB_YESNO ".NET Framework v4.5 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/en-us/download/details.aspx?id=30653"
Goto done
error2:
MessageBox MB_OK "Installation will continue, but be aware that OpenRA will not run unless .NET v4.5 \
or later is installed."
MessageBox MB_OK ".NET Framework v4.5 or later is required to run OpenRA."
Abort
done:
SectionEnd