Skip to content

Commit

Permalink
Windows|Updater: Added 64-bit Windows support, install via msiexec
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 3, 2016
1 parent 3d0971a commit f9fe80e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions doomsday/apps/client/src/updater/updater.cpp
Expand Up @@ -76,7 +76,11 @@ using namespace de;

/// @todo The platform ID should come from the Builder.
#if defined(WIN32)
# define PLATFORM_ID "win-x86"
# if defined(__64BIT__)
# define PLATFORM_ID "win-x64"
# else
# define PLATFORM_ID "win-x86"
# endif

#elif defined(MACOSX)
# if defined(MACOS_10_7) || defined(MACOSX_NATIVESDK)
Expand Down Expand Up @@ -495,10 +499,6 @@ DENG2_PIMPL(Updater)
* @todo It would be slightly neater to check all these processes at
* the same time.
*/
Updater_AskToStopProcess("snowberry.exe", "Please quit the Doomsday Engine Frontend "
"before starting the update. Windows cannot update "
"files that are currently in use.");

Updater_AskToStopProcess("doomsday-shell.exe", "Please quit all Doomsday Shell instances "
"before starting the update. Windows cannot update "
"files that are currently in use.");
Expand All @@ -507,8 +507,10 @@ DENG2_PIMPL(Updater)
"before starting the update. Windows cannot update "
"files that are currently in use.");

// The distribution package is an installer executable, we can just run it.
// The distribution package is in .msi format.
installerCommand = new de::CommandLine;
installerCommand->append("msiexec");
installerCommand->append("/i");
installerCommand->append(distribPackagePath);
atexit(runInstallerCommand);

Expand Down

0 comments on commit f9fe80e

Please sign in to comment.