diff --git a/Changes b/Changes index 4a975f74c..642d4c817 100644 --- a/Changes +++ b/Changes @@ -1477,3 +1477,5 @@ seen. gmtime warning still there and a missing return for normal users. - Fixed a win32 SSL installer problem - Fixed problem with DEBUG ERROR when SSL handshaking (reported by some people) +- Fixed a bug where the win32 installer didn't install dbghelp.dll on systems that don't + have any version of the dll. diff --git a/src/win32/unrealinst.iss b/src/win32/unrealinst.iss index a0f2f9a55..f4e68ee6b 100644 --- a/src/win32/unrealinst.iss +++ b/src/win32/unrealinst.iss @@ -63,7 +63,9 @@ begin output := ExpandConstant('{app}\DbgHelp.Dll'); GetVersionNumbersString(dbghelp,m); if ((CurPage = wpReady) AND NOT FileExists(output)) then begin - if StrToInt(m[1]) < 5 then begin + if (NOT FileExists(dbghelp)) then + m := StringOfChar('0',1); + if (StrToInt(m[1]) < 5) then begin answer := MsgBox('DbgHelp.dll version 5.0 or higher is required to install Unreal, do you wish to install it now?', mbConfirmation, MB_YESNO); if answer = IDYES then begin tmp := ExpandConstant('{tmp}\dbghelp.dll'); diff --git a/src/win32/unrealinstssl.iss b/src/win32/unrealinstssl.iss index 6252dea0f..c0ac1339a 100644 --- a/src/win32/unrealinstssl.iss +++ b/src/win32/unrealinstssl.iss @@ -70,7 +70,9 @@ begin output := ExpandConstant('{app}\DbgHelp.Dll'); GetVersionNumbersString(dbghelp,m); if ((CurPage = wpReady) AND NOT FileExists(output)) then begin - if StrToInt(m[1]) < 5 then begin + if (NOT FileExists(dbghelp)) then + m := StringOfChar('0',1); + if (StrToInt(m[1]) < 5) then begin answer := MsgBox('DbgHelp.dll version 5.0 or higher is required to install Unreal, do you wish to install it now?', mbConfirmation, MB_YESNO); if answer = IDYES then begin tmp := ExpandConstant('{tmp}\dbghelp.dll');