From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to launch my application at start-up AND avoid to run any other "UI" process

Solved!
Go to solution

Hi all,

I'd like to run my application at Window start-up but I need to prevent users clicking (and viewing) desktop icons, taskbar, desktop, and other user interface features.

In other words, after Windows login I'd like to prevent explorer.exe from loading at start-up.

Is it possibile?

 

Thanks all

0 Kudos
Message 1 of 10
(3,914 Views)
Solution
Accepted by topic author sqrt(-1)

There is a registry key to do that, by default the value is explorer.exe, if you change it to abc.exe, abc.ex will be laucnhed at startup instead of explorer.exe.

 

Can't remember the key path though but a quick google search should help you.

 

EDIT :

try that one : HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Shell


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 10
(3,900 Views)

You can put your application into the Windows Startup.

However, this does not directly provide the feature you are looking for:

- No control over additional startup applications

- Even if you have a full-screen UI and make it non-resizable and non-minimizable, there are options to start new applications (e.g. Windows Start button)

- Beware window modality and "activation"

 

From the sound of your question, you want to have deep control over windows and reduce interaction options for specific users. This has to be done in the OS itself. Therefore i recommend you to consult Microsoft (MSDN) or Google for further information.

 

Norbert

 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 10
(3,897 Views)

The best/most comprehensive way to do this is to use Windows Embedded (e.g. WES7), it allows you to fully customise the OS including removing explorer.exe (e.g. taskbar etc.) and set it up to run in a kiosk-mode.

 

There was a presentation about it at NI Week 2012 - I can't find the actual presentation but there's a writeup about it here - you might be able to get the presentation from the author.

 

Edit: Another link/discussion is here: https://decibel.ni.com/content/message/119979


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 4 of 10
(3,881 Views)
It's funny, but this question has been asked over and over again for 20+ years, and in the end the answer is still the same: don't run Windows...

The bigger question, however, is why customers think they want to do it? Typically its for reasons that have nothing to do with the basic application. It's because people are playing video games, or the ever-popular and nebulous idea of "security".

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 5 of 10
(3,840 Views)

try that one : HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Shell


Yep,

Replacing "explorer.exe" with application full path in register key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Shell works fine

0 Kudos
Message 6 of 10
(3,837 Views)

I totally agree with you Mike... Most the time it's delusional thinking, this idea that somehow if you don't see the the task bar at the bottom of the screen thenm there is no Windows on the computer and then you're safe. Nonesense!


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 7 of 10
(3,829 Views)
Tried to do something similar when we found users on 2nd and 3rd shifts were downloading music, videos, porn, etc. Nothing ever worked. They always found a way.
0 Kudos
Message 8 of 10
(3,811 Views)

@AC_85 wrote:

try that one : HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Shell


Yep,

Replacing "explorer.exe" with application full path in register key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Shell works fine


It may seem to get you there, but it just is enough to fool the real inexperienced. Try Alt-Tab, Ctrl-Alt-Esc, and Ctrl-Alt-Del etc. while your kiosk app is supposedly blocking users from doing anything but interact with your application and you will see that some still work and allow you to run any executable including explorer.exe from there and then you are back at square one. Those key shortcuts can be disabled too, but that makes an awkward debugging experience and still doesn't prevent someone from plugging in a bootable USB stick and restart the system and then do whatever that bootable image provides, for instance a nice Linux based Windows recovery tool that can be used to clean various settings on the internal boot drive.

Rolf Kalbermatter
My Blog
0 Kudos
Message 9 of 10
(3,797 Views)

Yes,

I know that a "semi-expert" user can do evertything (he can run task manager, launch any process included explorer.exe and, then, restore normal Windows settings); but I simply need a sort of deterrent, not an expert-proof solution. I think that to prevent explorer process launching a start-up is a good trade-off.

0 Kudos
Message 10 of 10
(3,778 Views)