Click here to Skip to main content
15,903,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..
By setting the bellow properties we can create the setup file automatically uninstall existing setup and install new setupfile.

DetectNewerInstalledVersion:True<br />
RemovePreviousVersion:True


But each and every setup file we need to change the version property of Setupfile. If it is, it won't through error while installing current setupfile otherwise
it throws error: already installed.

I am looking into how we can create the setup file without changing the version property of existing setupfile.

Thanks.
Posted
Updated 6-May-10 7:12am
v2

1 solution

If what's currently installed and the installer that you just rebuilt have the same app name and version number then how is Windows supposed to know that what's currently installed is a "previous version"? The version number is how it knows that the software installer that you want to run is newer than what's currently installed.

If you don't want to change the version property then you need to manually uninstall what's currently installed before you reinstall another package with the same name and version number.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900