安装程序在 Windows Server 2012 R2 上失败 [英] Installer fails on Windows Server 2012 R2

查看:115
本文介绍了安装程序在 Windows Server 2012 R2 上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 wix 安装程序有一个自定义操作,该操作仅在升级期间运行并调用 exe 来编辑缓存的 msi 中的几个条件.此自定义操作在删除现有产品"之前运行.安装程序在除 2012 R2 之外的所有 Windows 环境中成功运行且没有错误.

My wix installer has a custom action which runs only during upgrade and calls an exe to edit few conditions in the cached msi. This custom action runs before "Remove Existing Products". The installer runs successfully without errors on all windows environments except 2012 R2.

Windows Server 2012 R2 上,安装程序在该特定自定义操作中失败并引发错误 110.我尝试以管理员身份运行安装程序,但仍然失败.我不知道这次失败背后的原因.非常感谢任何帮助.

On Windows Server 2012 R2, the installer fails at that particular custom action and throws error 110. I have tried running the installer as administrator but still it fails. I don't know the reason behind this failure. Any help is much appreciated.

推荐答案

如果已安装的产品损坏,那么标准的解决方案是使用补丁 (msp) 或通过使用重新安装/重新缓存产品的更新来修复它固定的MSI.修复它"显然是指在这些情况下纠正导致升级失败的任何内容.

If the installed product is broken then the standard solution is to fix it with a patch (msp) or a update by reinstalling/re-caching the product using a fixed MSI. By "fix it" I obviously mean correct whatever is causing the upgrade to fail in those conditions.

否则问题在于该程序,并找出它失败的确切位置和原因.我们不知道您是否在调用 MsiOpenDabase,是否使用 C# P/Invoke 等等.它需要跟踪功能来说明什么有效,什么无效,因为问题最终在于代码在特定操作系统版本上失败的原因.

Otherwise the issue is that program, and finding out exactly where and why it is failing. We don't know if you're calling MsiOpenDabase, whether you're using C# P/Invoke and so on. It needs trace capability to say what's working and what isn't because the question is ultimately about why the code fails on a particular OS version.

MsiOpenDatabase 和 110 有很多结果,例如:

There are plenty of results for MsiOpenDatabase and 110, such as this:

错误 110 (open_failed) MsiOpenDatabase - 循环错误

这篇关于安装程序在 Windows Server 2012 R2 上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆