[DONE] <xydata>\Temp\XYplorer_*_Install.exe

Features wanted...
Post Reply
Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

[DONE] <xydata>\Temp\XYplorer_*_Install.exe

Post by Borut »

Ehm, took me a some years to become aware of the fact that after each update a downloaded file XYplorer_*_Install.exe is being kept in the %temp% folder (and since recently in the <xydata>\Temp - which is better, but so I spotted the whole issue, as I was syncing between the computers).

Maybe most of the people find this good and expected, but I would be happier with an option/tweak not to keep it there after update (or, maybe even better, to keep just a certain number of these files).

In my %temp% I currently see 157 such files, since 2017-06-04, accounting for almost 600 MB. :) Not a big deal, but still...
Last edited by Borut on 17 Mar 2019 12:42, edited 1 time in total.
Win 10 Pro 64bit

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: <xydata>\Temp\XYplorer_*_Install.exe

Post by highend »

+2
One of my scripts helped you out? Please donate via Paypal

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: <xydata>\Temp\XYplorer_*_Install.exe

Post by Leito »

:tup: The installer should be deleted after the update is applied.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: <xydata>\Temp\XYplorer_*_Install.exe

Post by jupe »

As it is now I can see this behavior filling up USB stick drives of portable XYs, and giving people an extra maintenance task to perform: clearing XYTEMP. Most average customers probably unaware until they get drive full message and have to investigate, possibly causing data loss in the meantime.

Also in my case I have an install of XY on my OneDrive so that all my settings are synced and now you are using XYTEMP not %TEMP% it uploads installs (using my data allowance & ISP data) which I don't really like, as a workaround I am just using a script to update instead of the inbuilt updater, so I am not affected, but my opinion is I actually preferred it the old way using %TEMP%, but if that change was 100% necessary then I agree the installs should be removed, or maybe alternatively as a compromise download all the installers with the same filename so that only 1 is kept in XYTEMP at a time.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: <xydata>\Temp\XYplorer_*_Install.exe

Post by admin »

OK, I'll check that.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: <xydata>\Temp\XYplorer_*_Install.exe

Post by admin »

It's not easy. The installer cannot self-delete.

Options would be be:
1) empty the XYplorer temp folder on startup
2) empty the XYplorer temp folder on exit

But is it good?

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: <xydata>\Temp\XYplorer_*_Install.exe

Post by Borut »

For me, delete of everything in and below <xydata>\Temp\ on exit would be good enough/expected.

Possible refinement would be to have a special logic for deleting XYplorer_*_Install.exe, like this: Delete all but n most recent ones.

(This would work in <xydata>\Temp\, but also a subfolder for XYplorer_*_Install.exe could be envisaged for upgrading, which would perhaps make implementation a bit easier, I think.)

So all deleting in <xydata>\Temp\ and below would be done on exit. Sync-ready.
Win 10 Pro 64bit

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: <xydata>\Temp\XYplorer_*_Install.exe

Post by admin »

I would keep it simple and make it optional (some folks might wish to keep those installers) in Configuration | General | Startup & Exit:

[ ] Empty temporary folder on exit

or so...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: <xydata>\Temp\XYplorer_*_Install.exe

Post by admin »

Done with a tweak. Next beta...

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: [DONE] <xydata>\Temp\XYplorer_*_Install.exe

Post by Borut »

Code: Select all

v19.80.0108 - 2019-03-17 11:51
    * Temp Folder: From now on the XYplorer Temp Folder "<xydata>\Temp\" is 
      automatically emptied on app exit.
      Don't like it? Stop it using this new tweak:
        NoKillTemp=1
Works (did not try setting NoKillTemp=1 yet, however) .

Thanks!! :tup:
Win 10 Pro 64bit

Post Reply