Installing Win32 Windows Service - Advanced Installer Community
madhuKandikuppa
Posts: 1
Joined: Fri Sep 04, 2020 4:08 am

Installing Win32 Windows Service

Hello,
I ran into an issue installing win32 service written in C#. Installer is able to install the service and start it but the service is visible in Task Manager but not in the Services app. To trouble shoot the issue, I installed the service from the command prompt and was able to see it from both places. 64 bit version of the same service works without any issues.

Has anyone run into a similar issue? What am I doing wrong? Appreciate your help.

Madhu Kandikuppa
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Installing Win32 Windows Service

Hello Madhu and welcome to our forums,

Please note that installing/starting/stopping/deleting a service requires administrator privileges.

Therefore, when installing it through your setup, you need to provide administrator privileges. Could you please try to run your setup elevated and let me know if everything works as expected?

For an MSI package:

- open the command prompt elevated (right click --> "Run as administrator" option) and run:

Code: Select all

msiexec /i <path_to_your_msi>
For an EXE package:

- right click on it --> "Run as administrator"

Additionally, please make sure to fill in the "Dependencies"/"Arguments" fields if necessary. For instance, if your service requires some arguments in order to be started, you should add those arguments in the "Arguments" field.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”