sjstreeting
Posts: 26
Joined: Fri May 03, 2013 11:00 am

Possible to clean up old update installers automatically?

Is there a way to ask Advanced Installer or the update process to delete old installers that have been downloaded by the update process? Right now they all hang around forever on the local drive and a few users have asked if we can clean up after ourselves better.

Thanks
Steve
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Possible to clean up old update installers automatically

Hello Steve,

In order to remove a file, you can use a file remove operation or a folder remove operation. You should also change the download folder for the updates from the Updater page. This will ensure that you won't get a conflict between remove operation and new downloaded updates package installation process.

Also, you can achieve the desired behavior through your own custom action. For example, you can create your custom action as a custom action written in C# or a custom action written in C++.

Then you can go in the “Custom Actions” page and add a predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjstreeting
Posts: 26
Joined: Fri May 03, 2013 11:00 am

Re: Possible to clean up old update installers automatically

OK, thanks. Can I ask for a feature request to be logged for an in-built option to delete previous installers? I imagine it's likely to be a common request for people doing frequent updates.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Possible to clean up old update installers automatically

Hi,

W already have the option called "Delete update package file after installation", have you tried it?
This applies to the current installer, not the old ones, but it should help in the task of keeping clean the end-user machines.

This option is available in the updates configuration project, for each new update you add.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjstreeting
Posts: 26
Joined: Fri May 03, 2013 11:00 am

Re: Possible to clean up old update installers automatically

Thanks, I didn't spot that option before, I'll try it out.

Return to “Common Problems”