Commit e6de503b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

appwiz.cpl: Support installing minor updates when installing addons.

parent 837cb92e
......@@ -183,9 +183,14 @@ enum install_res {
static enum install_res install_file(const WCHAR *file_name)
{
static const WCHAR update_cmd[] = {
'R','E','I','N','S','T','A','L','L','=','A','L','L',' ',
'R','E','I','N','S','T','A','L','L','M','O','D','E','=','v','o','m','u','s',0};
ULONG res;
res = MsiInstallProductW(file_name, NULL);
if(res == ERROR_PRODUCT_VERSION)
res = MsiInstallProductW(file_name, update_cmd);
if(res != ERROR_SUCCESS) {
ERR("MsiInstallProduct failed: %u\n", res);
return INSTALL_FAILED;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment