LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a Windows Service that meet the Windows requirements?

Hello,

 

How do I create a Windows services that meet the Windows requirements (start, stop, restart, suspend)?

Besides not having a front panel and did not need user interaction, service must be able to communicate with the OS. It must receive commands such as start, stop, restart, suspend.

How can you build such a VI?

Must the application (.exe file) be able to load the command line arguments (eg "c:\<app_path>\app_name.exe arg1 arg2")?

 

BR

0 Kudos
Message 1 of 3
(2,876 Views)

Very useful links!

By the way, the "app.ini file" may contain many interesting tokens. Where there is documentation for these tokens?


Passing through the command line arguments, I used it in the past and is doing great.

 

I tried to turn the .exe file in a Windows service by using Sc.exe. Service appears in Task Manager having Stopped status and if I try to start it manually, I get an error "Unable to Start Service". So it looks like .exe file must meet certain characteristics to be a service.

 

BR

0 Kudos
Message 3 of 3
(2,817 Views)