You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Only remove windows installer if it exists
* Warn if removal fails
* Passing SQUIRREL_TEMP to sandbox the install
* Use --checkInstall to silence the Update.exe
* Add a debug statement with the executable
* Pass --silent directly
`Failed to remove install location ${installLocation}: ${
74
+
errorinstanceofError ? error.message : error
75
+
}`
76
+
);
77
+
}
66
78
}
67
79
}
68
80
@@ -72,7 +84,20 @@ export function installWindowsSetup({
72
84
console.warn(
73
85
"Installing globally, since we haven't discovered a way to specify an install path"
74
86
);
75
-
execute(filepath,[]);
87
+
execute(
88
+
filepath,
89
+
[
90
+
// Args are passed through to the Update.exe https://github.com/Squirrel/Squirrel.Windows/blob/51f5e2cb01add79280a53d51e8d0cfa20f8c9f9f/src/Setup/winmain.cpp#L125
91
+
// See options in https://github.com/Squirrel/Squirrel.Windows/blob/51f5e2cb01add79280a53d51e8d0cfa20f8c9f9f/src/Update/StartupOption.cs
92
+
'--silent',
93
+
],
94
+
{
95
+
env: {
96
+
// See https://github.com/Squirrel/Squirrel.Windows/blob/51f5e2cb01add79280a53d51e8d0cfa20f8c9f9f/src/Setup/UpdateRunner.cpp#L173C40-L173C54
97
+
SQUIRREL_TEMP: sandboxPath,
98
+
},
99
+
}
100
+
);
76
101
77
102
constentry=queryRegistry();
78
103
assert(entry!==null,'Expected an entry in the registry after installing');
@@ -84,6 +109,7 @@ export function installWindowsSetup({
0 commit comments