运行RemovePreviousVersion时,MSI不会安装所有文件 [英] MSI does not install all files when RemovePreviousVersion is run
问题描述
我有一个使用WiX版本3的MSI版本.
I have a MSI build using WiX version 3.
我们正在部署的产品的所有以前的安装程序都可以在指定的配置下正常运行(即:如果存在以前的版本,请删除,然后安装新版本)-但是,我们构建的新MSI在以下情况下不会安装所有文件:它通过先删除"路径运行.
All previous installers for the product we are deploying worked fine with the configuration specified (that is: if previous version exists, remove, then install the new version) - however, the new MSIs we build don't install all files when it runs through the 'remove first' path.
如果我们手动删除现有安装,然后运行新版本,则会安装所有文件-当我在Orca中检查MSI文件时,文件和功能就会显示出来,并且看起来还不错.
If we manually remove the existing installation and then run the new version all the files are installed - and when I examine the MSI file in Orca the files and features are shown and seem to be fine.
我们已经尝试过在运行时启用详细记录并启用了额外的日志记录(/l*vx
),但是我们所能看到的所有文件是否都未在注册中&然后安装.
We have tried running with verbose and extra logging turned on (/l*vx
) however all we can see if that the files are not being registered & then installed.
有什么想法或建议吗?这把我们带到了墙上.
Any thoughts or suggestions? This is driving us up the wall.
推荐答案
好,与其他可以帮助我找到问题解决方案的人交谈.
OK, well talking to someone else where I am helped me find a solution to the problem.
我们添加了属性REINSTALLMODE
并将其设置为amus
.这是什么意思?
We added the property REINSTALLMODE
and set it to amus
. What does this mean?
默认情况下,该属性设置为omus
,这意味着:如果文件丢失或较旧,则重新安装;为计算机和用户配置单元重写注册表;重新安装快捷方式.将其更改为amus
基本上表示:重新安装所有文件.
By default the property is set to omus
which means: Reinstall if the file is missing or older, rewrite registry for machine and user hives, reinstall shortcuts. Changing this to amus
basically says: Reinstall all files.
所以,不是100%知道原因是什么-我怀疑可能是奇怪的锁或什么东西,但是设置为amus
并不会带来任何不利影响,所以我们会坚持下去.
So, not 100% sure what the cause was - I suspect there may have been strange locks or something, but setting to amus
doesn't being on any adverse effects, so we'll stick with that.
感谢您的建议.
(Also, more details on this property can be found here: MSDN: REINSTALLMODE Property
这篇关于运行RemovePreviousVersion时,MSI不会安装所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!