houssein.khafaja
Posts: 4
Joined: Mon Nov 11, 2019 8:53 pm

Removing old .msi files in the programdata folder

Mon Nov 11, 2019 8:59 pm

Hello,

I was wondering if there was a configuration that makes the updater clear the .msi files in the C:\ProgramData\myApp\updates folder? These files are ~100mb, but we have a unique situation where we easily get ~100 updates per year, so that folder gets massive pretty quick.

Thanks!

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Removing old .msi files in the programdata folder

Tue Nov 12, 2019 11:34 am

Hello and welcome to Advanced Installer forums,

From what I understand, you have a custom folder where you save your updates (for instance, for a primary version of 1.0.0, you build versions 1.0.1, 1.0.2, etc. in that folder - please correct me if I'm wrong). If this is the case, I am afraid that the Updater cannot automatically delete those files, you will have to manually delete them when they aren't necessary anymore.

If this is not the case, could you please give me some more details about this so I can better understand the scenario?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

houssein.khafaja
Posts: 4
Joined: Mon Nov 11, 2019 8:53 pm

Re: Removing old .msi files in the programdata folder

Tue Nov 12, 2019 4:42 pm

So it seems like the updater is automatically backing up the previous version msi file before installing the new update. I don't believe we are doing this ourselves. I was asked to do research to figure out how we could possibly change it so that it either doesn't backup the previous version, or at the very least removes them after the installation. Files with .aiu extensions are also being generated, if that helps. I'm kind of in a weird situation information-wise, so I'm sorry for the lack for details.

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Removing old .msi files in the programdata folder

Wed Nov 13, 2019 2:49 pm

Hello,

Thank you for your followup on this and for the explanation, it was helpful.

In order to achieve what you want, please open your updater project, go to "Update Installer" tab and please select the "Delete update package file after installation" option.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

houssein.khafaja
Posts: 4
Joined: Mon Nov 11, 2019 8:53 pm

Re: Removing old .msi files in the programdata folder

Wed Nov 13, 2019 3:08 pm

Thanks for the reply! I will try to remember to reply back here if it works (or not).

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Removing old .msi files in the programdata folder

Wed Nov 13, 2019 3:25 pm

You are always welcome.

Hopefully it will work :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

houssein.khafaja
Posts: 4
Joined: Mon Nov 11, 2019 8:53 pm

Re: Removing old .msi files in the programdata folder

Thu Nov 14, 2019 2:45 pm

It took a little bit of time to find the correct tab, but in the end it worked great! Thanks again for the help! You may close/lock this thread if you want :)

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Removing old .msi files in the programdata folder

Thu Nov 14, 2019 3:29 pm

Thank you for the followup.

I am glad everything worked as expected.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”