Skip to content

Commit ba6284d

Browse files
committed
Use --checkInstall to silence the Update.exe
1 parent e2b738b commit ba6284d

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

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

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,19 @@ export function installWindowsSetup({
8484
console.warn(
8585
"Installing globally, since we haven't discovered a way to specify an install path"
8686
);
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-
});
87+
execute(
88+
filepath,
89+
[
90+
// See https://github.com/Squirrel/Squirrel.Windows/blob/51f5e2cb01add79280a53d51e8d0cfa20f8c9f9f/src/Setup/winmain.cpp#L60C22-L68
91+
'--checkInstall',
92+
],
93+
{
94+
env: {
95+
// See https://github.com/Squirrel/Squirrel.Windows/blob/51f5e2cb01add79280a53d51e8d0cfa20f8c9f9f/src/Setup/UpdateRunner.cpp#L173C40-L173C54
96+
SQUIRREL_TEMP: sandboxPath,
97+
},
98+
}
99+
);
93100

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

0 commit comments

Comments
 (0)