Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
491 views
in Technique[技术] by (71.8m points)

c# - Wix Service Installer sometimes fails to install or start

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. Retrying by pressing the retry button.
  2. Retrying by closing the installer and opening it again.
  3. Retrying by closing the installer and the windows file explorer and the reopening both.
  4. Disconnecting external drive and the reconnecting it and retrying the installer.

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

The following devices are used:

  1. Windows tablet with Windows 8.1
  2. Windows tablet with Windows 10
  3. Windows pc with Windows 10
  4. VirtualBox instance with Windows Server 2016
  5. VMWare instance with Windows 7

Project specs:

  • .NET 4.7.1
  • Wix 3.11.1.2318
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


Some questions:

  • 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)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...