uac

C# Process - Disable User Account Control prompt?

末鹿安然 提交于 2019-12-24 12:23:51
问题 Question Background: I am calling a batch file to run a specified dll against the MSTest.exe through the use of a Process object. The code: I want to ensure that at all times this process is run with elevated administrator permissions. I do this currently by setting the process verb property to runas , as shown: try { _process.StartInfo.Verb = "runas"; _process.StartInfo.CreateNoWindow = true; _process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; _process.StartInfo.Arguments =

WiX: Can't stop service despite being able to install and start it as LocalSystem

跟風遠走 提交于 2019-12-24 11:44:44
问题 This is my .wxs file Particularly I managed to install a service as a LocalSystem user, and started it: <!-- Directory where [prey]/versions/[version] will be --> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="Prey"> <Directory Id="VersionsDir" Name="versions"> <Directory Id="VersionDir" Name="$(var.ProductVersion)"> <Directory Id="BinDir" Name="bin"> <Directory Id="BinWindowsDir" Name="windows"> <Component Id="CronServiceExe" Guid="ECC25B2A-FB2E-425A-92AD

Elevation without restarting an application?

社会主义新天地 提交于 2019-12-24 11:28:36
问题 Has anyone managed to get administration rights through the UAC without restarting the application or embedding a manifest file? I'd like to write to some files that only administrators can modify, without relying to another elevated application. Is it possible to impersonate an administrator previously calling with some native API the UAC prompt? I guess this is not possible and I'll have to use an external tool with elevated rights, but I'm asking just in case. EDIT: I know there are some

how to set REG_KEY_DONT_VIRTUALIZE flag in c#

雨燕双飞 提交于 2019-12-24 09:37:44
问题 My question is very simple, but i dint found an answer googling long time. How to set REG_KEY_DONT_VIRTUALIZE flag to registry key created by me (i.e. HKLM\Software\MyApp )? I want my program to be user-independent. Every user starting my app should have access to the same configuration options located in that location). Changing application manifest I can disable registry virtualization by running program as administrator, but I want normal user be able to run the program and read registry

XAMPP Error Solution? I have that installed on my Windows XP Dual Boot Machine

旧城冷巷雨未停 提交于 2019-12-24 08:25:10
问题 My system is dual boot, Win-XP Professional (32-bit) an Win-7 (64-bit) . I have XAMPP installed on my XP OS ( C:/XAMPP ). I want to use the same htdocs directory for testing the php on my windows also. But when I am installing the XAMPP on the same directory, I am getting this error. Important! Because an activated User Account Control (UAC) on your sytem some functions of XAMPP are possibly restricted. With UAC please avoid to install XAMPP to C:\Program Files (x86) (missing write

Sending WM_COPY from a Delphi app. to another process in Windows 7

怎甘沉沦 提交于 2019-12-24 07:34:32
问题 I have a Delphi (BDS 2006) application which sends keystrokes to QuickBooks accounting software to traverse QuickBooks forms (invoices), copy text from the current edit control to the Windows clipboard (to gather data), do some calculations based on the gathered data, and finally write results on the form by sending keystrokes. This application has been developed over a number of years, uses extensive (for me at least) Windows API techniques to identify the foreground window, focused window,

Sending WM_COPY from a Delphi app. to another process in Windows 7

旧时模样 提交于 2019-12-24 07:32:54
问题 I have a Delphi (BDS 2006) application which sends keystrokes to QuickBooks accounting software to traverse QuickBooks forms (invoices), copy text from the current edit control to the Windows clipboard (to gather data), do some calculations based on the gathered data, and finally write results on the form by sending keystrokes. This application has been developed over a number of years, uses extensive (for me at least) Windows API techniques to identify the foreground window, focused window,

Python - send command to an already running cmd

陌路散爱 提交于 2019-12-24 06:35:54
问题 I have a python script that bypasses the UAC (Bypass User Account Control ) in windows. I need to then be able to somehow communicate to the opened CMD and pass commands to it. For example: echo testing Ive only been able to find code that opens a new cmd and communicates to it. However this does not help as i need to communicate to the new one (Currently Running) i created with the UAC bypass. UACbypass.py import os import sys import ctypes import winreg def create_reg_key(key, value): try:

C# change windows UAC level to Always Notify

孤者浪人 提交于 2019-12-24 03:27:54
问题 I want to change the UAC level of the machine to "Always Notify" level which is the top level. I tried changing the following registry key value to 1. Key = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System const string UACkey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"; const string Subkey = "EnableLUA"; RegistryUtilities.SetValue(UACkey, Subkey, **1**, Microsoft.Win32.RegistryValueKind.DWord, RegistryUtilities.WOW64Key.Key64);

Copy to Program Files under Windows Vista/7

一世执手 提交于 2019-12-23 17:48:04
问题 I have written a wizard in C++ which installs some files to the program files folder under windows. As I understand, I need Admin rights to write to program files under Vista/7. So my question is: Is there a way to turn on Admin rights while the application is running respectively only for one wizard page? Or do I have to start another process with Admin rights for this one wizard page? 回答1: Typically you have a shield logo'd button and then shell out to another process whose manifest