Run As Administrator if possible, if not: run with limited privileges?

You can use a manifest that asks for highestAvailable instead of requireAdministrator or asInvoker. This will elevate if a person who can just consent to elevating is running it, but won't if it's someone who would need the OTS prompt and entering an admin id and password. I don't care for it myself, since you can't write your code in confidence knowing whether you have the privileges or not.

But this is how to achieve what you're asking for.

Up vote 1 down vote favorite share g+ share fb share tw.

I need to change the behavior of my application depending on user privileges: When my application can run as Administrator When my application has limited privileges Since "requireAdministrator" is embedded within the manifest, the same . Exe can't work on (1) and (2) at the same time. What's the best way to deal with this issue?

I am planning to pack two executables (one with "requireAdministrator") and decide which one to run. Someone have other suggestions? Windows-7 windows-vista uac link|improve this question asked Nov 18 '10 at 1:38sw.1,014513 55% accept rate.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions