![]() |
#1 |
Guest
Posts: n/a
|
How to set browsers start page?
I want to add checkbox called "Set http://google.com as my homepage" which, if checked, must set users default browsers start page to google.com.
Is it possible? If it`s, how? Thanks. |
![]() |
![]() |
#2 |
Major Dude
|
yep.
add a custom page with a checkbox. (-> see installoptions readme) while installing read the state of the checkbox and call WriteRegStr .... if its checked. use your homepage for the right regkey ![]() hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
![]() |
![]() |
![]() |
#3 |
Guest
Posts: n/a
|
And which regkey it is? For Firefox too? I think firefox uses own profile in in user settings directory.
|
![]() |
![]() |
#4 |
Major Dude
|
i think firefox uses the same regkey as ie by default.
as i sai: for the right key you should search the internet ![]() hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
For Internet Explorer:
HKCU / HKLM "Software\Microsoft\Internet Explorer\Main" "Start Page" Firefox does not store the home page in the registry because it has different profiles under $APPDATA\Mozilla\Firefox\Profiles\[profile name] The file you need to read from is prefs.js, and the line: user_pref("browser.startup.homepage", .... ); To get the default profile you need to read $APPDATA\Mozilla\Firefox\profiles.ini. You'll have to loop through each [Profile#] until Default=1 and you'll have your profile name from Path=... If you want me to put this into a function (sounds like a good idea too) or if you'd like to make it, then get it up on the Wiki. -Stu |
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Mar 2007
Posts: 1
|
sorry to bump this old thread, but I was wondering what is the code for changing firefox homepage? I understood how to implement the internet explorer one by changing the registry key, but not the mozilla firefox.
Whats the code? The wiki page is down at the moment for me, so I can't access it. |
![]() |
![]() |
![]() |
#7 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,508
|
Don't forget about Opera, and possibly K-Meleon and Maxthon
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#8 |
Member
Join Date: Mar 2006
Posts: 69
|
I know this is an old topic, but anyway I belive its stil very relavant.
Does anyone did a function thats ets Firefox home page like "Afrow UK" told to do ? If yes can you post it here or at NSIS wiki ? Thanks. |
![]() |
![]() |
![]() |
#9 |
Junior Member
Join Date: Mar 2007
Posts: 14
|
The registry entry above seems to work fine for IE 6, but it's not working on IE 7.
Anyone have code to include in the installer to set the home page for IE 7? Thanks!! |
![]() |
![]() |
![]() |
#10 |
Junior Member
Join Date: Feb 2010
Posts: 2
|
![]()
Hi, I'd like to be able to get this feature to work with IE and Firefox and combine it with all the software packages I produce.
Can someone give me some info on how this can be accomplished? Thx! |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|