Module: wine Branch: master Commit: e6de503b1f76c328d326700a4334a3b88fd5da6e URL: https://source.winehq.org/git/wine.git/?a=commit;h=e6de503b1f76c328d326700a4...
Author: Piotr Caban piotr@codeweavers.com Date: Thu Jun 21 22:58:29 2018 +0200
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
---
dlls/appwiz.cpl/addons.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/appwiz.cpl/addons.c b/dlls/appwiz.cpl/addons.c index 67bf037..aede3d0 100644 --- a/dlls/appwiz.cpl/addons.c +++ b/dlls/appwiz.cpl/addons.c @@ -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;