Wix Installer Windows Service

Jun 20, 2013  As far as I know, Installer classes are not supported in WIX, Custom Actions are used instead. How do you call your code from WIX? WIX has a element for installing services. Although not allmighty, this element is very powerful and the preferred method to install Windows Services. See Installing and starting a Windows Service. Lesson learned when installing Windows service using WiX. 31 May 2013 Lessons learned, PowerShell, Windows, WiX As I was creating, few months back, some Windows service I also created MSI installer, using WiX, for it. Pretty straightforward – bunch of files in one Component plus ServiceInstall and ServiceControl. Then as the service started.

  1. Tip 5: User needs to run installer under administrative account to be able to install service under LocalSystem account. Real example. Installs and starts service on installation; stops and removes service on uninstallation.
  2. Jun 20, 2013  WiX: how to install and start Windows service running under LocalSystem account. Tip 1: Separate service under own tag. Tip 5: User needs to run installer under administrative account to be able to install service under LocalSystem account. Real example.
  3. Installing and starting a Windows Service using WiX Using WiX to install and start a Windows Service as part of your Add-In install is fairly easy. The only thing you really have to watch out for is the KeyPath value for your service executable; it has to be set to yes, while all other file KeyPaths must be set to no.
  4. Since Visual Studio 2012, the traditional Windows setup project has been removed. WiX is the recommended alternative, and has been used by Microsoft to package products like Office, SQL Server and Visual Studio. WiX, (Windows Installer XML) is a free open source toolset by Microsoft that builds Windows installer packages from XML source code.
  5. How to change the Windows service startup type in a WiX installer. Browse other questions tagged windows installer service wix windows-installer or ask your own.
Active6 years, 3 months ago

I am trying to install windows services using WIX. The windows services are installing fine and if I check inside Service Manager I am able to see that my services are installed and are trying to start as shown below:

After 3 to 4 minutes I am getting error sufficient privileges required. Please see the image for the error message:

Film and video game design it is available as a web based application. Every moment engineering student uses this software for their proper design. Sketchup 2d free. But sketchUp full finally published on marketplace August 2000 by Google team and as general purpose 3D content design. Their ( SketchUp Pro Software) have many versions of products like SketchUp 2016, SketchUp 2015, SketchUp 2017 and Google Design Software among them those all product has use for design construction.OverviewSketchUp was created from Startup Company co-founded in 1999 by brand Schell. It is very fast and super performance drawing software in the world.

If I run my windows services setup manually then it's installing fine without any problem in starting up. What I am doing wrong can anyone help?

Following is the code that I am using:

Following is my WIX code:

I have also tried to pass in [LocalService] in the Account, but still I am getting the same error. Is there anyway I can install my service using WIX?

reapenreapen
3482 gold badges9 silver badges24 bronze badges

1 Answer

I see several reasons which may lead to failure here:

  1. You are not calling

    Installers.Add(this.ServiceInstaller);Installers.Add(this.ServiceProcessInstaller);

Installer Windows 7 Gratuitement

at the end of your method. The Installers.Add(.) line should actually add the service to service table. See the example at the end of this page

Wix Installer Windows Service

Wix Service Installer Delay Start

  1. As far as I know, Installer classes are not supported in WIX, Custom Actions are used instead. How do you call your code from WIX?

  2. WIX has a <ServiceInstall> element for installing services. Although not allmighty, this element is very powerful and the preferred method to install Windows Services. See Installing and starting a Windows Service using WiX

BBRBBR

Wix Toolset Install Windows Service

Not the answer you're looking for? Browse other questions tagged wixwix3.5wix3wix3.6 or ask your own question.