uac

Launch application after installation complete, with UAC turned on

拟墨画扇 提交于 2019-11-29 03:01:03
问题 Good day. I've been building an installer for our product using the WIX(Windows Installer XML) technology. The expected behavior is that the product is launched, if the check box is checked after installation. This has been working for some time now, but we found out recently that UAC of Win 7, and Vista is stopping the application from launching. I've done some research and it has been suggested to me that I should add the attributes Execute='deferred' and Impersonate='no'. Which I did, but

Embedding an application manifest into a VB6 exe

。_饼干妹妹 提交于 2019-11-29 02:55:08
问题 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), and tested them. They all appear to work correctly. I have only one small problem remaining. Since they are standalone utilities, people are used to just

How to screen shot a UAC prompt?

≯℡__Kan透↙ 提交于 2019-11-28 18:32:48
I'm trying to document a work flow with a series of screen shots. At one point in the flow, a UAC prompt appears, and I'd like to grab a bitmap of it to make my storyboard complete. Because UAC prompts are on a virtual desktop (or something like that), the usual Alt+PrintScreen doesn't work. Any suggestions? This method using the group policy editor should do the job: 1) Run gpedit.msc 2) Under Computer Configuration\Windows Settings\Security Settings\Local Policies\SecurityOptions: Change “User Account Control: Switch to the secure desktop when prompting for elevation” to disabled Undo this

Windows batch file starting directory when 'run as admin'

情到浓时终转凉″ 提交于 2019-11-28 17:08:49
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 directory the batch file was run? I dont want the user to enter the directory manually. Try to access the batch files path like this: echo %~dp0 For more information see the following quote from the command for /? that describes how the above command works: You

Delphi 7 vista / windows 7 manifest

社会主义新天地 提交于 2019-11-28 16:35:16
Would anyone have an example of a manifest file for Delphi 7 which allows apps to run as administrator on Windows XP / Vista / 7? Running an application with this feature usually leads to a User Account Control (UAC) dialog asking for privileged permissions. Here are the steps: 1. Remove XPMan : Remove any reference to XPMan component in your project. XPMan adds a default manifest to the executable that prevents Windows to see our customized manifest. You shouldn't be worried about XP Theme provided by XPMan , theme support is preserved in the following manifest. 2. Create the customized

starting a UAC elevated process from a non-interactive service (win32/.net/powershell)

两盒软妹~` 提交于 2019-11-28 16:33:33
问题 I'm using a thrid party Windows service that handles some automation tasks by running scripts and executables using CreateProcessAsUser(). I'm running into problems on Windows Server 2008 due to UAC and way the LUA elevation is handled through the APIs. The service runs as LocalSystem and does not have "Interact With Desktop" enabled. The processes are being run as users in the Administrators group, but not the Administrator account (which is exempted from many UAC restrictions). All the UAC

Cannot access network drive in PowerShell running as administrator

安稳与你 提交于 2019-11-28 16:29:18
I'm running PowerShell in a Windows 7 x64 virtual machine. I have a shared folder on the host mapped as a network drive (Z:). When I run PS normally I can access that drive just fine, but if I run it "as administrator" it tells me: Set-Location : Cannot find drive. A drive with the name 'Z' does not exist. At line:1 char:13 + Set-Location <<<< Z: + CategoryInfo : ObjectNotFound: (Z:String) [Set-Location], DriveNotFoundException + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SetLocationCommand How do I access network drives as administrator? In the end the fix was simply

setting UAC settings of a file in C#

好久不见. 提交于 2019-11-28 14:24:28
i want to give a file(already present on the client computer .exe) permissions to always execute with administrative permissions. please note that the file i wants to give permissions is already on target machine. and i want to change permissions of that file through another program written in c# and it has administrative permissions to do everything. kindly let me know how to do it i am using this code System.Security.AccessControl.FileSecurity fs = File.GetAccessControl(@"c:\inam.exe"); FileSystemAccessRule fsar = new FileSystemAccessRule("Everyone", FileSystemRights.FullControl,

Program needing elevation in Startup registry key (windows 7)

那年仲夏 提交于 2019-11-28 14:04:45
I have a program that I'd to run when the computer starts. I've put its path inside "SOFTWARE\Microsoft\Windows\CurrentVersion\Run". This is in Windows 7. When the computer starts nothing happens. I'm thinking this is because the program needs elevation when I run it. But Windows does not ask for permission to elevate and gives no feedback. It simply ignores it. I've read that Vista tells you that the program was blocked etc. Does anybody have any idea why Windows 7 simply ignores the application? Thank you very much in advance. Alireza Windows Vista and 7 block programs requiring elevation

Start non-elevated process from elevated process [duplicate]

房东的猫 提交于 2019-11-28 12:16:07
Possible Duplicate: How to run NOT elevated in Vista (.NET) How do you de-elevate privileges for a child process My program running as an elevated process, and starting new processes with Process.Start() . For security reasons, I would like to run those new processes as non-elevated. How to do that? Michael Goldshteyn Take a look at: How to run NOT elevated in Vista (.NET) The answer is presented at that URL. Also, you may want to read http://go.microsoft.com/fwlink/?LinkId=81232 for why this is not such a good idea... 来源: https://stackoverflow.com/questions/3927790/start-non-elevated-process