Questions tagged [srvany]

SrvAny and its installer "InstSrv" are applications provided by Microsoft. SrvAny allows Windows applications to run as a service.

SrvAny and its installer "InstSrv" are applications provided by Microsoft. SrvAny allows Windows applications to run as a service.

Useful information can be found here:

12 questions
4
votes
2 answers

Restart srvany when child process gets killed

I've created a service, which is a plain console application running via srvany.exe. It was set up to immediately restart when destroyed. Here's the script: sc delete "Test Service" sc create "Test Service" binpath= "C:\Windows\System32\srvany.exe"…
polkovnikov.ph
  • 6,256
  • 6
  • 44
  • 79
2
votes
2 answers

Wix installer to replace INSTSRV and SRVANY for user defined service installation

I created an executable MyService.exe using Visual Studio C# Express. There are no options in the Express version to create a service. In the past, this has been manually installed as a user defined service using the INSTSRV and SRVANY as…
DarwinIcesurfer
  • 1,073
  • 4
  • 25
  • 42
2
votes
4 answers

How does a windows service set off an application at a standard interval?

A consultant setup a windows service to run a application. The application is supposed to run every 15 minutes. The application is not running at all and the service appears to be running fine. I am not familiar with how an application will run at…
FortunateDuke
  • 1,153
  • 3
  • 14
  • 26
2
votes
2 answers

Creating Service from Executable (INSTSRV.EXE and SRVANY.EXE) Error - "Service started and then stopped"

I am trying to create a service on Windows using my own executable. When I try to start the service, I get the error message: "The service on Local Computer started and then stopped. Some services stop automatically if they have no work…
user2437443
  • 2,067
  • 4
  • 23
  • 38
1
vote
1 answer

Can i create a service from registry?

I have a boot disk backup with me which i want to use to migrate to cloud. I need to install some msi packages. I have figured out a way to install the msi packages by using srvany.exe, but i need to create a srvany service in boot disk using…
Abinash Kumar
  • 331
  • 1
  • 2
  • 15
1
vote
2 answers

srvany.exe does not start .bat file

(OS: Windows 7) Using SC.EXE I have created a Windows Service. Additionally, I created the necessary registry entries to specify the Application path (using key Parameters). The "Application" is a .BAT file that sets several environment variables…
dg1sbg
  • 58
  • 1
  • 8
0
votes
0 answers

How to wait till a stop signal in Windows?

srvany-next is my open source command-line utility that allows to start another command-line utility as a Windows service: srvany-next.exe "c:\bin\utility.exe" -arguments The above is the command that starts utility.exe as a Windows service. This…
porton
  • 5,214
  • 11
  • 47
  • 95
0
votes
1 answer

wix srvany.exe as a service not running

I have a Kofax component exe which I want to run as a service. Earlier srvany.exe is used to register the exe as a service manually. I am creating a wix msi installer which will install it as a service. After installation when I am running exe as a…
Anurag
  • 57
  • 2
  • 13
0
votes
1 answer

Cannot read registry key when using SRVANY

I am working on a script which needs to read and write a certain value to the HKLM registry hive. While it works fine when running as a script, registry access is denied when I am running the same code as a service using SRVANY utility. The service…
ngn
  • 101
  • 3
0
votes
1 answer

Specify command line for application while creating service using SRVANY.EXE

I am creating service in VB6 application using SRVANY.EXE as show in this link . But my application requires a command line to work.So if i want to pass command line to my application then what to do? The command line is fixed and not change. So how…
IT researcher
  • 3,274
  • 17
  • 79
  • 143
0
votes
1 answer

Openoffice - running up soffice process in custom Windows service is not listening on port 8100

I have a website that relies on openoffice running in server mode to convert office docs to pdf files. We can start this process using a batch file, but the process doesn't stay running reliably. I tried creating a service to keep the process…
stevemanc
  • 3
  • 3
-1
votes
1 answer

Program exe not making backup files on network drive when run as service

I am creating a program that runs as a service and makes database backups (using pg_dump.exe) at certain points during the day. The service runs fine normally, but fails to make backups when you try to put them in a network drive. If I stop the…
user2437443
  • 2,067
  • 4
  • 23
  • 38