diff options
Diffstat (limited to 'desktop/win32/source/setup/setup_main.cxx')
-rw-r--r-- | desktop/win32/source/setup/setup_main.cxx | 6 |
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 24b542a17e8b..b8b54c8f7550 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(); |