2

Situation:
1. Need to Set the default browser to IE via cmd(problem)
2. Need to do a Citrix login via IE(amounts to loading a url) because it wont run in Google Chrome
3. then set default browser to Chrome

Environment:
Windows XP, no admin privileges
no admin privileges 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 Chrome by using Portable Chrome's command 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, a la: http://peter.sh/experiments/chromium-command-line-switches/

4
  • 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, 2012 at 15:06
  • this may give you clues to where to look: superuser.com/questions/287313/…
    – SeanC
    Nov 13, 2012 at 21:17
  • Probably portable Internet Explorer is solution. But need add code to script for attach portable IE process. But i dont have idea what citrix SSO is it and dont want know it:) Aug 17, 2014 at 8:14
  • Does iexplore have to be the default browser? Isn't it possible to just run "start iexplore http: //citrix/login/page/here"
    – Berend
    Nov 5, 2014 at 11:43

3 Answers 3

1

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.

0

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: https://stackoverflow.com/questions/4222367/windows-registry-key-for-check-whether-ie-is-the-default-browser

3
  • @Bugmage as i said, its in the registry: from command line you can do: commandwindows.com/reg.htm
    – Inbar Rose
    Nov 8, 2012 at 16:18
  • as long as python is installed, yes.
    – Inbar Rose
    Nov 8, 2012 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, 2012 at 16:31
0

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
1
  • 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, 2013 at 4:30

You must log in to answer this question.