Overwrite existing files? - Advanced Installer Community
maxonico
Posts: 7
Joined: Tue Dec 27, 2016 8:59 pm

Overwrite existing files?

Hello all,

I'm trying to have an installer that will work for both a fresh install and as an updater for an older version.

I've been able to run:

msiexec /i myMsi.msi REINSTALL=ALL REINSTALLMODE=voums

the product version gets updated (I can check that out by looking at the Add&Remove Programs), but the files remain the same. I already set the "Always overwrite existing files" with no luck. ProductCode and UpgradeCode remains the same as an older version already installed.

Is this the correct approach?

Thanks,
Maxi
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Overwrite existing files?

Hello Maxi,

No, this is not the correct approach.

The correct approach will be to change the "ProductCode" too when changing the "ProductVersion". Also, in "Upgrades" page you should select the "Automatically upgrade older product versions" option.

This way each time you launch the current setup (there is no need to use any specific command line) if an older version is found the current installation will automatically uninstall the previous product version before installing the current version.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”