summaryrefslogtreecommitdiff
path: root/desktop/win32/source/setup/setup_main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/win32/source/setup/setup_main.cxx')
-rw-r--r--desktop/win32/source/setup/setup_main.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/win32/source/setup/setup_main.cxx b/desktop/win32/source/setup/setup_main.cxx
index e8f9be4719..6f0b6b4c39 100644
--- a/desktop/win32/source/setup/setup_main.cxx
+++ b/desktop/win32/source/setup/setup_main.cxx
@@ -111,13 +111,13 @@ extern "C" int __stdcall WinMain( HINSTANCE hInst, HINSTANCE, LPSTR, int )
if ( ! pSetup->ReadProfile() )
throw pSetup->GetError();
+ if ( ! pSetup->CheckVersion() )
+ throw pSetup->GetError();
+
if ( ! pSetup->IsAdminInstall() )
if ( ! pSetup->GetPatches() )
throw pSetup->GetError();
- if ( ! pSetup->CheckVersion() )
- throw pSetup->GetError();
-
// CheckForUpgrade() has to be called after calling GetPatches()!
if ( ! pSetup->CheckForUpgrade() )
throw pSetup->GetError();