MSIEXEC Ignore 'Another version has already been installed' and overwrite all files.
Hi all,
I think the title pretty much says it all :). I created a .msi file, but when I make some changes in my application it won't install because another version is already installed.
I know you have to change the product code and version number, but I still want to be able to do this. So if I forget to do this, the app will still be updated.
Thnx in advance!
Re: MSIEXEC Ignore 'Another version has already been installed' and overwrite all fil
Quote:
Upgrade code
Use this field to establish the unique code assigned to all updates of this product. For example, suppose your installer package file is the first version (1.0) of your product named MyProduct, which has the product code {99} and the update code {14}.
Once upgrade code {14} has been assigned to MyProduct, you should use it for any upgrades to the product. For example, if you ship version 2.0 of MyProduct, you would give it a new product code (maybe {191}) and the same upgrade code ({14}).
Assigning the same upgrade code to all product versions this way gives the Microsoft® Windows® installer the information it requires to automatically uninstall an older version of a product when a new version is installed.
That's the process you generally follow then: keep the same update/upgrade code and assign a new product code to a new version.
The only alternative I'm aware of is to manually uninstall an old version before installing a new version.
Re: MSIEXEC Ignore 'Another version has already been installed' and overwrite all fil
easiest way to update the app from within the app:
http://www.planet-source-code.com/vb...xtCodeId=69060
This ends the current running exe (Makes a backup)and opens the new exe
Works on xp,vista, Windows 7. Must be run as Admin