MAMEWorld >> News
View all threads Index   Flat Mode Flat  

AWJ
Reged: 03/08/05
Posts: 936
Loc: Ottawa, Ontario
Send PM
Re: Compiling page updated
09/11/12 08:52 AM


No, there's actually a sensible reason for it. Microsoft's goal with UAC was to finally break the vicious circle of "Everyone runs Windows with Administrator privileges because there are so many applications that require it, usually for stupid reasons like putting config files or user data into C:\Program Files; and because everyone does run as Administrator, there's no incentive for application vendors to fix their applications".

There are two possible reasons an application might want to write into C:\Program Files (or another protected folder):

1) It's an old Win9x-vintage application, or one whose author never got the memo about Windows becoming a multiuser OS where you can't just write files wherever you want. In this case, UAC silently redirects the write to a "virtual" copy of the protected folder under the current user's home folder. This way, users can run their old and broken apps without ever seeing a UAC prompt and without any chance that the broken app can trash system files.

2) It's an application installer or updater, in which case it really does need to write to the actual C:\Program Files folder, not to a virtual copy of it, and therefore UAC really does have to prompt the user for an Administrator password.

Microsoft needed a way to distinguish between 1) and 2) that was compatible with old applications and that didn't require user intervention. The method they chose was a heuristic that is described here under "Installer Detection". Short version: any executable whose metadata contains certain strings associated with installers or updaters (such as "InstallShield") or whose filename implies that it's an installer or updater is treated as 2), meaning you get a UAC prompt when you try to run it.

Edited by AWJ (09/11/12 09:40 AM)







Entire thread
Subject Posted by Posted on
* Compiling page updated Mr. DoAdministrator 09/09/12 07:38 PM
. * Re: Compiling page updated B2K24  09/13/12 05:00 AM
. * Re: Compiling page updated BPzeBanshee  09/11/12 03:03 PM
. * Re: Compiling page updated Ashura-X  09/11/12 03:44 PM
. * Re: Compiling page updated BPzeBanshee  09/13/12 09:36 AM
. * Just rename patch to pat. Problem solve. =) Dullaron  09/11/12 08:16 AM
. * Re: Compiling page updated marcsandusky  09/11/12 04:09 AM
. * Re: Compiling page updated redk9258  09/11/12 04:23 AM
. * Re: Compiling page updated Mr. DoAdministrator  09/11/12 04:36 AM
. * Re: Compiling page updated B2K24  09/11/12 04:33 AM
. * Re: Compiling page updated Master O  09/11/12 12:39 AM
. * Re: Compiling page updated TafoidAdministrator  09/11/12 12:43 AM
. * Re: Compiling page updated SmitdoggAdministrator  09/11/12 12:42 AM
. * Re: Compiling page updated AaronGiles  09/09/12 10:24 PM
. * Re: Compiling page updated Roman  09/10/12 08:56 AM
. * Re: Compiling page updated Mr. DoAdministrator  09/10/12 06:08 AM
. * Re: Compiling page updated krick  09/10/12 05:51 AM
. * Re: Compiling page updated AWJ  09/11/12 02:02 AM
. * Re: Compiling page updated krick  09/11/12 07:27 AM
. * Re: Compiling page updated AWJ  09/11/12 08:52 AM
. * Re: Compiling page updated krick  09/12/12 01:57 AM
. * Re: Compiling page updated redk9258  09/10/12 02:36 AM
. * Re: Compiling page updated redk9258  09/09/12 08:48 PM

Extra information Permissions
Moderator:  John IV, Robbbert, Tafoid 
1 registered and 120 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3116