I'm writing an app that allows you to script the buttons from a wiimote into actions on your PC. It currently supports all of the features of the main remote control, except for the speaker.
Now, I'm running in to trouble when I run it on Vista with UAC turned on.
Any time a UAC'd window has focus, my app fails to move the mouse succe...
I am trying to start another process with Process.Start running under different credentials with the UAC turned on. I get the following error:
System.ComponentModel.Win32Exception:
Logon failure: user account
restriction. Possible reasons are
blank passwords not allowed, logon
hour restrictions, or a policy
restriction has...
I have the need for my application to start and stop Windows Services based on certain events. The thing is that this application needs to run as an elevated normal user (In order to stop services), as well as auto start when Windows starts. Additionally, it need to be in the systray with an user interface.
What are my options here?
I...
Hi
I install my app under "Program Files" directory. And I install data, under "ProgramData" directory:
Environment.SpecialFolder.CommonApplicationData
In programData I have created folder to save data. Example:
C:\ProgramData\MyApp\MyData\here I have files and folders
Under XP all runs fine. But not under Vista or W7 OS.
I can rea...
I need to implement a system where I have 5 forms. An agent then goes to a client and can fill one, some, or all of these forms. The client will then be able to access ONLY his forms through a backend system, while the agent has a god-eye view of the system. The client can then mark the form as accepted if it is correct, or reject it, or...
When we install our product on Windows 2008 SP2, couple of services fail to start. After trying different things, we figured out that these service were able to start when "Log on as" is set to "Local system account".
This service does need to run as a specific user because it requires access to secure resources. The service did run j...
When I do a simple delete of the contents of a folder, I get an error:
<delete includeemptydirs="true">
<fileset dir="${developmentenvironment.www.dir}" includes="**/*"/>
</delete>
C:\Users\...\build.xml:42: Unable to delete file C:\...\www\appserv\AUTHORS.txt
When, I try to delete the file in the OS, it requires elevated permiss...
In a Delphi app intended to build an internet software update service for my software, the Windows 7 UAC system requests authorization from the user to run the exe.The following possible contentious/risk areas exist in the code:
A named pipe server is created for communications
TCP is used for FTP and HTTP
SHGetSpecialFolderPath api ca...
Hi
We have a suite of programs that check for new versions at startup, and then download new versions to run if required. This is obviously a problem in Windows 7, when it is locked down as a 'standard user', as they can't write to the c:\program files directory and below. Anyone seen a example of an application that gets around with is...
Hi to all,
I have an installer which installs services and then starts them.
On some machines with UAC on, when the service is about the start the installer fails with "insufficient priviliges".
Should I raise the priviliges of the installer (if at all possible)? or is there another means of getting the service to start?
JD
...
I'm writing an NSIS installer and the setup program elevates "as administrator" as needed on Windows 7 / vista.
I need to run the installed program at the end of the install and don't want to launch it with the same privileges as the installer.
The regular NSIS exec commands run the child process with the same permissions as the install...
I'm building a page that should only be visible to administrators on the web server. The standard prescription for this is:
<system.web>
<identity impersonate="true" />
<authorization>
<allow roles="BUILTIN\Administrators" />
<deny users="*" />
</authorization>
</system.web>
but when User Access Control (UAC) is enabled...
I can't seem to find any information that indicates whether ASP.NET can be configured (through web.config or maybe machine.config) to run as a real administrator on a machine with UAC enabled.
By this I mean, even if you set it to impersonate an Administrator account, UAC will disable that account's ability to act as an Administrator by...
I'm using a thrid party Windows service that handles some automation tasks by running scripts and executables using CreateProcessAsUser(). I'm running into problems on Windows Server 2008 due to UAC and way the LUA elevation is handled through the APIs.
The service runs as LocalSystem and does not have "Interact With Desktop" enabled. T...
Hello,
How Do I deploy applications so that they require administrator rights without the end-user doing that by hand?
I use Delphi 2009 to build the application.
...
I have an ActiveX control that I'm loading with JavaScript in Internet Explorer. It needs to run as medium integrity under UAC in Vista and Win7. This is written in C/C++, compiled in Visual Studio.
One way to elevate privileges is to create a broker process that can request a medium integrity level. However, for this project, this is n...
I have a Windows service built with ATL to expose a LocalServer32 COM interface for a set of admin commands used for configuring the service, and these can be used from VBScript for example:
Set myObj = WScript.CreateObject("MySvc.Administrator")
myObj.DoSomething()
I want DoSomething to run elevated, and I would like the UAC prompt t...
Hi,
I am embedding a manifest in a .NET exe so that it can request elevated permissions in Vista and Windows 7. The manifest that I am using is as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="Elevatio...
My company produces a cross-platform server application which loads its configuration from user-editable configuration files. On Windows, config file ACLs are locked down by our Setup program to allow reading by all users but restrict editing to Administrators and Local System only.
Unfortunately, on Windows Server 2008, even local adm...
I'm creating a Windows app that automatically updates itself. I'm not using ClickOnce for a variety of reasons. When I try to File.Move() my updated files to C:\Program Files on Windows 7, I get the following error:
Access to the path 'C:\Program Files\<company>\<app>\<app.exe>' is denied.
I am not given a UAC prompt. The exe that I am...