Wix Service Installer sometimes fails to install or start(Wix Service Installer 有时无法安装或启动)
问题描述
有时当我运行我的安装程序(使用 wix 构建)时,它无法安装或启动服务.但问题并不总是出现,所以大部分时间它都有效,但有时它会失败.到目前为止,我的解决方案是:
Sometimes when i am running my installer (build with wix) it fails to install or start the service. But the problem doesn't always appear, so most of the time it works and but now and then it fails. My solutions until now are:
- 按重试按钮重试.
- 通过关闭安装程序并再次打开来重试.
- 通过关闭安装程序和 Windows 文件资源管理器并重新打开两者来重试.
- 断开外部驱动器并重新连接并重试安装程序.
但我正在寻找如何永久解决它.因为我想有一个可靠的安装程序.
But i am looking for how i can permanently solve it. Since i want to have a reliable installer.
使用以下设备:
- 装有 Windows 8.1 的 Windows 平板电脑
- 装有 Windows 10 的 Windows 平板电脑
- 装有 Windows 10 的 Windows 电脑
- 带有 Windows Server 2016 的 VirtualBox 实例
- 使用 Windows 7 的 VMWare 实例
项目规格:
- .NET 4.7.1
- 蜡 3.11.1.2318
推荐答案
Verbose, Debug Logging:也许可以尝试用额外的调试信息做详细的日志记录,直接写而不用缓冲(以防止由于崩溃而丢失日志缓冲区 - 您的情况并不真正需要后者,但将其保留)并查看您是否获得有关运行时错误的更多信息:
Verbose, Debug Logging: Maybe try to do verbose logging with extra debugging information and direct write without buffering (to prevent loss of log buffer due to crashes - the latter not really needed for your case, but leave it in) and see if you get more information about the runtime error:
msiexec.exe/i C:PathYour.msi/L*vx!C:Your.log
一些问题:
- 您是否正在运行任何与服务安装相关的自定义操作?
- 您的服务实际上是做什么的?是否涉及任何数据库连接?
- 错误是否仅发生在特定机器 - 或所有机器上?有问题的机器是虚拟机吗?
- 重试使服务最终启动是否准确?
- 服务是用什么语言编写的?托管代码?(是的,看起来是这样)
- 这个服务不是二进制自动转换来作为服务运行的,是吗?(猜不出来)
- 事件查看器中的内容是什么?(Windows + R
eventvwr
和OK
)
- Are you running any custom actions related to the service installation?
- What does your service actually do? Does it involve any database connections?
- Does the error happen on specific machines only - or on all machines? Is the machine in question a virtual machine?
- Is it accurate that retrying makes the service eventually start?
- What language is the service written in? Managed code? (yes, looks like it is)
- This service is not a binary automatically converted to run as a service, is it? (guess not)
- What does it say in the event viewer? (Windows + R
eventvwr
andOK
)
这篇关于Wix Service Installer 有时无法安装或启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Wix Service Installer 有时无法安装或启动
基础教程推荐
- SSE 浮点算术是否可重现? 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- rabbitmq 的 REST API 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01