diff --git a/lib/libimhex/source/api/imhex_api.cpp b/lib/libimhex/source/api/imhex_api.cpp index 769d359d8..1493880ea 100644 --- a/lib/libimhex/source/api/imhex_api.cpp +++ b/lib/libimhex/source/api/imhex_api.cpp @@ -936,7 +936,7 @@ namespace hex { } EventImHexClosing::subscribe([executablePath, updateTypeString] { - hex::executeCommand( + hex::startProgram( hex::format("\"{}\" \"{}\"", wolv::util::toUTF8String(executablePath), updateTypeString diff --git a/lib/libimhex/source/helpers/utils.cpp b/lib/libimhex/source/helpers/utils.cpp index 2746fc2ae..41cd147a6 100644 --- a/lib/libimhex/source/helpers/utils.cpp +++ b/lib/libimhex/source/helpers/utils.cpp @@ -339,7 +339,7 @@ namespace hex { void startProgram(const std::string &command) { #if defined(OS_WINDOWS) - std::ignore = system(hex::format("start {0}", command).c_str()); + std::ignore = system(hex::format("start \"\" {0}", command).c_str()); #elif defined(OS_MACOS) std::ignore = system(hex::format("open {0}", command).c_str()); #elif defined(OS_LINUX) diff --git a/main/updater/source/main.cpp b/main/updater/source/main.cpp index 59f5344b6..330038701 100644 --- a/main/updater/source/main.cpp +++ b/main/updater/source/main.cpp @@ -100,7 +100,7 @@ int installUpdate(const std::string &type, std::fs::path updatePath) { }; constexpr static auto UpdateHandlers = { - UpdateHandler { "win-msi", ".msi", "msiexec /passive /package {}" }, + UpdateHandler { "win-msi", ".msi", "msiexec /i {} /qb" }, UpdateHandler { "macos-dmg", ".dmg", "hdiutil attach {}" }, UpdateHandler { "linux-deb-22.04", ".deb", "sudo apt update && sudo apt install -y --fix-broken {}" }, UpdateHandler { "linux-deb-23.04", ".deb", "sudo apt update && sudo apt install -y --fix-broken {}" },