-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows updater leaves a 31MB *.msi file in the %APPDATA% folder #6690
Comments
Hm, didn't the updater(.cpp) code have functionality somewhere to remove the downloaded update after success? |
I just confirmed the .msi file is removed as soon as the updater finds "autoUpdateAttempted" set to "true" in the config file on startup in the regular case. Testing the updater is very tricky. You need to make sure that you have at least two builds with different versions and make sure that the (fake) update server correctly returns the version for the installer otherwise the updater will think that the update failed. Also it's hard to debug because you can't get logfiles from the freshly launched (after update) client without modifying its code. Is there a config setting for specifying the logfile/logdir? Would you be opposed to adding one? The only way I can confirm we keep leftover msi files is if the updater downloads additional files before the first one was installed. Maybe we could move all downloads to a subdir in What do you think? |
That does not handle the case that something was leftover in |
tested under win10updated 2.4.3 exe to 2.5.0 exe to 2.5.0 msi to 2.5.1rc2 msi no leftover *.msi files were found, neither under %appdata% nor under %localappdata% -> OK |
@dschmidt suggests to add a Remove-Item filename to the end of the powershell script to fix this
The text was updated successfully, but these errors were encountered: