uac

Windows UAC Security With Exe

◇◆丶佛笑我妖孽 提交于 2019-12-02 23:29:48
问题 I have an exe created with an old Borland C++ compiler. It needs administrator privileges to function correctly. Since the app will run at startup, I do not want the user prompted if it's OK to run the program (testing on Win7). My question is is there ANY way to remove that annoying prompt every time the app is run? I added a manifest file with admin privs and signed it, but it then still appears with the publisher name. This will be distributed, so I don't want users to have to turn off UAC

Delphi Administrator rights D7 W7 [duplicate]

一个人想着一个人 提交于 2019-12-02 22:32:03
问题 This question already has answers here : Closed 8 years ago . This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 8 years ago . Possible Duplicate: Delphi: Prompt for UAC elevation when needed My application written in Delphi 7 for Windows 7 requires administrator privileges for some functionality. How can I elevate it to Administrator from source code? I check the user rights with this code: function IsUserAdmin : boolean; const CAdminSia :

Deactivate UAC in Windows 7 for a specific program

耗尽温柔 提交于 2019-12-02 21:13:42
问题 I have a program that should run every night. Another is started every boot. Both programms trigger the UAC-Window. At least with the nightly scheduled programm this is very bad, since my PC is waiting the whole night long for my confirmation of the UAC dialog. At the moment I am able to confirm it, that program causes much slowdown and I cancel it anyway. So is there a way, that windows will start these 2 programms without prompting me everytime without deactivating UAC in general? 回答1:

Detecting registry virtualization

痴心易碎 提交于 2019-12-02 19:05:26
I have a set of C# (v2) apps and I am struggling with registry virtualization in Win7 (and to a lesser extent Vista). I have a shared registry configuration area that my applications need to access in HKLM\Software\Company... Prior to Vista, everything was just written to and read from that location as needed. The code appropriately detected failures to write to that registry key and would fall back appropriately (writing to HKCU instead and notifying the user that the settings they had applied would only affect the current user). In Vista, registry virtualization broke all of this because the

How to detect whether Vista UAC is enabled?

徘徊边缘 提交于 2019-12-02 16:43:51
I need my application to behave differently depending on whether Vista UAC is enabled or not. How can my application detect the state of UAC on the user's computer? Philip Rieck This registry key should tell you: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System Value EnableLUA (DWORD) 1 enabled / 0 or missing disabled But that assumes you have the rights to read it. Programmatically you can try to read the user's token and guess if it's an admin running with UAC enabled (see here ). Not foolproof, but it may work. The issue here is more of a "why do you need to know" - it has

XAMPP installation on Win 8.1 with UAC Warning

白昼怎懂夜的黑 提交于 2019-12-02 16:11:22
I am trying to install Xampp win32-1.8.2 on Windows 8.1. I get a message saying" Because an activated user account User Account on your system some functions of XAMPP are possibly restricted." I've tried to change the user account control settings but still the warning is there. And the APACHE does not start. I've also disabled my IIS but still, its not working. What should I do? Thanks. There are two things you need to check: Ensure that your user account has administrator privilege. Disable UAC (User Account Control) as it restricts certain administrative function needed to run a web server.

Windows UAC Security With Exe

谁都会走 提交于 2019-12-02 13:26:40
I have an exe created with an old Borland C++ compiler. It needs administrator privileges to function correctly. Since the app will run at startup, I do not want the user prompted if it's OK to run the program (testing on Win7). My question is is there ANY way to remove that annoying prompt every time the app is run? I added a manifest file with admin privs and signed it, but it then still appears with the publisher name. This will be distributed, so I don't want users to have to turn off UAC or do anything too complicated. Any suggestions are much appreciated. I am hoping there's something

Deactivate UAC in Windows 7 for a specific program

China☆狼群 提交于 2019-12-02 12:09:34
I have a program that should run every night. Another is started every boot. Both programms trigger the UAC-Window. At least with the nightly scheduled programm this is very bad, since my PC is waiting the whole night long for my confirmation of the UAC dialog. At the moment I am able to confirm it, that program causes much slowdown and I cancel it anyway. So is there a way, that windows will start these 2 programms without prompting me everytime without deactivating UAC in general? Check out the following article, it's applicable to Windows 7 as well: Selectively disable UAC for your trusted

launching SFC from within a C# app

谁都会走 提交于 2019-12-02 12:07:48
问题 I have been searching and I cannot seem to get this work. I am trying to launch SFC from a button in a C# app. I am aware that it requires rights elevation and in the scope of what I am trying to do is behavior that I want. I have tried: To run cmd as administrator along with command? Running CMD as administrator with an argument from C# and C# how to run a process(with arguments) through an administrator elevated cmd The code I tried last was: private void button6_Click(object sender,

Vista + VB.NET - Access Denied while writing to HKEY_LOCAL_MACHINE

╄→尐↘猪︶ㄣ 提交于 2019-12-02 07:48:17
问题 I want my program to be able to edit a values within a registry key that resides in 'HKEY_LOCAL_MACHINE' My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\XYZ", "MyValue", "MyData") The above works fine in Windows XP, but throws an UnauthorizedAccessException in Vista. 回答1: You are running into Vista's UAC feature. It will not let you write to arbitrary places in the HKLM hive because you are not running with Administrative priviledges. There are two ways to work around this issue