VS 2010 Setup Project - Installer when upgrading d

2019-08-05 05:46发布

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

2条回答
SAY GOODBYE
2楼-- · 2019-08-05 06:34

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.

查看更多
走好不送
3楼-- · 2019-08-05 06:44

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.

查看更多
登录 后发表回答