uac

TFS Build: Run a Powershell script as administrator

时间秒杀一切 提交于 2020-07-20 08:41:23
问题 I created a build definition for our nightly build server. After building the project (a windows service), I need to execute a Powershell script to install and start the service. So I added a build step to run the specific Powershell script. Then I installed a TFS Build Agent & Visual Studio at the (soon to be) nightly build server. After running the build script I got an 'exit code 5' which seems to be related to missing administratior permissions. If I start the script as admin on the

Which events are triggered on a UAC prompt?

匆匆过客 提交于 2020-07-09 16:27:25
问题 Are there any windows events triggered when a UAC elevation prompt is shown? I've looked at SwitchDesktop, but can't see any mention of how to receive notifications. My direct show app is behaving badly, and I'd like to be able to pause the graph when when the prompt is displayed, resuming when dismissed. I'm using C++ with MFC, VS2008, targetting XP, Vista and 7. Many thanks 回答1: I'm not sure there are any events sent when UAC prompt displays. Basically it makes a screenshot of the desktop,

Process.Start never returns when UAC denied

醉酒当歌 提交于 2020-05-25 11:28:49
问题 I have an updater exe that is meant to close the primary exe, replace it with an updated exe, and then launch that updated exe. When the updater attempts to start the updated exe, if the UAC permissions dialog is denied by the user, the updater will hang. This is because the Process.Start() function never returns. My CPU cycles meter indicates practically no usage btw. I would hope all my users just say "yes" to the UAC, but since I'm here I'd like to handle this case with some kind of error

Process.Start never returns when UAC denied

空扰寡人 提交于 2020-05-25 11:27:51
问题 I have an updater exe that is meant to close the primary exe, replace it with an updated exe, and then launch that updated exe. When the updater attempts to start the updated exe, if the UAC permissions dialog is denied by the user, the updater will hang. This is because the Process.Start() function never returns. My CPU cycles meter indicates practically no usage btw. I would hope all my users just say "yes" to the UAC, but since I'm here I'd like to handle this case with some kind of error

Storage location of yellow-blue shield icon

[亡魂溺海] 提交于 2020-05-24 21:31:26
问题 Where, in Windows, is this icon stored? I need to use it in a TaskDialog emulation for XP and am having a hard time tracking it down. It's not in shell32.dll, explorer.exe, ieframe.dll or wmploc.dll (as these contain a lot of icons commonly used in Windows). Edit: For clarification, I am emulating a certain type of dialog in XP. The icon is (most likely) not present there. So I want to extract it from the library that holds it in Windows 7. I am extending an existing implementation of this

Storage location of yellow-blue shield icon

房东的猫 提交于 2020-05-17 04:48:46
问题 Where, in Windows, is this icon stored? I need to use it in a TaskDialog emulation for XP and am having a hard time tracking it down. It's not in shell32.dll, explorer.exe, ieframe.dll or wmploc.dll (as these contain a lot of icons commonly used in Windows). Edit: For clarification, I am emulating a certain type of dialog in XP. The icon is (most likely) not present there. So I want to extract it from the library that holds it in Windows 7. I am extending an existing implementation of this

How to check is UAC is currently blacking out the screen?

北战南征 提交于 2020-05-16 05:36:23
问题 I am trying to determine if User Account Control is currently blacking out the screen/asking for permission. I have an application which uses SlimDX and when UAC takes over the screen it causes the DirectX device to be lost, I can recreate the device once the UAC window has been closed, if I try this before(even in a try{}catch{} and loop the application crashes) I have looked over at pinvoke and msdn and I can't seem to find anything about this. Does anyone have an ideas? As a note: I do not