uac

How can I launch the on-screen keyboard from my application on Vista and Windows 7

I have a problem, I have an application which has a toolbar icon to launch the system onscreen keyboard. This all works fine with the exception of Windows Vista and Windows 7 beta. The UAC appears to be getting in the way and preventing the osk.exe from running. I have read that because it is used on the logon screen it will not promp...

About ProgramData folder's right with UAC turned on under Vista

I login in with Administrator on Vista with UAC turned on, is it OK for me to create, modifty or delete file in ProgramData folder. My test result is YES, but I found my AP can access the folder which name is "MicroSoft", is there any starndard document to know the ProgramData folder's right under Vista? ...

How do I update a VB6 app from XP to Vista?

I work on a vb6 application which is having problems with Vista, for the obvious reasons (writing to program files, and other things that are no longer allowed by default). Where should I store application data or user's saved files? Do I need priviledges to create folders and files, there, too? What other common actions will cause pro...

Requested registry access is not allowed

I'm writing a tweak utility that modifies some keys under HKEY_CLASSES_ROOT. All works fine under Windows XP and so on. But I'm getting error Requested registry access is not allowed under Windows 7. Vista and 2008 I guess too. How should I modify my code to add UAC support? ...

How to change file association without UAC confirmation?

When I was working with file association in a .NET application I hadn't had found a way to set it without UAC popping up a confirmation dialog. Today, when I opened uTorrent and looked up for file association, I've found that you can enable (writing to registry) without any confirmation from the UAC. How is that possible? uTorrent is n...

How to elevate privileges only when required?

This question applies to Windows Vista! I have an application which normally works without administrative privileges. There is one activity which does need administrative privilege but I don't want to start the application itself with higher privileges when I know most of time user wont even be using that feature. I am thinking about c...

Elevating privileges for UAC using manifest open new console window

I'm writing a console tool. Without privileges elevating for UAC support (manifest file), calling this tool from command prompt (cmd.exe) or console file manager (like far.exe) opens it in the same window, writes its output to the same window, etc. But now, when manifest file was added, a new console windows is created for tool after UA...

Grab console output launched with elevated privileges

I'm writing a command-line tool which requires privileges elevating. This can be successfully implemented using manifest. But if this tools is launched from cmd.exe or Far Manager (far.exe), a new console window is created. So all tool console output is written to it and is lost on close. So my idea is about implementing a fork, where ...

Are there any way to know whether user open the UAC dialog

I have a simple video player SW, but the render window goes black or freezes after UAC message on Vista 32 or 64. Are there any way to know whether user open the UAC dialog? ...

Windows batch file starting directory when 'run as admin'

I have a batch file which is in a directory and must be run from there as well because it updates files within this directory. This works perfectly fine, except when the user runs the batch file as administrator (required on Vista). Then the starting directory is C:\Windows\System32. Is there any way to still be able to know from which d...

Disabling UAC programmatically

Is it possible to programmatically disable UAC in Vista? Or, can I make my application run unrestricted by the UAC setting in any way? FYI, the application needs to mount hard drives on the fly, which is why I can't ask for UAC permission each time... Update: I'm looking for something in line with what Kosi2801 mentioned, basically to ...

Screen capture and event with Vista UAC

I'ved developed a c# application that captures screens using bitblt and sends keyboard and mouse events using calls to keybd_event and mouse_event. According to Microsoft I needed to modify the app.manifest with: requestedExecutionLevel level="highestAvailable" uiAccess="true" Sign the application and place it in a trusted location...

Vista + VB.NET - Access Denied while writing to HKEY_LOCAL_MACHINE

I want my program to be able to edit a values within a registry key that resides in 'HKEY_LOCAL_MACHINE' My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\XYZ", "MyValue", "MyData") The above works fine in Windows XP, but throws an UnauthorizedAccessException in Vista. ...

P/Invoke tutorials?

Does anyone know of a good tutorial/e-book that goes in depth on the System.Runtime.InteropServices namespace? I just got through reading this tutorial on how to make the UAC shield show up in a button and now I really want to learn this. P.S. How do look in the windows system files to know that a method exist to show a UAC shield in a...

Diagnosing Windows application manifests

Windows application manifests have a very loose grammar — unrecognized parts are ignored. How can I diagnose which parts are recognized and which are not? The problem leading to this question is with an application that has a side-by-side UAC manifest with a requestedExecutionLevel of highestAvailable specified. This should switch Vista...

Is there a way to specify inside visual studio 2008 that an application requires admin?

I see plenty of articles on how to embed a manifest file to require admin, but the problem I find with that is we auto-increment the version number number, so a static manifest file doesn't seem like it'd work because we'd have to update the version number each time. Is there any way to get VS to generate the manifest and embed it autom...

Is it possible to silently run an NSIS installer in VISTA?

I made an updater which silently runs in XP and works just fine. But when it comes to Vista, the idea of silent installation gets ruined when UAC prompts the user to cancel or allow the user from running the program. Is there anything at all we can do about this? Thanks... ...

Under UAC, why can't I write a file as an impersonated user?

I'm impersonating a user until Windows 2008 with UAC enabled. I'm trying to write some files to a temp directory. But even if a user has write access to a directory, when I impersonate that user, I'm unable to write to that directory (I get an Access Denied error). Apparently, this is due to UAC blocking me. This is related to a post...

Running an installer on Vista without turning UAC off

My msi installer cannot be installed on a Vista machine without turning UAC off. As my application is going to be distributed to my clients, around 20 machines, and they do not want to turn UAC off, is there a way that I can set some property which would allow my installer to run silent without any user interaction when UAC, which is ena...

Why Virtualization on ProgramData folder in MS Vista?

I have an app modified to take into account the UAC in VISTA. So, now, the .mdb (JET or Access file) is located in ProgramData\MyApp\ I realized that when my app reads the database for the first time it is doing it from that location... but when my app is writting to the database... the file is virtualized and goes to Users\MyUser\AppDa...