UAC Prompts for credentials
I(Admin) am installing my .Net Application in program files on Windows 7 machine. So that my application can be used by anyone who uses the computer. But when standard user logs into the system and trying to run the application, It prompts for the admin credentials. Also shield icon is there in exe image. In order to execute the program , standard user has to know the admin password. This is not happening when user install it into his local profile. No credential prompt in this case. I tried to give requested execution level in the manifest file. But that doesn't work for me. It stopped only the virtualization. Please advise me how to run the program with out credential prompt for standar user.
February 9th, 2010 12:17pm

Hehe welcome to UAC ^^ a good way to solve ur prompts problem is just slide down the UAC slider then u no longer will need to input credentials...i also heard that using task scheduler helps with that problem...i also wonder how to use UAC virtualization coz usually .exe files or services with that option marked run without prompting so i may wish u good luck while u w8 for others to better assist u if the suggestions above doesnt work for ya !Kind regards,RR
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2010 2:03am

No man. I dont want to slide it down. Is there anyother way to handle this from the code.
February 10th, 2010 6:46pm

Perhaps this may be helpful. Before I post any links here I will review the terms of this board. Instead I will paste here what I have read. Tune UAC With The Windows Registry Launch the Local Group Policy Editor by clicking Start then type gpedit.msc and hit Enter . Once the Local Group Policy Editor window is loaded, navigate to Computer Configuration > Windows Settings >Security Settings >Local Policies > Security Options . Many advanced options relevant to the UAC will be populated in the right side main window. Here is the list of available UAC options which you can change as per your requirements: User Account Control: Admin Approval Mode for the Built-in Administrator account. User Account Control: Allow UIAccess applications to prompt for elevation without using the secure desktop. User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode. User Account Control: Behavior of the elevation prompt for standard users. User Account Control: Detect application installations and prompt for elevation. User Account Control: Only elevate executables that are signed and validated. User Account Control: Run all users, including administrators, as standard users. User Account Control: Virtualizes file and registry write failures to per-user locations. Please note that some of the above mentioned registry changes may require a system reboot to work. We would highly recommend that you make a backup before changing anything, just to be on the safe side. Enjoy! I hope that helps.
Free Windows Admin Tool Kit Click here and download it now
February 11th, 2010 10:21pm

@Drefia,Thanks for the reply. The tool that i am creating is going to be used by 1000+ people. It is impossible to say everyone to adjust all these settings. I just need the fix in my package itself.
February 12th, 2010 8:18am

if you are in a group of 1000+ put the file on a server and get each user to install it locally.Vote if answered or helpful, I am running for Office (joke)! IT/Developer, Windows/Linux/Mainframe RaidMax Smilodon, 680W, Asus M2NBP-VM CSM AMD X2 4200+, 2GB DDR2-800, x600, more details on my site, need a video card for the Windows machine, the 8600 GT fried
Free Windows Admin Tool Kit Click here and download it now
February 14th, 2010 7:41am

Yes I have setup in server and users will download it. The msi file provides two options. Install for everyone and for me only. Files and dlls will store into program files for the everyone option, other option will store the things in local folder.
February 15th, 2010 1:14pm

i got it. There was an entry under HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers as Name : "<App Path>" Data :"<RUNASADMIN>" . This was set when i install the product. I deleted it. No prompt now
Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2010 5:38pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics