uac

Debugging with Visual Studio 2012, Windows 8 and User Account Control

陌路散爱 提交于 2019-12-22 06:52:59
问题 First of all - this is all about the RTM Versions. And Windows 8 has some changes regarding the UAC, as we all learned from http://www.brianbondy.com/blog/id/140/, it cannot be disabled side-effect-free. Now the problem starts: Our main app requires elevated privileges (at least the server part). Debugging will only work when running VS in elevated mode, too. But when I'm starting a Silverlight Project in elevated mode of VS, the IE fired up for debugging is started as with normal privileges

Windows UAC Dialog

亡梦爱人 提交于 2019-12-22 05:05:09
问题 I have an application that has no resources (at all, so no UAC manifest either). This application installs itself to the appdata/roaming folder with CopyFile. It also sets an autostart so it starts automatically with every start. Now with every start of the pc, the UAC Dialog pops up and says that the application does changes to the pc. It also has the shield sign on the icon if it's located in appdata. How can I remove the dialog / the shield in the icon? Does Windows detect the copyfile API

WIX Burn Bootstrapper not asking for admin rights for my MSI

ε祈祈猫儿з 提交于 2019-12-22 02:41:13
问题 I created an MSI with WIX that needs elevated permissions to work correctly. In the MSI Project, I specified this via <Package [...] InstallPrivileges="elevated" /> Now I included this MSI in a custom bootsrapper project, based on WixWPF Bootstrapper. As I understand it, the bootstrapper itself should not alter the machine state and thus should not require elevated privileges. I would now expect the Bootstrapper to automatically launch the integrated MSI with elevated priviliges, prompting

WIX Burn Bootstrapper not asking for admin rights for my MSI

流过昼夜 提交于 2019-12-22 02:41:03
问题 I created an MSI with WIX that needs elevated permissions to work correctly. In the MSI Project, I specified this via <Package [...] InstallPrivileges="elevated" /> Now I included this MSI in a custom bootsrapper project, based on WixWPF Bootstrapper. As I understand it, the bootstrapper itself should not alter the machine state and thus should not require elevated privileges. I would now expect the Bootstrapper to automatically launch the integrated MSI with elevated priviliges, prompting

Batch scripting, Powershell, and not triggering the UAC in Windows

爱⌒轻易说出口 提交于 2019-12-21 17:27:38
问题 I am looking for away to run batch files in elevated mode (runas administrator) so that it doesn't trip the UAC to prompt for user interaction. We have some registry edits, among other things, that we do in our login scripts which trigger the UAC to prompt for each registry that is run. I realize that this sort of defeats the purpose of the UAC, but it would be nice if there was some way of running batch files on machines that have UAC enabled. These batch files need to be able to run without

Testing install procedure of a program requiring administrative privileges

坚强是说给别人听的谎言 提交于 2019-12-21 06:08:50
问题 I'm trying to write automated test, to ensure that the installer for my program works okay. The program can be installed for all users (requires admin privs), or for current user (does not require admin privs). The program can also autoupdate itself, which in some cases requires admin privileges, and in some cases doesn't. I'm looking for a way where I can have an automated test click "Yes, Allow" on the UAC dialogs, so I can write tests for all different scenarios, on many different

Testing install procedure of a program requiring administrative privileges

☆樱花仙子☆ 提交于 2019-12-21 06:07:44
问题 I'm trying to write automated test, to ensure that the installer for my program works okay. The program can be installed for all users (requires admin privs), or for current user (does not require admin privs). The program can also autoupdate itself, which in some cases requires admin privileges, and in some cases doesn't. I'm looking for a way where I can have an automated test click "Yes, Allow" on the UAC dialogs, so I can write tests for all different scenarios, on many different

Open default browser as standard user (C++)

纵然是瞬间 提交于 2019-12-21 05:42:10
问题 I'm currently using ShellExecute "open" to open a URL in the user's browser, but running into a bit of trouble in Win7 and Vista because the program runs elevated as a service. When ShellExecute opens the browser, it seems to read the "Local Admin" profile instead of the user's. So for example, if the user at the keyboard has Firefox as his default browser, it may open IE (which is the admin's default). I know that the "runas" verb can be used to elevate, but how do you do it the other way

CreateProcessAsUser fails with ERROR_ELEVATION_REQUIRED for a process with UIAccess=“true”

馋奶兔 提交于 2019-12-21 05:22:26
问题 I'm trying to use the following code to run a user-mode process from my service application (running as a local system .) The requirement for the user-mode process is to run without elevatation, but to have UIAccess="true" in its manifest to be able to display top-most windows correctly under Windows 8. So I do this (from my service) to run my user-mode process: //NOTE: Error checking is omitted for readability //'dwSessionID' = user session ID to run user-mode process in //'pUserProcPath' =

Can I stop an executable from requesting UAC elevation?

我的未来我决定 提交于 2019-12-21 05:05:58
问题 I have an installer I'd like to run from a script. The installer requests UAC elevation but it doesn't need elevation because I'm installing to a user directory. Is there some way to run the installer so that it doesn't request UAC elevation? The script is written in Python so I can access the Windows API through ctypes. Changing the installer is not an option. 回答1: You have to set the enviromnet variable __compat_layer for your process to RunAsInvoker . Then you can run the executable