RemovePreviousVersions VS 2008 leaves previous version untouched
-
I am accustomed to RemovePreviousVersions uninstalling the previous version and installing the new one. I just need to increment the version number, accept a new product code and leave the upgrade code untouched. But the vs2008 msi leaves the old versions of the files in the installation folder. I have read that this is because vs2008 checks the version of the individual files, and if they have not changed, refuses to install the new file. OK. So how do I increment the version number of the individual files? I do not want to have to change each file manually! Thanks, James
-
I am accustomed to RemovePreviousVersions uninstalling the previous version and installing the new one. I just need to increment the version number, accept a new product code and leave the upgrade code untouched. But the vs2008 msi leaves the old versions of the files in the installation folder. I have read that this is because vs2008 checks the version of the individual files, and if they have not changed, refuses to install the new file. OK. So how do I increment the version number of the individual files? I do not want to have to change each file manually! Thanks, James
I have discovered a simple, almost crude, solution for this problem. Remove the VERSIONINFO resource. Now the installer will delete the old installed file and replace it with the one in the installation package. To remove the VERSIONINFO resource: - Open the resource view - Open .rc - Open Version - Right click on VERSIONINFO - Delete