We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kkkwj
Posts: 88
Joined: Thu Mar 01, 2007 10:45 pm

How to remove old auto-update files from AppData directory

When the auto-updater downloads new updates, it puts them into unique update directories named after the "New Update" nodes in the auto-updater project. (In my case, my updates are named Update.v10, Update.v11, Update.v12).

This leads to an accumulation of old MSI files in the directories

c:\docssettings\me\appdata\..\MyApp\updates\Update.v10\MyApp.msi
c:\docssettings\me\appdata\..\MyApp\updates\Update.v11\MyApp.msi
c:\docssettings\me\appdata\..\MyApp\updates\Update.v12\MyApp.msi

How can I tell the upgrader to remove old updates when it installs a whole new (replacement) application? I don't want my target machines to have 100 old msi files hanging around after a year of daily development updates... :-)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

If you really want to remove the cached MSIs (not recommended) you need to modify the AIP file (with a text editor) like this:

In the "caphyon.advinst.msicomp.MsiInstExSeqComponent" component remove this: "AND NOT (UPGRADINGPRODUCTCODE)" for the "AI_UPDATER_UNINSTALL" action.

Regards,
Gigi
_____________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
kkkwj
Posts: 88
Joined: Thu Mar 01, 2007 10:45 pm

Thank you for the reply. Would you please comment on why deleting old MSI files is not recommended?

And what do to about 100's of the MSIs that build up as daily development releases start to build up on tester machines?

Thanks
kj
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

On uninstall the cached MSIs are removed (but not on upgrade). The cached MSIs are not removed on upgrade in case the user wants to revert to an older version.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”