diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-05-13 20:46:08 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-05-19 12:15:13 -0500 |
commit | 2c085b3aa89150fff9a0ea6df2cde0ce56e3066d (patch) | |
tree | d5c1cfb9e6fa1cc1270c813d28a6ca3ee4f84b0b /src/burn/engine/userexperience.cpp | |
parent | f88ffc7f5c1710b5e106d7e6aea7f1e32fb15dfe (diff) | |
download | wix-2c085b3aa89150fff9a0ea6df2cde0ce56e3066d.tar.gz wix-2c085b3aa89150fff9a0ea6df2cde0ce56e3066d.tar.bz2 wix-2c085b3aa89150fff9a0ea6df2cde0ce56e3066d.zip |
Add InProgressDisplayName for bundles.
#6296
Diffstat (limited to 'src/burn/engine/userexperience.cpp')
-rw-r--r-- | src/burn/engine/userexperience.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/burn/engine/userexperience.cpp b/src/burn/engine/userexperience.cpp index 5a54f26e..07f4b831 100644 --- a/src/burn/engine/userexperience.cpp +++ b/src/burn/engine/userexperience.cpp | |||
@@ -2119,7 +2119,8 @@ EXTERN_C BAAPI UserExperienceOnProgress( | |||
2119 | } | 2119 | } |
2120 | 2120 | ||
2121 | EXTERN_C BAAPI UserExperienceOnRegisterBegin( | 2121 | EXTERN_C BAAPI UserExperienceOnRegisterBegin( |
2122 | __in BURN_USER_EXPERIENCE* pUserExperience | 2122 | __in BURN_USER_EXPERIENCE* pUserExperience, |
2123 | __inout BOOTSTRAPPER_REGISTRATION_TYPE* pRegistrationType | ||
2123 | ) | 2124 | ) |
2124 | { | 2125 | { |
2125 | HRESULT hr = S_OK; | 2126 | HRESULT hr = S_OK; |
@@ -2127,8 +2128,10 @@ EXTERN_C BAAPI UserExperienceOnRegisterBegin( | |||
2127 | BA_ONREGISTERBEGIN_RESULTS results = { }; | 2128 | BA_ONREGISTERBEGIN_RESULTS results = { }; |
2128 | 2129 | ||
2129 | args.cbSize = sizeof(args); | 2130 | args.cbSize = sizeof(args); |
2131 | args.recommendedRegistrationType = *pRegistrationType; | ||
2130 | 2132 | ||
2131 | results.cbSize = sizeof(results); | 2133 | results.cbSize = sizeof(results); |
2134 | results.registrationType = *pRegistrationType; | ||
2132 | 2135 | ||
2133 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONREGISTERBEGIN, &args, &results); | 2136 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONREGISTERBEGIN, &args, &results); |
2134 | ExitOnFailure(hr, "BA OnRegisterBegin failed."); | 2137 | ExitOnFailure(hr, "BA OnRegisterBegin failed."); |
@@ -2137,6 +2140,10 @@ EXTERN_C BAAPI UserExperienceOnRegisterBegin( | |||
2137 | { | 2140 | { |
2138 | hr = HRESULT_FROM_WIN32(ERROR_INSTALL_USEREXIT); | 2141 | hr = HRESULT_FROM_WIN32(ERROR_INSTALL_USEREXIT); |
2139 | } | 2142 | } |
2143 | else if (BOOTSTRAPPER_REGISTRATION_TYPE_NONE < results.registrationType && BOOTSTRAPPER_REGISTRATION_TYPE_FULL >= results.registrationType) | ||
2144 | { | ||
2145 | *pRegistrationType = results.registrationType; | ||
2146 | } | ||
2140 | 2147 | ||
2141 | LExit: | 2148 | LExit: |
2142 | return hr; | 2149 | return hr; |
@@ -2316,7 +2323,7 @@ LExit: | |||
2316 | 2323 | ||
2317 | EXTERN_C BAAPI UserExperienceOnUnregisterBegin( | 2324 | EXTERN_C BAAPI UserExperienceOnUnregisterBegin( |
2318 | __in BURN_USER_EXPERIENCE* pUserExperience, | 2325 | __in BURN_USER_EXPERIENCE* pUserExperience, |
2319 | __inout BOOL* pfKeepRegistration | 2326 | __inout BOOTSTRAPPER_REGISTRATION_TYPE* pRegistrationType |
2320 | ) | 2327 | ) |
2321 | { | 2328 | { |
2322 | HRESULT hr = S_OK; | 2329 | HRESULT hr = S_OK; |
@@ -2324,16 +2331,17 @@ EXTERN_C BAAPI UserExperienceOnUnregisterBegin( | |||
2324 | BA_ONUNREGISTERBEGIN_RESULTS results = { }; | 2331 | BA_ONUNREGISTERBEGIN_RESULTS results = { }; |
2325 | 2332 | ||
2326 | args.cbSize = sizeof(args); | 2333 | args.cbSize = sizeof(args); |
2327 | args.fKeepRegistration = *pfKeepRegistration; | 2334 | args.recommendedRegistrationType = *pRegistrationType; |
2328 | 2335 | ||
2329 | results.cbSize = sizeof(results); | 2336 | results.cbSize = sizeof(results); |
2337 | results.registrationType = *pRegistrationType; | ||
2330 | 2338 | ||
2331 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONUNREGISTERBEGIN, &args, &results); | 2339 | hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONUNREGISTERBEGIN, &args, &results); |
2332 | ExitOnFailure(hr, "BA OnUnregisterBegin failed."); | 2340 | ExitOnFailure(hr, "BA OnUnregisterBegin failed."); |
2333 | 2341 | ||
2334 | if (!args.fKeepRegistration && results.fForceKeepRegistration) | 2342 | if (BOOTSTRAPPER_REGISTRATION_TYPE_NONE < results.registrationType && BOOTSTRAPPER_REGISTRATION_TYPE_FULL >= results.registrationType) |
2335 | { | 2343 | { |
2336 | *pfKeepRegistration = TRUE; | 2344 | *pRegistrationType = results.registrationType; |
2337 | } | 2345 | } |
2338 | 2346 | ||
2339 | LExit: | 2347 | LExit: |