diff options
| author | Bob Arnson <bob@firegiant.com> | 2025-04-08 21:05:24 -0400 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2025-05-28 16:33:28 -0700 |
| commit | ec0ece17b141b88210bf6213922288160ea53656 (patch) | |
| tree | b2cfe7563bf865929ff36acb7c2e633d28cef053 /src/burn/engine/cache.cpp | |
| parent | 68a2b7199b360a0dce6d1b1ebf13dc44f21ba89f (diff) | |
| download | wix-ec0ece17b141b88210bf6213922288160ea53656.tar.gz wix-ec0ece17b141b88210bf6213922288160ea53656.tar.bz2 wix-ec0ece17b141b88210bf6213922288160ea53656.zip | |
Bring back WixBundleSourceProcess* variables.
Fixes https://github.com/wixtoolset/issues/issues/9029
Diffstat (limited to 'src/burn/engine/cache.cpp')
| -rw-r--r-- | src/burn/engine/cache.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/burn/engine/cache.cpp b/src/burn/engine/cache.cpp index 16db4a81..e432df69 100644 --- a/src/burn/engine/cache.cpp +++ b/src/burn/engine/cache.cpp | |||
| @@ -260,6 +260,9 @@ extern "C" HRESULT CacheInitializeSources( | |||
| 260 | hr = PathForCurrentProcess(&sczCurrentPath, NULL); | 260 | hr = PathForCurrentProcess(&sczCurrentPath, NULL); |
| 261 | ExitOnFailure(hr, "Failed to get current process path."); | 261 | ExitOnFailure(hr, "Failed to get current process path."); |
| 262 | 262 | ||
| 263 | hr = VariableSetString(pVariables, BURN_BUNDLE_SOURCE_PROCESS_PATH, sczCurrentPath, FALSE, FALSE); | ||
| 264 | ExitOnFailure(hr, "Failed to set %ls variable.", BURN_BUNDLE_SOURCE_PROCESS_PATH); | ||
| 265 | |||
| 263 | // Determine if we are running from the package cache or not. | 266 | // Determine if we are running from the package cache or not. |
| 264 | hr = CacheGetCompletedPath(pCache, pRegistration->fPerMachine, pRegistration->sczCode, &sczCompletedFolder); | 267 | hr = CacheGetCompletedPath(pCache, pRegistration->fPerMachine, pRegistration->sczCode, &sczCompletedFolder); |
| 265 | ExitOnFailure(hr, "Failed to get completed path for bundle."); | 268 | ExitOnFailure(hr, "Failed to get completed path for bundle."); |
| @@ -275,6 +278,9 @@ extern "C" HRESULT CacheInitializeSources( | |||
| 275 | hr = PathGetDirectory(sczCurrentPath, &pCache->sczSourceProcessFolder); | 278 | hr = PathGetDirectory(sczCurrentPath, &pCache->sczSourceProcessFolder); |
| 276 | ExitOnFailure(hr, "Failed to initialize cache source folder."); | 279 | ExitOnFailure(hr, "Failed to initialize cache source folder."); |
| 277 | 280 | ||
| 281 | hr = VariableSetString(pVariables, BURN_BUNDLE_SOURCE_PROCESS_FOLDER, pCache->sczSourceProcessFolder, FALSE, FALSE); | ||
| 282 | ExitOnFailure(hr, "Failed to set %ls variable.", BURN_BUNDLE_SOURCE_PROCESS_FOLDER); | ||
| 283 | |||
| 278 | // If we're not running from the cache, ensure the original source is set. | 284 | // If we're not running from the cache, ensure the original source is set. |
| 279 | if (!pCache->fRunningFromCache) | 285 | if (!pCache->fRunningFromCache) |
| 280 | { | 286 | { |
