Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Vista » microsoft.public.windows.vista.installation_setup
Thread: Registry blocked by UAC

HTVi
TV Discussion Newsgroups

Registry blocked by UAC
Najash 6/28/2007 8:24:05 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
Re: Registry blocked by UAC
"Kerry Brown" <kerry[ at ]kdbNOSPAMsys-tems.c*a*m> 6/29/2007 3:42:11 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[ at ]discussions.microsoft.com> wrote in message
news:0DDA7D78-1887-425B-BA8E-02EB815635FD[ at ]microsoft.com...
[Quoted Text]
> 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

Re: Registry blocked by UAC
Najash 6/29/2007 5:42:02 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:
[Quoted Text]
> 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.

Re: Registry blocked by UAC
"Andrew McLaren" <andrew[ at ]fakeaddress.com> 6/30/2007 4:32:49 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/WindowsVista/en/library/00d04415-2b2f-422c-b70e-b18ff918c2811033.mspx?mfr=true

It might shed some light on the problem.

Hope this helps a litle bit
Andrew

Re: Registry blocked by UAC
"Kerry Brown" <kerry[ at ]kdbNOSPAMsys-tems.c*a*m> 6/30/2007 3:44:58 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[ at ]discussions.microsoft.com> wrote in message
news:DCDA773C-E58F-42C0-93F5-DA1EC20DB453[ at ]microsoft.com...
[Quoted Text]
> 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.
>

Re: Registry blocked by UAC
Najash 7/3/2007 12:58:03 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
Re: Registry blocked by UAC
"Ronnie Vernon MVP" <rv[ at ]invalid.org> 7/4/2007 2:29:23 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/archive/2006/07/12/Windows-Vista-for-Developers-_1320_-A-New-Series.aspx


--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"Najash" <Najash[ at ]discussions.microsoft.com> wrote in message
news:5E343975-94BB-43CA-9A6C-4DCAB4ABC1BA[ at ]microsoft.com...
[Quoted Text]
> Thx, I really apreciate your help, reading about UAC from the links you
> send,
> I found something about a Manifest File that might help

Re: Registry blocked by UAC
Najash 7/4/2007 9:44:01 PM
Excellent Help, Thanks.

"Ronnie Vernon MVP" wrote:

[Quoted Text]
> 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/archive/2006/07/12/Windows-Vista-for-Developers-_1320_-A-New-Series.aspx
>
>
> --
>
> Ronnie Vernon
> Microsoft MVP
> Windows Shell/User
>
>
> "Najash" <Najash[ at ]discussions.microsoft.com> wrote in message
> news:5E343975-94BB-43CA-9A6C-4DCAB4ABC1BA[ at ]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
>
Re: Registry blocked by UAC
"Ronnie Vernon MVP" <rv[ at ]invalid.org> 7/5/2007 6:12:57 PM
Natash

Your welcome and good luck with your application. :)

--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"Najash" <Najash[ at ]discussions.microsoft.com> wrote in message
news:66FCA321-83CB-453A-B272-7DF7F9BBAA2A[ at ]microsoft.com...
[Quoted Text]
> 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/archive/2006/07/12/Windows-Vista-for-Developers-_1320_-A-New-Series.aspx
>>
>>
>> --
>>
>> Ronnie Vernon
>> Microsoft MVP
>> Windows Shell/User
>>
>>
>> "Najash" <Najash[ at ]discussions.microsoft.com> wrote in message
>> news:5E343975-94BB-43CA-9A6C-4DCAB4ABC1BA[ at ]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
>>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen