burgesbj
Posts: 4
Joined: Wed Jun 24, 2009 4:54 pm

AutoUpdate retains previous install files

I would like a way to clean out the download folder so that previous install files don't pile up. I noticed during my testing of auto update that over time there can be many installation files downloaded. if they are large then there is a lot of disk space wasted.
I tried giving the install files the same name from version to version but the auto updater would not download a new installer if it sees an installer with the same name already in the download folder. Perhaps another solution would be to have AI check the version or size of the install file to be downloaded and overwrite the file in the download folder if necesssary.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: AutoUpdate retains previous install files

Hi,

Currently the Updater cannot remove the downloaded files. However, this improvement is on our TODO list and it will be available in a future version. Until then, a solution is to remove the updates through a custom action which runs at the end of the upgrade process. The custom action can be scheduled after "InstallExecuteSequence" -> "InstallFinalize" with the "Asynchronous execution, do not wait for return" option. It should also wait a couple of seconds before deleting the files to make sure that the current installer can be removed.

Perhaps this how-to will help you.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
burgesbj
Posts: 4
Joined: Wed Jun 24, 2009 4:54 pm

Re: AutoUpdate retains previous install files

Thank you Cosmin.
The feature will be nice but the work around will do the trick for now.

Return to “Feature Requests”