diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-04-19 17:11:46 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-04-19 23:12:55 -0500 |
| commit | 61a8d39f689222faa677e4bd79475cd77795c57a (patch) | |
| tree | 951c72ede571b23a1b1513136c861066ab8d3313 /src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h | |
| parent | 707e77212e105cd7fa8a74baca6efa3ae3e6d6b3 (diff) | |
| download | wix-61a8d39f689222faa677e4bd79475cd77795c57a.tar.gz wix-61a8d39f689222faa677e4bd79475cd77795c57a.tar.bz2 wix-61a8d39f689222faa677e4bd79475cd77795c57a.zip | |
Allow setting source from OnCacheAcquireResolving.
Diffstat (limited to 'src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h')
| -rw-r--r-- | src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h b/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h index d8994c26..603df890 100644 --- a/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h +++ b/src/WixToolset.BootstrapperCore.Native/inc/BootstrapperApplication.h | |||
| @@ -64,6 +64,20 @@ enum BOOTSTRAPPER_CACHE_OPERATION | |||
| 64 | BOOTSTRAPPER_CACHE_OPERATION_EXTRACT, | 64 | BOOTSTRAPPER_CACHE_OPERATION_EXTRACT, |
| 65 | }; | 65 | }; |
| 66 | 66 | ||
| 67 | enum BOOTSTRAPPER_CACHE_RESOLVE_OPERATION | ||
| 68 | { | ||
| 69 | // There is no source available. | ||
| 70 | BOOTSTRAPPER_CACHE_RESOLVE_NONE, | ||
| 71 | // Copy the payload or container from the chosen local source. | ||
| 72 | BOOTSTRAPPER_CACHE_RESOLVE_LOCAL, | ||
| 73 | // Download the payload or container from the download URL. | ||
| 74 | BOOTSTRAPPER_CACHE_RESOLVE_DOWNLOAD, | ||
| 75 | // Extract the payload from the container. | ||
| 76 | BOOTSTRAPPER_CACHE_RESOLVE_CONTAINER, | ||
| 77 | // Look again for the payload or container locally. | ||
| 78 | BOOTSTRAPPER_CACHE_RESOLVE_RETRY, | ||
| 79 | }; | ||
| 80 | |||
| 67 | enum BOOTSTRAPPER_CACHE_VERIFY_STEP | 81 | enum BOOTSTRAPPER_CACHE_VERIFY_STEP |
| 68 | { | 82 | { |
| 69 | BOOTSTRAPPER_CACHE_VERIFY_STEP_STAGE, | 83 | BOOTSTRAPPER_CACHE_VERIFY_STEP_STAGE, |
| @@ -379,14 +393,14 @@ struct BA_ONCACHEACQUIRERESOLVING_ARGS | |||
| 379 | DWORD dwRecommendedSearchPath; | 393 | DWORD dwRecommendedSearchPath; |
| 380 | LPCWSTR wzDownloadUrl; | 394 | LPCWSTR wzDownloadUrl; |
| 381 | LPCWSTR wzPayloadContainerId; | 395 | LPCWSTR wzPayloadContainerId; |
| 382 | BOOTSTRAPPER_CACHE_OPERATION recommendation; | 396 | BOOTSTRAPPER_CACHE_RESOLVE_OPERATION recommendation; |
| 383 | }; | 397 | }; |
| 384 | 398 | ||
| 385 | struct BA_ONCACHEACQUIRERESOLVING_RESULTS | 399 | struct BA_ONCACHEACQUIRERESOLVING_RESULTS |
| 386 | { | 400 | { |
| 387 | DWORD cbSize; | 401 | DWORD cbSize; |
| 388 | DWORD dwChosenSearchPath; | 402 | DWORD dwChosenSearchPath; |
| 389 | BOOTSTRAPPER_CACHE_OPERATION action; | 403 | BOOTSTRAPPER_CACHE_RESOLVE_OPERATION action; |
| 390 | BOOL fCancel; | 404 | BOOL fCancel; |
| 391 | }; | 405 | }; |
| 392 | 406 | ||
