08-14-2023 05:31 AM
Hi everyone.
I'm trying to lauch an app when windows startup and shutdown.
Any ideas about how can i do it?
Ty.
Solved! Go to Solution.
08-14-2023 05:47 AM
08-14-2023 07:41 AM
Running a LabVIEW Executable When Windows Boots
08-14-2023 10:15 AM
As an aside question, how do you guarantee that the app you launch on Windows shutdown won't get closed by the OS as it is shutting down?
08-14-2023 10:39 AM
This is what I do.
First, my app launch when user log. (shortcut of .exe in Star Menu > Programs > Ini).
Then, i need to log when user disconnect/shutdown/restart, so, i use 'Application Instance Close' event to check that and do what i want.
08-14-2023 12:11 PM
@IvanMalonda wrote:
This is what I do.
First, my app launch when user log. (shortcut of .exe in Star Menu > Programs > Ini).
Then, i need to log when user disconnect/shutdown/restart, so, i use 'Application Instance Close' event to check that and do what i want.
Oh, so what you really want is some background program that is constantly monitoring for the events described above, and that needs to start up when the user logs in. That makes perfect sense. Thanks.
08-18-2023 02:12 AM
😎👍
08-18-2023 02:21 AM
Going a little deeper, I discover 2 forms to do this type of app.
My first idea was a background application that executes in hide and take login user and time, and when user disconnect,shutdown or restart do the same thing as login.
My second idea is do a windows service, with a little changes in my code and NSSM(the Non-Sucking Service Manager) to create a service, i can carry out this task better than other one.
08-18-2023 03:30 AM
@IvanMalonda wrote:
Going a little deeper, I discover 2 forms to do this type of app.
My first idea was a background application that executes in hide and take login user and time, and when user disconnect,shutdown or restart do the same thing as login.
My second idea is do a windows service, with a little changes in my code and NSSM(the Non-Sucking Service Manager) to create a service, i can carry out this task better than other one.
I think making it a service is the better choice, but I would like some opinions besides my own.