The name of the value needs to be the full path to your executable (if the path contains spaces, do not surround the path with quotes) and the data of the value must contain the string RUNASADMIN.įor sample: reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\Program Files\MyApp\Test. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows HKEY_CURRENT_USER\Software\Microsoft\Windows In the Windows Control Panel, click on Programs. You need to create a string value (REG_SZ) under one of these keys (if you want the setting to be per user or per machine, respectively): Right-click on the Start button and select the Control Panel option. You can programmatically set the "Run this program as an administrator" flag (the option you find in the Compatibility tab of an EXE's properties), by setting a simple registry key. I shouldn't have to tell users to do this. The only thing that worked was setting "Run this program as an administrator" under the Compatibility tab of its Properties window. You can use shell commands to access various system folders and options directly. The command above is a special shell command. Press Win R on the keyboard and type or paste the following in the Run box: shell:common administrative tools. "Create a shortcut and set SLDF_RUNAS_USER."Ĭan't do that, it's a Control Panel applet. Open Administrative Tools with Shell Command. ![]() Something in there is preventing the external manifest from being read. As a test, that same manifest file was able to make several other EXE files require elevation, just not the one I wanted. "BDE is obsolete, you should be using dbExpress" It is sometimes useful to run programs as administrator but what if you want to run everything as administrator Windows 10 and Windows 11 include an administrator account, but it is disabled by default for good reasons. It is already compiled, it is many years old, the company that created it has no intention of doing it again, and it is installed from a Merge Module (MSM file). Starting with Windows 10 build 20161 and higher, the Control Panel > System page has been moved into the Settings > System > About page. "You should not require your application to be elevated." First, let's get the predictable responses out of the way: Windows 10 Encountered a new issue today: If/when you are prompted to download the Windows Store app or 'go to settings' to allow the regular. Step 3: Then type C:\Windows\System32\control.exe in the location text box as in the snapshot directly below. ![]() Step 2: Click Shortcut on the submenu to open the Create shortcut window. I'm having a problem with good ol' bdeadmin.exe in Vista. Run Control Panel as Admin in Windows 10 Using Shortcut Step 1: First, right-click the Windows 10 desktop and select New on the context menu.
0 Comments
Leave a Reply. |