You are here

Firefox Portable should not set as the Windows default Browser

12 posts / 0 new
Last post
tapsklaps
Offline
Last seen: 6 years 1 week ago
Developer
Joined: 2010-10-17 08:11
Firefox Portable should not set as the Windows default Browser

Is it right, that Firefox Portable should not set as the Windows default browser, because this settings created a registry key, which won't removed after closing of Firefox Portable?

Aluísio A. S. G.
Offline
Last seen: 8 years 3 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Depends

You can set FirefoxPortable.exe to be your default browser in your own computer(s). Just don't use the internal Firefox's option do to it.
You can also portably set file associations using tools like Portable File Associator (somewhere in these forums).

Previously known as kAlug.

tapsklaps
Offline
Last seen: 6 years 1 week ago
Developer
Joined: 2010-10-17 08:11
some unexplained questions

Though I have used the internal Firefox options, I can't found a new created registry key and no settings, which are stored in the folder C:\Documents and settings\username\Application Data\Mozilla or any other folder.

But since no one can know, what exactly he should not alter in the settings of Firefox, it would be better if it would not be possible to change these settings. These settings should then be disabled. These settings should then be disabled (with no possibility to enable them).

Aluísio A. S. G.
Offline
Last seen: 8 years 3 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Just don't run it

There are some registry keys that make it the default browser (they will be created/modified by setting any default browser), and there's the problem that using the internal Firefox options will set firefox.exe as default browser, thereby passing thru the launcher. That's the only problem.

Previously known as kAlug.

tapsklaps
Offline
Last seen: 6 years 1 week ago
Developer
Joined: 2010-10-17 08:11
Entries in HKCR\.htm and HKCR\.html

Now I found 2 entries in the registry keys HKCR\.htm and HKCR\.html. The content is:

Name: Standard, Type: REG_SZ, Value: FirefoxHTML

Therefore it's actually not useful to set Firefox as the default browser via the Firefox options.

depp.jones
Offline
Last seen: 21 hours 2 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
This Value points to the key

This Value points to the key FirefoxHTML (in CLASSES_ROOT). If you look that up, you find a key shell\open\command. That contains the commandline to open htm- and html-files. I would expect that pointing to firefox.exe in App\Firefox\ of your portable install running it not in portable mode then. You should get a profile in your local AppData folder (User\Anwendungsdaten\Mozilla\Firefox\Profiles\xxxxx on a german XP where xxxxx is a cryptic name), I suppose, but I'm not shure (I will not test it Wink ).

tapsklaps
Offline
Last seen: 6 years 1 week ago
Developer
Joined: 2010-10-17 08:11
your observations are nearly completely correct

In fact, I've found the registry key HKCR\FirefoxHTML\shell\open\command. In this key exist the following entry:

"D:\portable Programme(neu)\PortableApps\FirefoxPortable\App\Firefox\firefox.exe" -requestPending -osint -url "%1"

Only your last sentence was not appropriate. After the start of Firefox I found a folder C:\Documents and Settings\username\Application Data\Mozilla. The folder Mozilla contains 2 subfolders called "Extensions" (which was empty in my case) and "Firefox" (which contains once again a subfolder called "Crash Reports"). The subfolder "Crash Reports" contains a file. After closing of Firefox the complete folder "Mozilla" was deleted.

But the above key has been retained and this is incompatible with the portability.

depp.jones
Offline
Last seen: 21 hours 2 min ago
DeveloperTranslator
Joined: 2010-06-05 17:19
Did you start

Did you start FirefoxPortable.exe or did you open a html-file after making it the default browser (running firefox.exe instead)?

tapsklaps
Offline
Last seen: 6 years 1 week ago
Developer
Joined: 2010-10-17 08:11
only one variant is possible

Of course I must first set Firefox as the default browser. Afterwards I double clicked on a html-file.

But I would again point to an important issue. Certainly exists the possibility, the PortableApps.com Platform to configure in such a way, that Firefox is the default browser. After closing the PortableApps.com Platform the default browser of the guest PC returns back to its original value.

John T. Haller
John T. Haller's picture
Offline
Last seen: 3 hours 2 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Add-Ons

There are currently two add-ons which enable this eXpresso and Portable File Associator. Both are available in the forums. This feature will be built-in soon.

Sometimes, the impossible can become possible, if you're awesome!

tapsklaps
Offline
Last seen: 6 years 1 week ago
Developer
Joined: 2010-10-17 08:11
Nice to hear that

Sorry I forgot these 2 Add-ons. But I'm looking forward to the coming feature, which will be built-in.

3D1T0R
3D1T0R's picture
Offline
Last seen: 3 years 3 months ago
Developer
Joined: 2006-12-29 23:48
Make the launcher remove/fix it?

When I rewrote one of the PortableApps that I've been working on (I've completed & rewritten it several times, and got permission from the publisher once, but haven't got up the nerve to actually post it yet [hopefully you can expect it kind-of soon-ish … maybe Wink ]) I added a bit of custom code to check whether the user set the program to Start Automatically With Windows (which is not portable) upon closing the app, and remove it with a warning MessageBox to the user, a similar example follows.

Example App$AppNamePortable should never be set to start with Windows,
If you want/need this functionality please install the standard (non-portable) version of $AppName from http://EXAMPLE.TLD.
The Launcher will unset it for you.

So perhaps the Launcher for FireFoxPortable could be given something similar in regards to being set as the Default, and you could even use a Yes/No (or similar) MessageBox to choose whether the Default Browser gets changed to run FirefoxPortable.exe instead of the internal firefox.exe, or changed back to what it was before FireFoxPortable was started.

Note: It's not a lot of code to add something like this to a PAL based launcher (hence I did it when I rewrote TbSP to use PAL ;)), but it could possibly be quite an ordeal to add it to the current FFP launcher, so I think this'll probably get put on (one of) the (many) back burner(s) even if it's a particularly well liked idea.

~3D1T0R

Log in or register to post comments