From e3b05c79c61e3d742d687e121aaca08c4e1b42bb Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 7 Feb 2011 17:12:35 +0100 Subject: [PATCH] MWL#55 : Adjust UI according to some user's expectations. If upgradable instances are found, bring a new dialog to inform user about it. This gives user a chance to deselect "database instance" feature early, because experience shows nobody really looks at features and their in their description in "customize setup" dialog. This also tells user that existing instances can be upgraded. --- win/packaging/ca/CustomAction.cpp | 5 +++ win/packaging/extra.wxs.in | 51 ++++++++++++++++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/win/packaging/ca/CustomAction.cpp b/win/packaging/ca/CustomAction.cpp index ddc0ffd0614..b856bc5f651 100644 --- a/win/packaging/ca/CustomAction.cpp +++ b/win/packaging/ca/CustomAction.cpp @@ -677,6 +677,11 @@ extern "C" UINT __stdcall CheckServiceUpgrades(MSIHANDLE hInstall) MsiSetPropertyW(hInstall, L"WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT", L""); MsiSetPropertyW(hInstall, L"WIXUI_EXITDIALOGOPTIONALCHECKBOX",L""); } + else + { + MsiSetPropertyW(hInstall, L"UpgradableServiceFound", L"1"); + MsiSetPropertyW(hInstall, L"WIXUI_EXITDIALOGOPTIONALCHECKBOX",L"1"); + } LExit: if(scm) CloseServiceHandle(scm); diff --git a/win/packaging/extra.wxs.in b/win/packaging/extra.wxs.in index 3ec03636213..932108ac50e 100644 --- a/win/packaging/extra.wxs.in +++ b/win/packaging/extra.wxs.in @@ -89,6 +89,49 @@ + + + + + + + Setup found existing database instances that can be upgraded to [ProductName].You can create a new instance and/or upgrade existing one. + + + + + + + + + + + + 1 + + + CreateOrUpgradeChoice = "Upgrade" + CreateOrUpgradeChoice = "Create" + 1 + + + 1 + + + + Create or upgrade database instance + + + + {\WixUI_Font_Title}[ProductName] setup + + + + OLDERVERSIONBEINGUPGRADED + + NOT Installed AND UpgradableServiceFound + ""]]> + + NOT Installed AND UpgradableServiceFound + - + $C.bin.upgrade_wizard.exe = 3 AND NOT Installed