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:47:43 -0700 |
| commit | 5e68de7ee36892b35998edb4f29fc19509875397 (patch) | |
| tree | 9b9223590a8cdbfbbed6a32ce791d095a149be10 /src/burn/engine/cache.cpp | |
| parent | 6644974538985634c2ecc97474d77240e4bea3e4 (diff) | |
| download | wix-5e68de7ee36892b35998edb4f29fc19509875397.tar.gz wix-5e68de7ee36892b35998edb4f29fc19509875397.tar.bz2 wix-5e68de7ee36892b35998edb4f29fc19509875397.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 | { |
