I need to constantly release a new executable with modifications to send to the end user. The Set-UP Projects Properties are set to
RemovePreviousVersion = True
DetectNewerInstalledVersion = True
When I release a new build, I increment the Version AND change the Product Code.
(Since I am using Visual Studio 2010 - when you increment the Version it automatically changes the product code, but I've tried to change it manually also).
When the build is done - the previous version doesn't uninstall.
The settings are below:
EDIT: After some more research I've found that fileVersion of the project also needs to be increased. I've done so in the AssemblyInfo.cs
[assembly: AssemblyVersion("0.0.0.2")]
[assembly: AssemblyFileVersion("0.0.0.2")]
Both versions were 0.0.0.1 . After rebuilding - same issue.
Any ideas on how to get this work?
I have run into this also. What I found is the change has to be something greater than a change of the Revision Number. At the Minimum it needs to be the Build.
Major Version.Minor Version.Build Number.Revision
So in Your Case:
[assembly: AssemblyVersion("0.0.2.0")]
[assembly: AssemblyFileVersion("0.0.2.0")]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With