diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-02-03 17:09:50 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-02-04 22:16:10 -0600 |
| commit | c6c17104b50936432a3fe9ca214ba9a3dfa32780 (patch) | |
| tree | 7ad23896fd7e1768a5f81ebb4dc2abe99718eadb /src/WixToolset.BootstrapperCore.Native | |
| parent | fd8c2b0899bfbce07386af245c04eb21dc01cbdf (diff) | |
| download | wix-c6c17104b50936432a3fe9ca214ba9a3dfa32780.tar.gz wix-c6c17104b50936432a3fe9ca214ba9a3dfa32780.tar.bz2 wix-c6c17104b50936432a3fe9ca214ba9a3dfa32780.zip | |
Automatically uninstall the bundle after Quit if eligible.
For now, the requirements are:
* The bundle is installed and
* The bundle is per-user or has already elevated and
* No non-permanent packages are installed and
* No non-permanent packages are cached and
* No related bundle would run by default during uninstall and
* The bundle didn't Uninstall/Cache/Install/Modify/Repair and
* The BA didn't opt out of this behavior
Diffstat (limited to 'src/WixToolset.BootstrapperCore.Native')
| -rw-r--r-- | src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h b/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h index c0baa958..48bd813d 100644 --- a/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h +++ b/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h | |||
| @@ -221,6 +221,9 @@ enum BOOTSTRAPPER_SHUTDOWN_ACTION | |||
| 221 | // restart the engine which will load the bootstrapper application again. | 221 | // restart the engine which will load the bootstrapper application again. |
| 222 | // Typically used to switch from a native bootstrapper application to a managed one. | 222 | // Typically used to switch from a native bootstrapper application to a managed one. |
| 223 | BOOTSTRAPPER_SHUTDOWN_ACTION_RELOAD_BOOTSTRAPPER, | 223 | BOOTSTRAPPER_SHUTDOWN_ACTION_RELOAD_BOOTSTRAPPER, |
| 224 | // Opts out of the engine behavior of trying to uninstall itself | ||
| 225 | // when no non-permanent packages are installed. | ||
| 226 | BOOTSTRAPPER_SHUTDOWN_ACTION_SKIP_CLEANUP, | ||
| 224 | }; | 227 | }; |
| 225 | 228 | ||
| 226 | enum BURN_MSI_PROPERTY | 229 | enum BURN_MSI_PROPERTY |
| @@ -470,6 +473,7 @@ struct BA_ONDETECTCOMPLETE_ARGS | |||
| 470 | { | 473 | { |
| 471 | DWORD cbSize; | 474 | DWORD cbSize; |
| 472 | HRESULT hrStatus; | 475 | HRESULT hrStatus; |
| 476 | BOOL fEligibleForCleanup; | ||
| 473 | }; | 477 | }; |
| 474 | 478 | ||
| 475 | struct BA_ONDETECTCOMPLETE_RESULTS | 479 | struct BA_ONDETECTCOMPLETE_RESULTS |
