Squirrel.Windows
Squirrel.Windows copied to clipboard
SquirrelTemp is abnormally large
Looking at my disk size with WinDirStat, \AppData\Local\SquirrelTemp is more than 160GB of size large. I tried to delete it more than two times as suggested by this, but it keeps to grow after deletion to the same size. I tried to ignore it but the size is very large and it is a bit of headache. Any suggestion to what to do is appreciated, thank you.
You can point SquirrelTemp to another folder, using the environment-variable SQUIRREL_TEMP, ie. to %temp%. %temp% can in turn be cleaned up at a regular basis
You have an app that is updating way too often, read the SquirrelSetup.log and it might say who it is
Sorry, but what is way too often? We make daily builds with Squirrel and that generates an install folder of several gigs after a while.
An installer framework shouldn't be the arbiter of how often updates are to be done but rather be robust and clean after itself, I reckon.
(I assume you mean SquirrelTemp on client machine, not were you build things)
We too have nightly builds, building squirrel installer. It was quite a lot in SquirrelTemp the on a machine I checked, but not enought for it to be a problem (2-3 gb). Also it doesn't look like it leaves something there after every update.
Could it be something that silently fails while updating, thus leaving temp-files behind?
Yep, SquirrelTemp on the client machine. The install is correct according to the logs, but it still leaves .nupkg files around (each is ~50mb, about the size of our installer). Log message:
[02/12/20 22:03:08] info: Program: Starting Squirrel Updater: --install .
[02/12/20 22:03:08] info: Program: Starting install, writing to C:\Users\marco\AppData\Local\SquirrelTemp
[02/12/20 22:03:09] info: Program: About to install to: C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild
[02/12/20 22:03:09] warn: Program: Install path C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild already exists, burning it to the ground
[02/12/20 22:03:09] info: CheckForUpdateImpl: Reading RELEASES file from C:\Users\marco\AppData\Local\SquirrelTemp
[02/12/20 22:03:09] info: CheckForUpdateImpl: First run, starting from scratch
[02/12/20 22:03:10] info: ApplyReleasesImpl: Writing files to app directory: C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\app-4.10.1-ptb154c5144
[02/12/20 22:03:16] info: LogHost: Rigging execution stub for Mudlet PTB_ExecutionStub.exe to C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\Mudlet PTB.exe
[02/12/20 22:03:20] info: ApplyReleasesImpl: Squirrel Enabled Apps: []
[02/12/20 22:03:20] warn: ApplyReleasesImpl: No apps are marked as Squirrel-aware! Going to run them all
[02/12/20 22:03:20] info: ApplyReleasesImpl: About to create shortcuts for Mudlet PTB.exe, rootAppDir C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild
[02/12/20 22:03:20] info: ApplyReleasesImpl: Creating shortcut for Mudlet PTB.exe => C:\Users\marco\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Mudlet makers\Mudlet PTB.lnk
[02/12/20 22:03:20] info: ApplyReleasesImpl: About to save shortcut: C:\Users\marco\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Mudlet makers\Mudlet PTB.lnk (target C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\Mudlet PTB.exe, workingDir C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\app-4.10.1-ptb154c5144, args , toastActivatorCSLID 00c3cb7c-994e-5c35-89f6-1667bd4117a5)
[02/12/20 22:03:20] info: ApplyReleasesImpl: Creating shortcut for Mudlet PTB.exe => C:\Users\marco\Desktop\Mudlet PTB.lnk
[02/12/20 22:03:20] info: ApplyReleasesImpl: About to save shortcut: C:\Users\marco\Desktop\Mudlet PTB.lnk (target C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\Mudlet PTB.exe, workingDir C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\app-4.10.1-ptb154c5144, args , toastActivatorCSLID 00c3cb7c-994e-5c35-89f6-1667bd4117a5)
[02/12/20 22:03:20] info: ApplyReleasesImpl: Processing shortcut 'C:\Users\marco\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Mudlet the MUD client (2).lnk'
[02/12/20 22:03:20] info: ApplyReleasesImpl: Old shortcut target: 'C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\Mudlet PTB.exe'
[02/12/20 22:03:20] info: ApplyReleasesImpl: New shortcut target: 'C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\Mudlet PTB.exe'
[02/12/20 22:03:20] info: ApplyReleasesImpl: Old iconPath is: 'C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\Mudlet PTB.exe'
[02/12/20 22:03:20] info: ApplyReleasesImpl: Finished shortcut successfully
[02/12/20 22:03:20] info: ApplyReleasesImpl: Starting fixPinnedExecutables
[02/12/20 22:03:20] info: ApplyReleasesImpl: Processing shortcut 'C:\Users\marco\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Mudlet the MUD client (2).lnk'
[02/12/20 22:03:20] info: ApplyReleasesImpl: Old shortcut target: 'C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\Mudlet PTB.exe'
[02/12/20 22:03:20] info: ApplyReleasesImpl: New shortcut target: 'C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\Mudlet PTB.exe'
[02/12/20 22:03:20] info: ApplyReleasesImpl: Old iconPath is: 'C:\Users\marco\AppData\Local\Mudlet-PublicTestBuild\Mudlet PTB.exe'
[02/12/20 22:03:20] info: ApplyReleasesImpl: Finished shortcut successfully
[02/12/20 22:03:20] info: ApplyReleasesImpl: Fixing up tray icons
[02/12/20 22:03:20] info: ApplyReleasesImpl: cleanDeadVersions: checking for version 4.10.1-ptb154c5144
[02/12/20 22:03:20] info: ApplyReleasesImpl: cleanDeadVersions: exclude new version folder app-4.10.1-ptb154c5144
[02/12/20 22:03:22] info: Program: Finished Squirrel Updater
I just run an update locally. I saw some big files come and go in SquirrelTemp, so for us the temp is cleaned up as it should, at least most of the time. Also got a lot less in the logs: 2020-12-04 11.48.42> Program: Starting Squirrel Updater: --processStartAndWait dRofus.exe -ignore-other-apps 2020-12-04 11.48.42> Program: Want to launch 'C:\Users\runeh\AppData\Local\dRofusNIGHTLY\app-2.6.0-nightly-5639\dRofus.exe' 2020-12-04 11.48.42> Program: About to wait for parent PID 8240 2020-12-04 11.48.42> Program: About to launch: 'C:\Users\runeh\AppData\Local\dRofusNIGHTLY\app-2.6.0-nightly-5639\dRofus.exe': -ignore-other-apps
FYI: We are a dotnet-app, and it is marked as squirrel-aware. Also currently using 1.9.1. (Haven't updated to latest for no particular reason) (Also I'm using other tools that use Squirrel, never checked if SquirrelTemp contained our stuff or someone elses before I wiped it. Sorry about that )