Thanks Paul. But when I say requireAdministrator, wouldn't that actually require the user to be an admin or, in case of a non-admin user, prompt for admin credentials?
That seems to be what I'm trying to avoid. Should I have the execution level as requireAdministrator or as Jason suggests below, highestAvailable? It depends on what you're actually trying to accomplish. If you're trying to perform admin actions write to common files, change registy, etc.
If you're not doing admin stuff and just touching areas of the computer that the user already has rights to then asInvoker is the correct method.
What is the file name of your second file? Does your second program need administrator privileges? HeartWare HeartWare 6, 2 2 gold badges 24 24 silver badges 29 29 bronze badges.
Note that it is true only if it is a GUI program. If such program is a console app e. Jason Watts Jason Watts 1, 5 5 silver badges 13 13 bronze badges. Bear with me a little more. I understand the solutions suggested. But what puzzles me is if the CreateProcess API was flagged by SUA because it didn't have enough privileges, will a non-Admin user with "highestAvailable" execution level be able to execute the call without any elevation?
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Did you turn it off with nlite? If so I had a problem when I turned it back on after not installing it with a clean Vista install. Thanks for the help.
Trying to set up some medical diagnosis software for a palm pilot and even as administrator I still get an elevation request. I justg bought one laptop with Windows vista home premium from one of my French friend and im from USA, now I want to change language from french to English.
I did try all from Administration tab but still no change. I turned off UAC because there were some Windows updates that needed to be run and kept failing for months so i got the idea to turn off UAC to see if that would help. The updates ran and executed perfectly.
I just turned UAC off again and it is still off and I save files again. Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.
I want comments to be valuable for everyone, including those who come later and take the time to read. Search Ask Leo! Do this Subscribe to Confident Computing! I'll see you there! Turn off most annoyances on the fly without reboot. Right-click the icon that you use to run the program, and then click Run as administrator. When you are prompted for an administrator password or for a confirmation, type the administrator password, or click Continue.
For some program icons, the Run as administrator option is not available on the shortcut menu. For these program icons, follow these steps:. Right-click the icon that you use to run the program, and then click Properties. On the Shortcut tab, the Target box contains the location and the name of the program file. Right-click the program file, and then click Run as administrator.
If you are prompted for an administrator password or for a confirmation, type the password, or click Continue. If you must run a program as an administrator, you may want to set up the program so that you automatically run it as an administrator. To do this, follow these steps:. On the Compatibility tab, click to select the Run this program as an administrator check box, and then click OK. The Compatibility tab is not available for some program icons.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:. For help with common system maintenance tasks in Windows Vista, visit the following Microsoft Web page:. Fix problems with common system maintenance tasks. Need more help? Expand your skills. Get new features first. Was this information helpful?
0コメント