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