VS 2010 Setup Project - Installer when upgrading doesn't update the .exe or .config files

馋奶兔 提交于 2019-12-11 05:08:39

问题


I have a problem with an application installer compiled in VS2010.

Version 1.1 installs fine, I get the .exe, .config and referenced assemblies.

I uninstall, then install 1.2. Again everything works as expected.

Uninstall, the install 1.1 again.

Next I install 1.2, the installer updates the referenced assmeblies (I can see the modified date is different) but not the .exe or the .config.

Is there something I'm missing config wise in the setup project?

Thanks

Sam


回答1:


You'll want to read:

Default File Versioning

Note: it's not the AssemblyVersion attribute that is important rather the AssemblyFileVersion attribute. The former is used by the GAC and Strong Name contracts while the later maps to the Windows Native FileVersion structure.




回答2:


I've actually answered my own question.

The problem was that I'd not incremented the assembly version of one of the referenced .dlls. Although the timestamp was being updated, the existing files were not being overwritten or patched.

I used

msiexec.exe /i "\\path\myApp.msi" /l*vx! C:\temp\install.log

to log what was happening and found the problem in there.

Since then I've incremented the offending assembly's version number and all is ok.



来源:https://stackoverflow.com/questions/9582696/vs-2010-setup-project-installer-when-upgrading-doesnt-update-the-exe-or-con

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!