installer: minor code simplification

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1059 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
XhmikosR 2012-03-18 17:51:51 +00:00
parent c788495913
commit 7c5545d939

View File

@ -461,16 +461,14 @@ begin
ExpandConstant('{dotnet20}');
except
begin
if not WizardSilent() then
if SuppressibleMsgBox(CustomMessage('msg_AskToDownNET'), mbCriticalError, MB_YESNO or MB_DEFBUTTON1, IDNO) = IDYES then begin
if not WizardSilent() then begin
if SuppressibleMsgBox(CustomMessage('msg_AskToDownNET'), mbCriticalError, MB_YESNO or MB_DEFBUTTON1, IDNO) = IDYES then
ShellExec('open','http://download.microsoft.com/download/5/6/7/567758a3-759e-473e-bf8f-52154438565a/dotnetfx.exe','','',SW_SHOWNORMAL,ewNoWait,iErrorCode);
Result := False;
end
else
Result := False;
Result := False;
end;
end;
end;
end;
end;