Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Default browser

- - - - -

  • Please log in to reply
25 replies to this topic

#1
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
Hi,

how could I get rid of IE as default web browser? I use opera and would like it to be de default.

I think there's an update package wich let you "uninstall" (well, just remove the shortcuts... :)) of outlook and ie. Is there a way to tell windows to do it unattended?

tanks


How to remove advertisement from MSFN

#2
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • Joined 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag
open opera
go to preferences
go to default application
under there check "check if opera is the default browser"
and if u want html/ htm etc to open with opera
go to the same place and check the htm etc....

also some apps open ie so go to ie properties and uncheck "check if ie is the default browser" so it doesn't prompt u



#3
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
yeah I know this, but I want it to be unattended after xp installation... I'l try to regmon the manual action to see...

#4
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • Joined 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag
ow sorry just a sec I know it..



#5
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
thanks m8 :)

#6
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • Joined 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag
:) though I couldn't find it
but regshot found some stuff
try this maybe?

I hope it works

1st values of each 2 line is the original the 2nd ones are the new ones
so 1st ones ie 2nd ones opera...

edit: attachments removed to save space...

Edited by XtremeMaC, 28 January 2004 - 05:13 PM.




#7
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
good thanks :)

I'll do a .js will import those with the good variables (%programfiles% and others...)

#8
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
Here are the keys for the browser witch appears in the start menu:

[HKEY_CURRENT_USER\Software\Clients\StartMenuInternet]
@="Opera.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe]
@="Opera"
"LocalizedString"="Opera"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe\DefaultIcon]
@="D:\\Opera7\\Opera.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe\shell\open\command]
@="D:\\Opera7\\Opera.exe"


#9
gosh

gosh

    gosh 2.0

  • Patrons
  • 2,347 posts
  • Joined 03-October 03
  • OS:none specified
  • Country: Country Flag
Why not just put ieaccess=off in the unattend file then install opera? You could also run the command in ieaccess.inf to make ie not the default browser.

-gosh

#10
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • Joined 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag
gosh = inf man :rolleyes:
yep! why not :)



#11
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03

gosh = inf man :D

hehe :)

I'm the .js + RunOnceEx man :rolleyes:

Didn't know about the "ieaccess=off" What does it do? Disable ie? uninstall it? prevent from installing it? just hiding it?

You could also run the command in ieaccess.inf to make ie not the default browser.

"run" the command in ieaccess.inf? what do you mean?

#12
gosh

gosh

    gosh 2.0

  • Patrons
  • 2,347 posts
  • Joined 03-October 03
  • OS:none specified
  • Country: Country Flag
Open ieaccess.inf and you should be able to figure it out, it only has 2 commands.

-gosh

#13
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
Can't figure it out...

ieaccess.inf:
[Version]
Signature= "$Windows NT$"
DriverVer=07/01/2001,5.1.2600.1106

[Optional Components]
IEAccess

[IEAccess]
OptionDesc   = "%IEAccess_DESC%"
Tip          = "%IEAccess_Tip%"

IconIndex    = *, ..\xpsp1res.dll, 200

InstallType  = 10   ; Typical, Custom
Modes        = 0,1,2,3
Uninstall    = UninstallIE
Run          = ShowIE

[ShowIE]
Commandline="%11%\shmgrate.exe OCInstallShowIE"
TickCount=500

[HideIE]
Commandline="%11%\shmgrate.exe OCInstallHideIE"
TickCount=500

[UninstallIE]
DelFiles=DelNone
Run=HideIE

[DelNone]

[DestinationDirs]
DefaultDestination=11


































[Strings]

IEAccess_DESC="Internet Explorer"
IEAccess_Tip="Ajoute ou supprime l'accès à Internet Explorer à partir du menu Démarrer et du Bureau"

What should I edit so that ie is just hidden???

#14
gosh

gosh

    gosh 2.0

  • Patrons
  • 2,347 posts
  • Joined 03-October 03
  • OS:none specified
  • Country: Country Flag
Just run windows\inf\shmgrate.exe OCInstallHideIE

-gosh

#15
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
ok thanks.


I didn't had the this hotfixe so I couldnt find shmgrate.

No it should be ok.

thanks :)

#16
devil270975

devil270975

    Advanced Member

  • Member
  • PipPipPip
  • 368 posts
  • Joined 31-July 03

gosh = inf man :D

hehe :rolleyes:

I'm the .js + RunOnceEx man :D

i think you will find brent24 is the .js man and Gosh, DaveXP and Myself are the RunOnceEx(Windows Update) Men :)

#17
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
no no I'm am the js man!! hehe :)

I must admit that I love WSH. It's everything I wanted from batch file with an elegant look :rolleyes: I also find JScript/JavaScript nice since the syntaxt look pretty much like Java or C++.

I'm heading to the end of my CD creation (what will I do when its finihed?? :D ) Any suggestion to what I could add?? hehe :D

What do you mean "RunOnceEx (Windows Update)" ? How do you link both?

#18
devil270975

devil270975

    Advanced Member

  • Member
  • PipPipPip
  • 368 posts
  • Joined 31-July 03
if you truly were the runonceex man you would know. if you dont add a title to the main runonceex key the default title is windows update do you remember seeing this on win98 after downloading updates???? well here it is again..lol...

Windows Update Pic

#19
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03
hehe no I can't remember... I'm trying to forget those dark ages...:)

And I'm using my own title :
Shell.RegWrite(RunOnceEx + "\\Title", "Installation personnalisée de Windows XP Professionnel", "REG_SZ");
from a js file imported by commandline.txt :rolleyes:

#20
big_gie

big_gie

    Senior Member

  • Member
  • PipPipPipPip
  • 617 posts
  • Joined 27-July 03

Just run windows\inf\shmgrate.exe OCInstallHideIE

-gosh

Will this hide ie for everyone or just the current user?

I'm running it at the RunOnceEx stage, but maybe I should move it to 13Minutes?

#21
devil270975

devil270975

    Advanced Member

  • Member
  • PipPipPip
  • 368 posts
  • Joined 31-July 03
aren't we a clever little boy, reg manipulation is easy no matter what language you use, my 5 year old daughter could do that. try writing a script like this.

UserSID.vbs
Option Explicit

' this part of the code gets the current username
Dim objNet
dim sName
On Error Resume Next 'In case we fail to create object then display our custom error
Set objNet = CreateObject("WScript.NetWork") 
If  Err.Number <> 0 Then                
  WScript.Echo "(Error: " & Err.Number & "), Description: " & _
 	 Err.Description
End if
	
sName = objNet.UserName
	
Set objNet = Nothing

'this part of the code gets the sid of the current user
Dim objWbem
Dim objRegistry
Dim objSID
Dim arrRegKeys
Dim objReg
Dim strKey
Dim strRtn
Dim strCmd
Dim lngRtn
Const HKEY_USERS = &H80000003
On Error Resume Next

Err.Clear
If WScript.Arguments.Count = 0 Then
	Set objWbem = GetObject("winmgmts:")
	If Err.Number <> 0 Then
  WScript.Echo "Error retrieving top-level WMI " & _ 
   	 "object for local server"
  WScript.Echo "(Error: " & Err.Number & "), Description: " & _
 	 Err.Description 
  WScript.Quit(1)
	End If
	Set objRegistry = GetObject("winmgmts:\root\default:StdRegProv")
	If Err.Number <> 0 Then
  WScript.Echo "Error getting the Registry Provider " & _
 	 "object for local server" 
  WScript.Echo "(Error: " & Err.Number & "), Description: " & _
 	 Err.Description 
  WScript.Quit(2)
	End If	
Else
	strCmd = WScript.Arguments(0)
	Set objWbem = GetObject("winmgmts:\\" & strCmd)
	If Err.Number <> 0 Then
  WScript.Echo "Error retrieving top-level WMI object " & _
 	 "for the computer, " & strCmd
  WScript.Echo "(Error: " & Err.Number & "), Description: " & _
 	 Err.Description 
  WScript.Quit(1)
	End If	
	Set objRegistry = GetObject("winmgmts:\\" & _
  strCmd & "\root\default:StdRegProv")
	If Err.Number <> 0 Then
  WScript.Echo "Error getting the Registry Provider " & _
 	 "object for the computer, " & strCmd 
  WScript.Echo "(Error: " & Err.Number & "), Description: " & _
 	 Err.Description 
  WScript.Quit(2)
	End If	
End If

lngRtn = objRegistry.EnumKey(HKEY_USERS, "", arrRegKeys) 

Set objReg = WScript.CreateObject("WScript.Shell")
CONST regkey = "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Environment"
If lngRtn = 0 Then
	For Each strKey In arrRegKeys
  If UCase(strKey) = ".DEFAULT" Or _
 	 UCase(Right(strKey, 8)) = "_CLASSES" Then
 	 ' Do Nothing
  Else
 	 Set objSID = objWbem.Get("Win32_SID.SID='" & _
    strKey & "'")
 	 If objSid.AccountName = sName Then objReg.RegWrite regkey & "\" & sName & "SID", strkey, "REG_SZ"
  End If
	Next
Else
	WScript.Echo "Error enumerating the Registry keys " & _
  "under HKEY_USERS"
	WScript.Echo Err.Number & " – " & Err.Description
End If

easy peasy pudding and pie....im going now, so farewell and goodbye

#22
brent24

brent24

    Script kiddie

  • Member
  • Pip
  • 97 posts
  • Joined 14-December 03

i think you will find brent24 is the .js man

-devil270975


Thanks for the kudos devil. If you do it for a living, you kinda get to know it pretty well.

I would have included a snippet of my latest completed project (a total re-write of iceman's vbs application selector cross-polinated with Whimsy's XP Post-Install Wizard, fully controlled by only a .ini file) but over 1000 lines of code might be too much for a post :)
They call me ... [root].

#23
devil270975

devil270975

    Advanced Member

  • Member
  • PipPipPip
  • 368 posts
  • Joined 31-July 03
just a tad too much, i got a roasting for my snippet i wanted to write a cmd script to do everything automatically so i didnt have to do anything and it had to be as long as possible My Rather Long Script

#24
brent24

brent24

    Script kiddie

  • Member
  • Pip
  • 97 posts
  • Joined 14-December 03
That musta been fun. How did your eyes feels when it was done :)
They call me ... [root].

#25
devil270975

devil270975

    Advanced Member

  • Member
  • PipPipPip
  • 368 posts
  • Joined 31-July 03
tired, and my wrists ached, they havn't ached that much since i was 14...lol...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users