Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista security

Vista - UAC and access to HKCR (Registry)

Reply
 
Old 01-04-2007   #1 (permalink)
Michael Schwarz


 
 

UAC and access to HKCR (Registry)

Hi,

I have following problem: A simple file copy and COM registration tool
displays a dialog with "An unidentified program wants access to your
computer". I know that there are restricted user rights for administrators,
too, but is there any way to get rid of this messages (without having to
disable UAC)? I'm searching for something like using a certificate for this
application and put the certificate in the trusted publisher store. Using
makecert to test this doesn't work, maybe I did it wrong, is there any
step-by-step help?

Thanks for your help!

--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional (ASP/ASP.NET)
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.ajaxpro.info/






My System SpecsSystem Spec
Old 01-04-2007   #2 (permalink)
Jimmy Brush


 
 

Re: UAC and access to HKCR (Registry)

Hello,

Any access to administrator-only areas such as HKLM will have to be done
from an elevated process. There is no way to specify that only that
particular application can elevate without prompting. This is to prevent
malicious applications from utilizing elevate-without-prompting applications
to elevate their own privileges.

Signing the file with a certificate may alter the appearance of the UAC
prompt (to make it appear less threatening), but it will not make the prompt
go away.



- JB
Microsoft MVP - Windows Shell/User

Windows Vista Support Faq
http://www.jimmah.com/vista/

My System SpecsSystem Spec
Old 01-04-2007   #3 (permalink)
Michael Schwarz


 
 

Re: UAC and access to HKCR (Registry)

Hi Jimmy,

thanks for your reply.

> Signing the file with a certificate may alter the appearance of the UAC
> prompt (to make it appear less threatening), but it will not make the
> prompt go away.


I tried to put a MSI file in the Active Directory, and this MSI file could
write to the HKCR. So, is this maybe the solution to put everything in a MSI
file instead?

Michael


My System SpecsSystem Spec
Old 01-04-2007   #4 (permalink)
Jesper


 
 

Re: UAC and access to HKCR (Registry)

MSI files being plumbed down from AD are installed by the Windows Installer
service (I think) which is already running elevated. That is why those do not
require any kind of interaction.

If you want to you can just mark your entire installer to elevate using a
manifest file. That way you get the one prompt when you launch the installer
and after that it all runs elevated.

"Michael Schwarz" wrote:

> Hi Jimmy,
>
> thanks for your reply.
>
> > Signing the file with a certificate may alter the appearance of the UAC
> > prompt (to make it appear less threatening), but it will not make the
> > prompt go away.

>
> I tried to put a MSI file in the Active Directory, and this MSI file could
> write to the HKCR. So, is this maybe the solution to put everything in a MSI
> file instead?
>
> Michael
>
>
>

My System SpecsSystem Spec
Old 01-04-2007   #5 (permalink)
Alun Jones


 
 

Re: UAC and access to HKCR (Registry)

"Jesper" <Jesper@discussions.microsoft.com> wrote in message
news:1AFCF951-93F4-4B4C-812E-C9EA07DF525C@microsoft.com...
> MSI files being plumbed down from AD are installed by the Windows
> Installer
> service (I think) which is already running elevated. That is why those do
> not
> require any kind of interaction.


Also, services don't get UAC - because a service generally has no user
interaction (which is a good thing), it will either have the right
privilege, or it won't have the right privilege to do a particular
operation.

Alun.
~~~~


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to access a registry entry wo no access rights Vista security
Access to Registry Windows Updates
When standard users access Vista registry remotely, Access Denied Vista account administration
Registry Access Vista General
WMI access to registry PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46