简体   繁体   English

WIX次要升级文件更新而不更改版本号?

[英]WIX Minor Upgrade File Update Without Changing Version Number?

I have a DLL that is installed with a WIX MSI. 我有一个随WIX MSI安装的DLL。 I want to create a patch that will allow an end user to run and automatically update that DLL. 我想创建一个补丁,允许最终用户运行并自动更新该DLL。

I've been able to successfully get the patch created and the DLL does update ONLY if I update the DLLs version number. 我已经能够成功创建补丁,并且仅在更新DLL版本号的情况下DLL才会更新。 This is a pain because I'm not really interested in versioning the DLL necessarily every time I patch. 这很痛苦,因为我不一定对每次修补时的DLL版本都感兴趣。 I want to do this without changing the version number of the DLL. 我要执行此操作而不更改DLL的版本号。

I'm hesistant to share this with you because it's a hack that's usually reserved for when some vendor gives you a DLL and they have failed to follow the component rules and versioned the file. 我不愿与您分享此信息,因为当某些供应商为您提供DLL并且他们未遵循组件规则并对文件进行版本控制时,通常仅保留此hack。 It's really bad form to do this yourself in house. 在家里自己做这真是不好的形式。

You want to google "WiX Version Lying". 您想用Google搜索“ WiX版本说谎”。 Basically use update the File@DefaultVersion attribute in the WXS to specify a higher version number. 基本上,使用更新WXS中的File @ DefaultVersion属性来指定更高的版本号。 (Frequently 65535.0.0.0 ) This tricks MSI into always overwriting the file. (通常是65535.0.0.0)这会诱使MSI始终覆盖文件。

But it really would be better to just automate the versioning of your DLL's as part of the build process so MSI has real data to work with and you can easily audit the deployed environment. 但是,在构建过程中,最好只是自动化DLL的版本控制,这样MSI才能使用实际数据,并且可以轻松审核已部署的环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM