LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable UAC window on VISTA

Solved!
Go to solution

Hi

How can I disable UAC control window on Windows Vista using LabVIEW?

 

I made this VI (see attach). This VI works, only if i manually disabled the UAC Window (from regedit: "Software\Microsoft\Windows\CurrentVersion\Policies\System - EnableLUA=0 [DWORD]) from regedit or control pannel.

 

If i run my VI on a computer that has UAC ON, i cannot open the registry key. Although, if i manually go to regedit and change the windows variable EnableLUA to zero and restart the computer, then I'll be able to control this registry key from LabVIEW.

 

Is there any way around to disable the UAC only with LabVIEW. This means, is there any way to modify the Windows variable EnableLUA when I previously have the UAC ON?

 

Thanks
Message Edited by JPLO on 11-11-2009 02:55 AM
0 Kudos
Message 1 of 4
(3,393 Views)

I'm not (thankfully) a Vista expert, but from what I've read, you can't programmatically disable UAC on Vista without some sort of user confirmation. That would sort of defeat the whole purpose, wouldn't it? Besides, I'm not sure if it would even be proper to discuss such a method on this forum given the security implications.

 

Your best bet is to use Google for "programmatically disable UAC on Vista", as this is a Vista question, not really a LabVIEW question. 

Message 2 of 4
(3,357 Views)
Solution
Accepted by topic author JPLO

Hi JPLO,

 

If you're running your VI as a limited user or in admin approval mode, I would not expect to be able to disable admin approval mode. Try right-clicking on the LabVIEW icon in the Start Menu and selecting "Run as administrator", and then run your VI.

 

Brad

---
Brad Keryan
NI R&D
Message 3 of 4
(3,333 Views)

Hi.

Thanks for the answers Brad and SMercurio!

The ideia was making this transparent for the user. He would not see this confirmation window, and doesn't need to change the Windows Vista registry key.

I'll try running LabVIEW as administrator as Brad sugested  Smiley Happy

 

Thank you both!

0 Kudos
Message 4 of 4
(3,315 Views)