I don't really understand windows UAC...
I need for my program to be able to update and add files to a specific directory belonging to a program. This directory may be a subdirectory of an application in Program Files, for example c:\Program Files\MyApp\Data or it may be installed elsewhere.
I believe that if it's under Program Files ...
I've got a WinForms application that I am working on. There is one small piece of functionality that needs to be run as an administrator in Vista/Win7. I understand how I can set the requestedExecutionLevel for the application in the manifest. The trick is, I don't want to require the user to run the entire application as an administrato...
This is a driving me nuts. I have searched all over StackOverflow and read all about UAC. But I'm still running into a problem.
Using VS 2008, I have a simple program that does nothing but this:
File.Delete("c:\windows\fonts\whatever.ttf")
The EXE has a proper manifest with requireAdministrator=True. When compiled, the app icon recei...
I have a VB6 application that still references some old VB5 libraries (dll, vbr, tlb, and ocx). We're having some strange issues like it can't read the registry using advapi32.dll. I've tried running the application with UAC permissions, but still no go. We can't recompile the app because it has several controls and components that canno...
My product needs to change file association. To allow it to run as non-admin in Vista, I have moved the registry changing code to a separate binary called "assocsetup.exe".
When launched, Vista UAC correctly asks for permission to run it as admin with the "A program needs your permission to continue" message.
However, it doesn't bring ...
When a process is running at the low integrity level, you can't write to %temp% so I need a way to find the path to the %temp%\Low directory (Without hardcoding the word "Low")
...
There's a simple way to read the registry and get the UAC status from there. The only problem is that if you are not an administrator user or the UAC is ON then you can't read that particular key.
Is there a way (API, etc) to get the UAC status accurately without having to read the registry?
Sample code is always appreciated.
Thanks!
...
I have a application need to run under Administrator right, If I run it with Guest user account, after click the UAC dialog, using Windows API to get the current user folder in AP will be changed to Administrator folder, not Guest folder. How to solve it? Thanks in advance.
...
I have come across a strange problem in one of our applications on win2k8/Vista x64 with UAC enabled. It is a process which hosts the UI for our service and runs in the context of the logged on user.
When logged in as a domain user who is a member of the "Administrators" group, writing to the registry under HKLM fails due to UAC with ac...
Is there a way for an app to present the user with the UAC prompt only once, upon first running. Thereafter, no further prompting.
In other words, I understand that our app needs the user's UAC permission to do certain things. And that's fine. But we don't want it to have to keep asking on every occasion it runs. Can the user give permi...
I have a class which is COM, and a want to launch an elevated COM object. I'm using LaunchElevatedCOMObject() method from VistaBridgeLibrary but all I get is the error code 0x80080017, which is "The class is not configured to support Elevated activation".
How could I configure my class to support Elevated Activation?
...
I would like a process to always run at the user level. Either when it is launched by the installer (custom, not msi), which runs as at the administrator level, or when a user logs on. Looking around, I'm not sure this is possible.
...
I'm currently making a program for a lan center that scans a users hard drive, and copies/archives certain save game files into a zip and uploads them to a FTP server. But I've created a lot of the program at this point and just had a major issue that I had not tested for spring to mind:
How does Vista/7's UAC permissions account for c...
I have an Excel add-in I am developing that works fine in Windows XP. However, I just got a hold of Windows 7 Professional and now I cannot save this add-in, either manually from the VBA Editor or programmatically using ThisWorkbook.Save.
The error message says "Micrsosoft Office Excel cannot access the file 'C:\Program Files\Microsoft...
Is it possible for a process to gain administrator priviledges after it has started? If so, how?
Examples should be in C or C++.
Edit - Examples should also use umanaged code.
...
My application consists of a server a and client interface. I want the client to be able to request the server to write a registry key. Now i did my research on libraries for java that do that and i found a few. The problem lies with admin rights. When i run a simple java program to read from the registry i get an error that informs me t...
I have a .net service running on the local machine (Windows 7 x64, IE8, .net 3.5, C#) that returns a file to the browser in response to a user action. Using firefox or chrome, the file is downloaded properly and our application is launched via a custom mime type and all is well.
However, with IE8, I receive a dialog "unable to download ...
Hi,
how can I detect if executable requires UAC elevation?
So far I came to two ideas:
picture recognition of executable's icon to check if UAC shield icon is on it
and information from wikipedia:
http://en.wikipedia.org/wiki/User_Account_Control
it is possible to programmatically detect if an executable will require elevation by ...
I've created an MMC snap in that launches code in a new appdomain and part of the code checks for a registry key. If I check for the key in the snap in process it works, but the code in the new appdomain throws a security exception. If I load the code in a new appdomain from a console or windows app, it works fine.
Here is the code:
p...
I have recently gone through a bunch of standalone utility apps written in VB6 to make sure that registry virtualization is turned off for Windows Vista and above. I created a standalone manifest file for each exe, set the requestedExecutionLevel appropriately (some of them need to modify HKEY_LOCAL_MACHINE registry keys, others do not),...