Wix Service Installer 有时无法安装或启动 [英] Wix Service Installer sometimes fails to install or start

查看:37
本文介绍了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:

  1. 按重试按钮重试.
  2. 通过关闭安装程序并再次打开来重试.
  3. 通过关闭安装程序和 Windows 文件资源管理器并重新打开两者来重试.
  4. 断开外部驱动器并重新连接并重试安装程序.

但我正在寻找如何永久解决它.因为我想有一个可靠的安装程序.

But i am looking for how i can permanently solve it. Since i want to have a reliable installer.

使用以下设备:

  1. 装有 Windows 8.1 的 Windows 平板电脑
  2. 装有 Windows 10 的 Windows 平板电脑
  3. 装有 Windows 10 的 Windows 电脑
  4. 带有 Windows Server 2016 的 VirtualBox 实例
  5. 使用 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 eventvwrOK)
  • 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 and OK)

这篇关于Wix Service Installer 有时无法安装或启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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