Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change IE start page from my program - how?

0 views
Skip to first unread message

Chris Shearer Cooper

unread,
Dec 15, 2008, 1:11:30 PM12/15/08
to
During installation, my program asks the user if they want to change
their browser start page, but even if they say "Yes" I'm unable to
modify the registry. If I open HKEY_CURRENT_USER\Software\Microsoft
\Internet Explorer\Main with KEY_READ and KEY_WRITE permissions and
then try to modify the "Start Page", it returns error 5
(ERROR_ACCESS_DENIED) and since I get an obnoxious error message when
I try to modify the item directly (in regedt32), I believe my code is
doing the right thing and it's some new Windows security thing.

What does my program need to do, in order to convince Windows (both XP
and Vista) that this operation is OK? A manifest with some magic
value inside? Code-signing the app?

Yes, I realize it is very likely that the anti-virus program will then
pop up and warn the user that this is happening, that's expected and
acceptable.

Thanks in advance,
Chris

Mick Murphy

unread,
Dec 16, 2008, 4:50:04 AM12/16/08
to
What is this whiz-bang, secretive program's name?
--
Mad Mike

Chris Shearer Cooper

unread,
Dec 16, 2008, 8:32:11 AM12/16/08
to
Mike/Mick -

I've sent you the company information in an email.

Chris

Inside The Registry

unread,
Dec 28, 2008, 5:38:05 AM12/28/08
to

Hi Chris,

I suspect your not opening the key with enough permissions such as the
ability to manipulate values...

Try opening the key with full rights, KEY_ALL_ACCESS if i'm not mistaken and
see if that helps - it's a HKCU key so you're safe to do that...

As you saw, error code 5 is access denied and given this is a HKCU key /
value you really shouldn't have a problem. There is nothing I know of that
puts such security methods to prevent this -

Cheers,
Jon

The Windows Registry Information Database - http://www.insidetheregistry.com

---


"Chris Shearer Cooper" <chris.shea...@gmail.com> wrote in message
news:e359744b-9438-43ec...@s9g2000prg.googlegroups.com...

0 new messages