Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run as Administrator
Message
From
05/04/2011 09:37:18
 
 
To
05/04/2011 08:40:05
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:
01506107
Views:
94
>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


Thanks, Doug

My app checks for an internet connection (See Message Id 1500982) and installs an ocx in the C:\Windows\System32 folder and registers it via regsvr32 for a FTP service. I looked at Craig Boyd's blog... thank you... but I'm way out of my league on it. Guess I'm stuck, but I appreciate your input.

dg
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform