[Tutor] Vista UAC

Lie Ryan lie.1296 at gmail.com
Fri Sep 11 19:05:28 CEST 2009


Jeff Johnson wrote:
> Dj Gilcrease wrote:
>> I have a python app that requires elevated privileges on Vista when
>> installed in "Program Files" since it has an auto updater. I was
>> wondering if there was a way with a standard install of python 2.6
>> that I can check if I have the correct privileges and if not relaunch
>> the app required privileges.
>>
>>
>> Dj Gilcrease
>> OpenRPG Developer
>> ~~http://www.openrpg.com
> I have an application that uses something that auto updates but it may 
> not be the same process as yours.  I have a "stub" executable that 
> checks a network location for a different copy of the "real" executable. 
>  If one exists, it copies the exe to the application folder and executes 
> it.  My solution for Vista - which works very well - is to put my 
> application in a folder C:\users\public\applications\myapplication.
> 
> This way there is no need for raised privileges.
> 

The only problem with installing in public folder that is it allows 
non-privileged (read: any) user to modify the program; which might be 
unwanted for some apps.



More information about the Tutor mailing list