From f892f972ca59e04a727e0ded488741205d2748e8 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Tue, 8 Apr 2025 21:05:24 -0400 Subject: Bring back WixBundleSourceProcess* variables. Fixes https://github.com/wixtoolset/issues/issues/9029 --- src/burn/engine/cache.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/burn/engine/cache.cpp') 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( hr = PathForCurrentProcess(&sczCurrentPath, NULL); ExitOnFailure(hr, "Failed to get current process path."); + hr = VariableSetString(pVariables, BURN_BUNDLE_SOURCE_PROCESS_PATH, sczCurrentPath, FALSE, FALSE); + ExitOnFailure(hr, "Failed to set %ls variable.", BURN_BUNDLE_SOURCE_PROCESS_PATH); + // Determine if we are running from the package cache or not. hr = CacheGetCompletedPath(pCache, pRegistration->fPerMachine, pRegistration->sczCode, &sczCompletedFolder); ExitOnFailure(hr, "Failed to get completed path for bundle."); @@ -275,6 +278,9 @@ extern "C" HRESULT CacheInitializeSources( hr = PathGetDirectory(sczCurrentPath, &pCache->sczSourceProcessFolder); ExitOnFailure(hr, "Failed to initialize cache source folder."); + hr = VariableSetString(pVariables, BURN_BUNDLE_SOURCE_PROCESS_FOLDER, pCache->sczSourceProcessFolder, FALSE, FALSE); + ExitOnFailure(hr, "Failed to set %ls variable.", BURN_BUNDLE_SOURCE_PROCESS_FOLDER); + // If we're not running from the cache, ensure the original source is set. if (!pCache->fRunningFromCache) { -- cgit v1.2.3-55-g6feb