Questions tagged [service-installer]

19 questions
14
votes
1 answer

Adding a service installer and service process installer in visual studio

For some reason, after adding a Installer class to my Windows Service project, I open it up in design mode and right click, but there is no option to add either a service installer or a service process installer. Does anyone know why this may be…
Trevor
  • 13,085
  • 13
  • 76
  • 99
12
votes
4 answers

Can wix prompt for a windows service username/password?

I am using Wix to install a windows service. The service will need to run under a non system/service account that is set up by the user. Is it possible to have it prompt for the username/password for the service login?
NotDan
  • 31,709
  • 36
  • 116
  • 156
6
votes
4 answers

Visual Studio missing "Add Installer" link in service project

I'm building a Windows service and following this MSDN article, but I'm stuck on step 3 under "Create an installer". I can't find the "Add Installer" link it's referring to. I've clicked everywhere, including following the instructions it gives…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
4
votes
1 answer

How to create launcher as windows service using jpackage (Java 19)

I want to create an installer with jpackage that registers my java application launcher as a Windows service. I have installed WiX Toolset v3.11.2. I have tried to create my installer by specifying the --launcher-as-service flag which is supported…
NassimBtk
  • 71
  • 5
4
votes
1 answer

Multiple services in one assembly. How installer knows which service to install and start?

I have a project which includes 2 windows services. I create a ProjectInstaller to install these items, which works fine. But I have a question; given the code defined below, how does the project installer know which service to install for…
Mick Walker
  • 3,862
  • 6
  • 47
  • 72
4
votes
1 answer

Multiple ServiceInstaller in one ServiceProcessInstaller in Windows Services

I have added two ServiceInstallers to my ServiceProcessInstaller. After that I haved changed my Main() as below: static void Main() { ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new…
Megha shah
  • 232
  • 3
  • 13
4
votes
0 answers

Why .NET adds extra quotes for service ImagePath when installing service

I faced very strange behaviour of .NET when it is installing a system service. I added 2 logging calls into OnBeforeInstall method. Here is what it shows just when it was entered method: + PreparingInstallation: 4 items in Parameters: * #0/name =…
dmitry_bond
  • 378
  • 1
  • 3
  • 15
3
votes
1 answer

TransactedInstaller vs. nested Installer

Is there an difference between this (nested Installer) ServiceInstaller si = new ServiceInstaller(); si.ServiceName = "MyService"; ServiceProcessInstaller spi = new ServiceProcessInstaller(); spi.Account =…
Michael Piendl
  • 2,864
  • 1
  • 27
  • 21
3
votes
2 answers

WiX service don't start: service failed to start verify that you have sufficient privileges

I have a java application. I have made an scansol-agent-app.exe file from that i need to make an installer with WiX. Below there is a code of scansol-agent.wxs file. I need to install this app as windows service. Servise installs well, but don't…
3
votes
2 answers

Error Installing a Windows Service (in F#)

my question is the following: When I try to install my Windows Service I get the following error: snippet: ... No public installers with the RunInstallerAttribute.Yes attribute could be found in the assembly. ... I follow this…
Baudin999
  • 49
  • 7
2
votes
1 answer

InstallShield: service name

I have developed a service installer using InstallShield, everything works fine. Could you tell me if it is possible asking the user for the service name (if he wants to change it)?
chufabit
  • 105
  • 10
1
vote
3 answers

C# .Net Service won't install on Win 7 64 bit

.Net 3.5 I've built into the service exe the ability for it to install itself using a -i feature. I have a custom installer class and am using a common technique on found online here. That installer class basically has it's own service and…
happyfirst
  • 1,033
  • 1
  • 13
  • 27
1
vote
2 answers

Can't see my service installer when trying to Install a Windows Service

I wrote a Windows Service in c# (VS2008) and now trying to install it (My project's name is MyProject). I am following the steps on the article http://msdn.microsoft.com/enus/library/zt39148a(v=VS.90).aspx and when I get to the highlighted step: I…
1
vote
1 answer

Visual Studio 2017 Installer Projects ask system reboot on reinstall

I have service project and Visual Studio 2017 Installer Projects to install it. If I start uninstall from "Add or remove project", then install new version - All Ok. If I start installation from Visual Studio - All Ok But if Start installation using…
0
votes
0 answers

How to create setup project to run worker service wrote in (.net core project)

I wrote worker service in .net core , how can I run it via setup project , to download the .exe worker service on client servers, how to run worker service as windows service on clients server? I tried to make setup project and addede .exe in…
1
2