PC Review


Reply
Thread Tools Rate Thread

Change IE start page from my program - how?

 
 
Chris Shearer Cooper
Guest
Posts: n/a
 
      15th Dec 2008
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
 
Reply With Quote
 
 
 
 
Mick Murphy
Guest
Posts: n/a
 
      16th Dec 2008
What is this whiz-bang, secretive program's name?
--
Mad Mike


"Chris Shearer Cooper" wrote:

> 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
>

 
Reply With Quote
 
Chris Shearer Cooper
Guest
Posts: n/a
 
      16th Dec 2008
Mike/Mick -

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

Chris
 
Reply With Quote
 
Inside The Registry
Guest
Posts: n/a
 
      28th Dec 2008

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" <(E-Mail Removed)> wrote in message
news:e359744b-9438-43ec-a351-(E-Mail Removed)...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change IE start page from my program - how? Chris Shearer Cooper Windows XP Security 3 28th Dec 2008 10:38 AM
Start a Program from an ASP Page? Charles A. Lackman Microsoft ASP .NET 5 15th Apr 2005 11:03 PM
How to change program start up James Microsoft Windows 2000 4 11th Feb 2004 03:51 AM
Start/Program Files expand setting...how do I change this? =?Utf-8?B?SmFuaWNl?= Windows XP Customization 11 23rd Jan 2004 04:06 AM
Re: program Embedded my start page Nicholas Windows XP Basics 0 28th Jul 2003 12:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:19 AM.