uac

UAC/VS/W2K8: Why does VS not launch with admin privleges when I am in the Administrators group?

Server 2008 machine with SP1, Visual Studio 2008 with SP1. My user; Developer, is in the local Administrators group. That said, some actions I perform in Visual Studio (use the properties window of a web application to invoke the creation of a virtual directory in local IIS) tell me that Admin privileges are required. It is an annoyance ...

VS2008, IIS7 web project, non-admin. When?

What needs to happen before we can open Web Application Projects hosted in IIS7 with Visual Studio 2008 without running as Administrator? Are we talking about waiting for the next version of Visual Studio? Are there any existing workarounds? I think it's implied by the above, but this pertains to Vista. Thanks. ...

Why does my application allow me to save files to the Windows and System32 folders in Vista?

I have an application written in Delphi 7 which does not require an admin privilages to run. For some reason I am able to save files to c:\windows and c:\windows\system32 from within the application even though the application has not requested UAC elevation. I am logged in as an admin with UAC turned on and I haven't changed any of t...

MAPI, UAC & .NET

I've used MAPI to create emails with attachments from my application and it works very well on XP and Vista (without UAC). Of course, if you have UAC enabled, it just doesn't work (though it gives no errors, and doesn't prompt the user for permission to continue). I've done a bunch of reading and have found a lot of differing ideas: ...

How to get the actual path of a file in Vista with UAC ?

I am calling CreateFile() to create a file in the Program Data directory. I'm using SHGetSpecialFolderPath() to get the dir name. I have a user with Vista for whom CreateFile() is returning error 5 (Access Denied). It would help if I knew where CreateFile() was actually attempting to create the file so we can check his folder permissio...

Why can I write to a particular directory off of Program Files with UAC on?

This is a strange one to me. Let me list the setup: Application with a manifest (ie: wont get pushed to virtual store) UAC is turned on (can't write to other program files directories, or other areas, and uac prompt appears) Can write to "c:\program files\%app_name%\%directory%\" both from within my application (not run as admin) as w...

How to stop Ideablade DevForce writing to C:\Program Files\AppName\debuglog.xml in Vista

I have an application that uses Ideablade Devforce as it's OR mapper. When the application starts up it wants to write to the debuglog.xml file in C:\Program Files\Application Name\ This works fine in Windows XP, but due to Vista's locked down write access to Program Files, the app throws and error. Is there a way to stop Ideablade want...

Avoiding UAC in vista

Hi, im writing an application that downloads and installs addons for programs which needs to save the data to program files (for the programs in question). Now this works fine on xp and vista with uac disabled however it is failing on normal vista due to the virtual folders. How would one get around this with out needing to request adm...

How to configure Visual Studio not to give UAC prompt on each run?

I have switched to Vista recently and I wanted to keep UAC turned on, as I agree it increases computer security a lot. Some developer tools I use regularly require running elevated: PIX for Windows Visual Studio 2005 (elevated privileges seem to be needed for debugging and for IncrediBuild to work) mapped and substed drives: The elevat...

VirtualStore Migration (UAC)

I have an older version of a program which writes settings into program files off of the installation directory. I am looking to migrate those settings to the appdata directory. There are some problems associated with this. Lets focus on the most complicated user: A user who had the program installed on XP, and then upgraded to Vis...

About UAC in vista

I have a special feature in my AP, this feature need to get administrator right in Vista. Is there any MS API to pop up the UAC dialog when I click the button? Because I don’t want the end-user to see UAC dialog during startup, the feature is really special, not every user will do that. Thanks in advance. ...

display application icon on UAC elevation prompt for application run from network share

I have configured my .NET application using an application manifest to request administrator privileges. I have also signed the assembly using signtool. Everything works greatwhen you start the application, you get the nice UAC prompt with the application's name and the name of the signing certificate. However, when I run the applicatio...

Windows Service running as a logged-in user has access issues b/c of UAC

I have a Windows service that runs as a logged-in user (local admin). During start-up, I get a message along the lines: "Unable to generate a temporary class (result=1)". So, I went to windows/temp folder and was prompted by UAC to elevate my privileges -- after I did this, the service would start up fine. So, how do I deal with this UA...

MSI, UAC and Unidentified Publisher. How do I change the Unidentified Publisher?

I am currently working on a MSI package for one of my application. It works well; however, before the installation starts, I get the expected UAC window asking me if I trust or not this program from the Unidentified Publisher. I am not concerned by UAC itself, but by the Unidentified Publisher. How do I change that? I've heard that I nee...

Self-Updating .NET client application which needs to write in the Program File folder

Similar to: http://stackoverflow.com/questions/17533/request-vista-uac-elevation-if-path-is-protected#17544 I have a .NET Client Application installed in c:\Program Files (Windows Vista). This application should update itself, but it doesn't because of permission issues. The auto-updater should simply replace a couple of assemblies, but...

Using Reflector, why can't I see the app.manifest embedded in my .NET app?

I have a WinForms .NET app that, according to the Vista Task Manager with UAC enabled, runs with virtualization "Disabled" even though I do not recall adding a manifest with "asInvoker" to the app. VS.NET (this project has gone through all four versions of VS.NET) must have added the \Properties\app.manifest file I see in Solution Explor...

Where should I deploy my application?

Under Windows Vista (2008 and Seven), an application cannot write in Program Files Folder. I understand that UAC is the responsible, but it prevents my application to self-update. Is there a folder somewhere (available in Windows XP, Vista (and all other version)) which would allow me to deploy my application and let it self-update witho...

Visual Studio detaches from application as soon as debugging starts

I have a web application that I've always been able to run in Visual Studio and it debugs just fine (breakpoints work, I can pause execution, etc). Recently, the behavior changed suddenly, and a few things happen: I start debugging, it lauches IE and loads the application, but after a few seconds (sometimes the page hasn't even display...

Google and Microsoft install applications in the AppData Folder, why not me?

Is it acceptable to install an application in the AppData folder? Both Google Talk & Chrome are not installed in the default Program Files folder. They get installed in user's AppData folder. Microsoft does the same thing with ClickOnce... I would like to my application to self-update, but when installed in Program Files folder, it fai...

How to prevent Vista from requiring elevation on patch.exe?

[I'm sorry that this isn't directly a programming question. But I have recently switched to a new Vista machine where I am keeping UAC enabled (please don't tell me to disable it, it's not an option).] Every time I run gnu's patch.exe I get an elevation dialog from Vista. If I rename patch.exe to foo.exe it does not do this, so I assume...