Skip to content

Commit e2b738b

Browse files
committed
Passing SQUIRREL_TEMP to sandbox the install
1 parent a777a2f commit e2b738b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/compass-smoke-tests/src/installers/windows-setup.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function installWindowsSetup({
2424
kind,
2525
filepath,
2626
buildInfo,
27+
sandboxPath,
2728
}: InstallablePackage): InstalledAppInfo {
2829
assert.equal(kind, 'windows_setup');
2930
const appName = buildInfo.installerOptions.name;
@@ -83,7 +84,12 @@ export function installWindowsSetup({
8384
console.warn(
8485
"Installing globally, since we haven't discovered a way to specify an install path"
8586
);
86-
execute(filepath, []);
87+
execute(filepath, [], {
88+
env: {
89+
// As per https://github.com/Squirrel/Squirrel.Windows/blob/51f5e2cb01add79280a53d51e8d0cfa20f8c9f9f/src/Setup/UpdateRunner.cpp#L173C40-L173C54
90+
SQUIRREL_TEMP: sandboxPath,
91+
},
92+
});
8793

8894
const entry = queryRegistry();
8995
assert(entry !== null, 'Expected an entry in the registry after installing');

0 commit comments

Comments
 (0)