There are some things about Deployment/Setup project everybody knows, but when you need them nobody can remember them.
For example:
- deploying an application with an specific .Net Framewok:
you need to set both:
prerequisits launch conditionshere a good article about the howto: http://blogs.msdn.com/cschotte/archive/2007/08/15/vs2008-launch-conditions-and-prerequisites.aspx
- deploying files added to the project (Build Action = Content)
use the “Add Project Output” with “Content Files”
- making an Updateable MSI Package
- Set “DetectNewerInstalledVersion” to True
(optional) - Set “RemovePreviouseVersions” to True
(so that the user don’t needs to remove them bevor install) - NEVER change the “Upgradecode”.
- only change the “ProductCode” with the “Version” settings
(VS does this automatically when changing the “Version”)
- Set “DetectNewerInstalledVersion” to True
this post is very usefull thx!