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

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Piotr Caban 2018-06-21 22:58:29 +02:00 committed by Alexandre Julliard
parent 837cb92e0c
commit e6de503b1f
1 changed files with 5 additions and 0 deletions

View File

@ -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;