Making Palemoon Portable a default browser

Post your tutorials for using Pale Moon or performing related tasks here.
Note: Not for "how do I...?" Questions!

Moderator: satrow

Forum rules
Tutorials and Howtos should only relate to Pale Moon, and not to third party applications. e.g.: Don't post a Howto for configuring your firewall.
If you have a question how to do something, you should use one of the support boards, not this board. It is meant for people to document and post instructions.
Starchild

Making Palemoon Portable a default browser

Unread post by Starchild » 2014-05-13, 15:13

Introduction
If you're using a portable build of Pale Moon as your primary browsing tool, then this guide is for you!

I always like to use a portable build of Pale Moon because it makes backing up everything so easy, and I can copy contents to a USB drive on-command and be road-ready in minutes with a properly-configured backup utility. So of course when I open a link anywhere I want it to launch Pale Moon portable, but Moonchild had made sure you cannot do this without any fancy tricks, so let's get started. This guide is for Windows systems only

Also, don't do this to somebody else's PC, only your own. I am not liable for any damages you incur performing this on other computers.


Specifying Firefox as default browser
First, find where palemoon-portable.exe is on your primary drive. Keep the full path on hand. Then if you hadn't done so in the past, install the portableapps.com build of Mozilla Firefox. (Yes, you read that right, we're installing Firefox.)

In Firefox, open about:preferences and under Advanced, click the button that says "Make Firefox the default browser" At this point, you can exit and freely uninstall the browser. What making Firefox default did was add in a bunch of FirefoxHTML and FirefoxURL entries in your registry. This is what we needed Firefox to do.

Open regedit.exe, and follow the tree below;

Code: Select all

HKEY_CLASSES_ROOT
├───FirefoxHTML
│   └───shell
│       └───open
│           └───command
└───FirefoxURL
    └───shell
        └───open
            └───command
Under each entry labeled "command", you'll find a string called (Default); Modify each one to reflect the path of palemoon-portable.exe. An example as follows:

Code: Select all

Before: "X:\PortableApps\FirefoxPortable\App\Firefox\firefox.exe" -osint -url "%1"
 After: "X:\PortableApps\PaleMoonPortable\Palemoon-Portable.exe" -osint -url "%1"
That's it! Pale Moon Portable will now be called upon instead of firefox.exe. You can also use this guide to change default Firefox open behavior so it redirects to firefoxportable.exe instead of firefox.exe, provided you have a Firefox user that specified to make Firefox as default, but cannot understand why Firefox opens a newly-minted profile.

Caveats
Of course, doing something that's normally considered stupid elsewhere comes with its fair share of difficulties. Pale Moon will not open on its own. Rather, you''ll get an error specifying that Pale Moon cannot find your profile. That's alright, simply open your browser, then any URL you visit will open under palemoon-portable.exe, with the request forwarded to the browser where you can then see the contents of whatever you clicked on.
Last edited by Starchild on 2014-05-13, 16:33, edited 1 time in total.

CraigPD
Lunatic
Lunatic
Posts: 292
Joined: 2013-01-01, 19:03
Location: Mexico

Re: Making Palemoon Portable a default browser

Unread post by CraigPD » 2014-05-13, 15:38

The tool described in this post is another option that makes appropriate registry changes without installing the portableapps.com build of Mozilla Firefox or manually editing.

Starchild

Re: Making Palemoon Portable a default browser

Unread post by Starchild » 2014-05-13, 16:39

CraigPD wrote:The tool described in this post is another option that makes appropriate registry changes without installing the portableapps.com build of Mozilla Firefox or manually editing.
Thanks for presenting that as an option! It looks much easier to use registerfp and direct it to palemoon-portable instead. But for persons who only want to deal with "Trustworthy" websites, my guide involves one website / service and default Windows utilities.

Nonetheless I'll give it a shot some time in the future.

CraigPD
Lunatic
Lunatic
Posts: 292
Joined: 2013-01-01, 19:03
Location: Mexico

Re: Making Palemoon Portable a default browser

Unread post by CraigPD » 2014-05-13, 17:39

Off-topic:
I consider Microsoft MVP Ramesh Srinivasan on a par with John T. Haller of PortableApps.com in trustworthiness; both approaching MC's level. ;)

Locked