Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run as Administrator
Message
From
05/04/2011 08:40:05
 
 
To
04/04/2011 11:23:08
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01506020
Message ID:
01506100
Views:
100
Hi Doyle.

>Windows Vista and Windows 7 require my VFP application to be run as administrator. To do so a user must open the media (CD) in Explorer, right click on the .Exe and click "Run as Administrator". That's too steep a learning curve for most of its intended user base.

Why does your app need to run as administrator? It's rare that an app actually needs admin privileges. A more common reason is that the app tries to write to protected storage, such as the program files folder or HKEY_LOCAL_MACHINE in the Registry. It's a LOT better for you to tweak your app to not require admin privileges than to make the user run it as administrator. Not only will it be easier for your users, your app will play better with Windows and not have the security hole it does now when it's run as administrator.

If you absolutely have to run as administrator, you can create a manifest that tells Windows to always request elevation. See Craig Boyd's blog (start at http://www.sweetpotatosoftware.com/spsblog/2007/09/25/PEFilesUACRegFreeCOMAndOtherCrazyStuffPart1.aspx) for details.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform