Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Situation:
1. Need to Set the defualt browser to IE via cmd(problem)
2. Need to do a citrix login via IE(amounts to loading a url) beause it wont run in google chrome
3. then set default browser to chrome

Environment:
Windows XP, no admin priv's
no admin priv's mean I can't touch registry

Basic Steps I'm Doing:
In a bat file:
1.Set default browser to IE
2.run a citrix SSO login via IE (not compatible with chrome)
3.Set default browser to Chrome
4.kill IE
5.live long and prosper

So i have it all running except "Set default browser to IE"

I can set the default browser to chome by using portable chrome's cmd line argument --make-default-browser

but I can't undo that process.

If I launch IE, it pops up that 'make ie default browser' window which stops the SSO process.

So If I can disable that check via bat file, that would also work for me.

Things i've tried that didn't work: shmgrate.exe OCInstallReinstallIE

We are using IE8

Maybe someone can find a chrome switch that undoes default browser: http://peter.sh/experiments/chromium-command-line-switches/

thanks for the help guy's

share|improve this question

migrated from stackoverflow.com Nov 9 '12 at 16:20

This question came from our site for professional and enthusiast programmers.

    
what have you tried ? –  Inbar Rose Nov 8 '12 at 14:42
    
shmgrate.exe OCInstallReinstallIE- which didn't work maybe because its IE8 or I don't have priv's to change anything in internet options, but google chrome does somehow. If I can find a way to uninstall chrome as deafult using a chome swtich that might no it but can't find one peter.sh/experiments/chromium-command-line-switches –  Bugmage Nov 8 '12 at 15:06
    
this may give you clues to where to look: superuser.com/questions/287313/… –  Sean Cheshire Nov 13 '12 at 21:17
add comment

3 Answers

you can disable the window.

screenshot:

internet options > programs > tell me if IE is not default browser option

which means this option is stored in the registry. im not going to discuss modifying registry data here, as it is dangerous. but you can do a quick search to find out how.

you can use reg.

there is another stackoverflow post that can answer your question: Windows Registry key for "check whether IE is the default browser"?

share|improve this answer
    
@Bugmage as i said, its in the registry: from command line you can do: commandwindows.com/reg.htm –  Inbar Rose Nov 8 '12 at 16:18
    
as long as python is installed, yes. –  Inbar Rose Nov 8 '12 at 16:21
    
ok so its 100% reg only solution for this then? Ill relook into it, as I was denied launching .reg files, but I might be able to take a reg snapshot, and code that into a bat file. –  Bugmage Nov 8 '12 at 16:31
add comment

Yes, you can, by using the reg command in Windows as explained in this post.

Specifically you can add this to your bat file:

REG ADD HKEY_CLASSES_ROOT\htmlfile\shell\open\command /v (Default)    /t REG_SZ  /d  "C:\Program Files (x86)\Internet Explorer\iexplore.exe" -nohome
share|improve this answer
1  
That only associates it with .html files. What about .htm files? What about .url files? What about http addresses? This answer demonstrates the problem with doing things manually: it can be incomplete and you can miss a lot. –  Synetech Dec 9 '13 at 4:30
add comment

Have you considered using one of the following:

All of these are chrome extension that allow IE compatibility mode. You can set up specific addresses or domains (also using wildcards) to trigger compatibility mode.

This would allow you to stick to only one browser, avoid fiddling the registry and save you from potential problems with unauthorized access.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.