Registry blocked by UAC

Posted: 06-28-2007, 08:24 PM
Hi, we developed an application that works fine with XP but Vista's UAC seems
to be blocking a Registry key that we generate under this path: "My
Computer\HKEY_CLASSES_ROOT\CLSID\{}"

Disabling UAC or 'Run as Aministrator' option 'helped' with the problem as a
user but as a programer i would like to know why UAC didn't prompt for
consent or if there's an appropiate place for developers to place these keys
on the registry

Thanks, Najash

Registry blocked by UAC


Responses to "Registry blocked by UAC"

Kerry Brown
Guest
Posts: n/a
 
Re: Registry blocked by UAC
Posted: 06-29-2007, 03:42 AM
If they need to be updated by users they should be in HKEY_CURRENT_USER.
Otherwise you can set them with the installer. Installers almost always need
administrator access and automatically generate a UAC prompt.

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


"Najash" <Najash@discussions.microsoft.com> wrote in message
news:0DDA7D78-1887-425B-BA8E-02EB815635FD@microsoft.com...
> Hi, we developed an application that works fine with XP but Vista's UAC
> seems
> to be blocking a Registry key that we generate under this path: "My
> Computer\HKEY_CLASSES_ROOT\CLSID\{}"
>
> Disabling UAC or 'Run as Aministrator' option 'helped' with the problem as
> a
> user but as a programer i would like to know why UAC didn't prompt for
> consent or if there's an appropiate place for developers to place these
> keys
> on the registry
>
> Thanks, Najash
Najash
Guest
Posts: n/a
 
Re: Registry blocked by UAC
Posted: 06-29-2007, 05:42 PM
Thanks Kerry, and yes You're right, in some cases we need to create the Key
from the installer and that works just fine (UAC prompts for consent) ,the
problem comes when the Key is created out of the installer.

An example of this is when a trial version of an app. is installed and when
expired, only the key is changed for full version.

Do you know how are developers fixing this case when migrating their old
apps?

"Kerry Brown" wrote:
> If they need to be updated by users they should be in HKEY_CURRENT_USER.
> Otherwise you can set them with the installer. Installers almost always need
> administrator access and automatically generate a UAC prompt.
Andrew McLaren
Guest
Posts: n/a
 
Re: Registry blocked by UAC
Posted: 06-30-2007, 04:32 AM
I dunno the exact answer to your question, but this article gives a very
useful decision tree / flow chart for UAC elevation prompts:

http://technet2.microsoft.com/Window....mspx?mfr=true

It might shed some light on the problem.

Hope this helps a litle bit
Andrew

Kerry Brown
Guest
Posts: n/a
 
Re: Registry blocked by UAC
Posted: 06-30-2007, 03:44 PM
To update an application the updater should let Vista know it needs
elevation and Vista will throw a UAC prompt. There is no way to program
around UAC. You can turn it off but if it's on you can't get around it. As
you have no way of knowing in advance if the user has turned off UAC you
have to assume it's on and write the program for it.

http://msdn2.microsoft.com/en-us/library/aa905330.aspx

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


"Najash" <Najash@discussions.microsoft.com> wrote in message
newsCDA773C-E58F-42C0-93F5-DA1EC20DB453@microsoft.com...
> Thanks Kerry, and yes You're right, in some cases we need to create the
> Key
> from the installer and that works just fine (UAC prompts for consent) ,the
> problem comes when the Key is created out of the installer.
>
> An example of this is when a trial version of an app. is installed and
> when
> expired, only the key is changed for full version.
>
> Do you know how are developers fixing this case when migrating their old
> apps?
>
> "Kerry Brown" wrote:
>> If they need to be updated by users they should be in HKEY_CURRENT_USER.
>> Otherwise you can set them with the installer. Installers almost always
>> need
>> administrator access and automatically generate a UAC prompt.
>
Najash
Guest
Posts: n/a
 
Re: Registry blocked by UAC
Posted: 07-03-2007, 12:58 AM
Thx, I really apreciate your help, reading about UAC from the links you send,
I found something about a Manifest File that might help
Ronnie Vernon MVP
Guest
Posts: n/a
 
Re: Registry blocked by UAC
Posted: 07-04-2007, 02:29 AM
Najash

You will also be interested in reading the following article, especially
Part 4. This article even shows examples of how to write the code for the
Manifest file.

Windows Vista for Developers – A New Series - Kenny Kerr:
http://weblogs.asp.net/kennykerr/arc...ew-Series.aspx


--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"Najash" <Najash@discussions.microsoft.com> wrote in message
news:5E343975-94BB-43CA-9A6C-4DCAB4ABC1BA@microsoft.com...
> Thx, I really apreciate your help, reading about UAC from the links you
> send,
> I found something about a Manifest File that might help
Najash
Guest
Posts: n/a
 
Re: Registry blocked by UAC
Posted: 07-04-2007, 09:44 PM
Excellent Help, Thanks.

"Ronnie Vernon MVP" wrote:
> Najash
>
> You will also be interested in reading the following article, especially
> Part 4. This article even shows examples of how to write the code for the
> Manifest file.
>
> Windows Vista for Developers – A New Series - Kenny Kerr:
> http://weblogs.asp.net/kennykerr/arc...ew-Series.aspx
>
>
> --
>
> Ronnie Vernon
> Microsoft MVP
> Windows Shell/User
>
>
> "Najash" <Najash@discussions.microsoft.com> wrote in message
> news:5E343975-94BB-43CA-9A6C-4DCAB4ABC1BA@microsoft.com...
> > Thx, I really apreciate your help, reading about UAC from the links you
> > send,
> > I found something about a Manifest File that might help
>
Ronnie Vernon MVP
Guest
Posts: n/a
 
Re: Registry blocked by UAC
Posted: 07-05-2007, 06:12 PM
Natash

Your welcome and good luck with your application.

--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"Najash" <Najash@discussions.microsoft.com> wrote in message
news:66FCA321-83CB-453A-B272-7DF7F9BBAA2A@microsoft.com...
> Excellent Help, Thanks.
>
> "Ronnie Vernon MVP" wrote:
>
>> Najash
>>
>> You will also be interested in reading the following article, especially
>> Part 4. This article even shows examples of how to write the code for the
>> Manifest file.
>>
>> Windows Vista for Developers – A New Series - Kenny Kerr:
>> http://weblogs.asp.net/kennykerr/arc...ew-Series.aspx
>>
>>
>> --
>>
>> Ronnie Vernon
>> Microsoft MVP
>> Windows Shell/User
>>
>>
>> "Najash" <Najash@discussions.microsoft.com> wrote in message
>> news:5E343975-94BB-43CA-9A6C-4DCAB4ABC1BA@microsoft.com...
>> > Thx, I really apreciate your help, reading about UAC from the links you
>> > send,
>> > I found something about a Manifest File that might help
>>
 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wise Registry Cleaner vs AusLogics Registry Defrag vs CCLeaner? Coderedpl Windows Vista Performance & Maintenance 27 01-16-2009 02:28 AM
Web sites blocked, Windows update blocked soundman32 Windows Vista Security 11 10-02-2007 11:22 PM
Vista install blocked by Maxtor in Registry Orionc1 Windows Vista Install & Setup 2 02-10-2007 06:12 PM
Blocked Startup Programs not Blocked cvp Windows Vista Security 0 10-30-2006 04:41 PM
Enable blocked Registry Editor R. Wunderlich Windows XP Security & Administration 0 09-19-2003 07:46 PM