LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically run of LabVIEW built application (.exe) on windows start even before user login

I've made exe application by LabVIEW.

I need to make it run on windows start-up even before user login. is it possible?
need the how to 🙏

0 Kudos
Message 1 of 5
(2,405 Views)

Only device drivers and services can startup before a user session is started. Turning your application into a device driver is not an option, but there exist tools, also from Microsoft, that can wrap an exe and start it as service.

 

I personally also developed a library that can allow a LabVIEW application to directly act as a service without an additional wrapper, but can't post it. Development of that requires to call several Windows API functions and processing callbacks, which requires to program an external DLL that does part of this work on behalf of your LabVIEW program. It's only an option for someone who can write C code too, and not just a basic "Hello World" C program at that.

 

Searching for LabVIEW Windows Service here should give you quite a few relevant links.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 5
(2,370 Views)

I haven't had an actual need for this myself, but I did recently need to check it and my basic tests with NSSM seemed to indicate that it did everything I needed it to - https://nssm.cc/

 

As far as I know, people have said that the Microsoft tool (srvany) is problematic with later versions of Windows.


___________________
Try to take over the world!
0 Kudos
Message 3 of 5
(2,358 Views)

Task scheduler can start executables before login. At least, I' pretty sure I did that before. It will run any exe as a service.

 

Task scheduler has a command line interface, so it is possible to automate installation of the service.

 

The exe won't have a GUI though, as it is started as a service, and services can't have GUIs.

0 Kudos
Message 4 of 5
(2,353 Views)

+1 for nssm, I just used it for the first time, very simple

 

https://nssm.cc/download

 

 

0 Kudos
Message 5 of 5
(2,338 Views)