I am a bit confused now that I read some discussion in the net and here in the forums about that topic, and viewed and changed some registry keys.
I found on stackoverflow that in HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications\ (registry) and the there called registry keys the contents of the Default Programs lists is defined. So I concluded that when I have difficulties to make a PortableApp a default because it will not appear in the open with list even if I browse the .exe it's because I need to change the \command\ keys in here and let Windows Default Programs list fix the rest. This is true for Windows 7 at least.
I am currently testing if that works for Firefox Portable. I would prefer that manual method from any .exe that does the same job for me because I cannot download or transfer an exe to a system I administer in a foreign domain just for the purpose of changing defaults, but I often can edit the registry. And I trust a script (.reg, .ps1) I can edit more than a compiled .exe.
I sometimes read ...\PortableApps\FirefoxPortable\App\Firefox64\firefox.exe and sometimes ...\PortableApps\FirefoxPortable\FirefoxPortable.exe as .exe for entries in HKCU\Software\Classes\ resp. HLKM\Software\RegisteredApplications\. ...\PortableApps\FirefoxPortable\FirefoxPortable.exe would have been my first guess because I understood that this invokes the portability magic: Either have the program use an .ini for the settings if it is designed to give the user a choice where to store the settings, or start the program.exe in an environment where it can send and receive registry communcation by the ProgramPortable.exe wrapper while that wrapper in fact translates the registry calls to ini read and write commands.
I learned though that e.g. Irfan view can only be associated to .jpg and Co. with ...\PortableApps\IrfanViewPortable\App\IrfanView\i_view32.exe as the command to run, while, on the other hand, Firefox loads another profile when it is run via ...\PortableApps\FirefoxPortable\App\Firefox64\firefox.exe, different from the one that is loaded by calling ...\PortableApps\FirefoxPortable\FirefoxPortable.exe, so I use FirefoxPortable.exe paths everywhere. Maybe the answer is: Depends?
Now my questions:
* According to your experience, is my assumption right that editing HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications\ and using the GUI to change the default works best?
* Shouldn't I use the ...\PortableApps\AppPortable\AppPortable.exe to register file extension associations or registered applications? At least where that works.
* Shouldn't it be standard in PortableApps apps that ...\PortableApps\AppPortable\AppPortable.exe passes every parameter given by user or system (filename, switches) to the actually called .exe?
I've read your questions, but I personally won't have time to respond to them in enough detail until Monday. In the meantime, someone else may be able to tell you what you need to know.
Hello all,
@Cord: Thanks for reading it anyway
I've tested a bit more.
I ensured the paths in the HKLM\Software\Clients\ registry branch are all pointing to ...\FirefoxPortable.exe and not ...\firefox.exe. I think running ...\FirefoxPortable.exe /SetAsDefaultAppGlobal does the same job (passing the parameter to helper.exe). Then ran Default Programs again and made Firefox the default for all its capabilities, i.e., .htm[l] and Co. and the http[s] protocols, as defined in HKLM\Software\Clients\.
Now when I closed all Firefox instances and click a link in a mail in Thunderbird, the portable Firefox runs, but bypassing FirefoxPortable.exe. When I started FirefoxPortable.exe before, Windows opens the link requested by TB in my already opened session (as I would expect), and since FirefoxPortable.exe does its job of virtualizing registry for firefox.exe, cleaning up the registry and sync'ing with prefs.js after shutting down, and what it does to portabilize FF, this does not break portability, right?
So I change my questions / theses:
True?
So I think in the case of Irfan using the convenient Windows Default Programs is OK. What do you think?
Not WhatsApp: mupan@swissjabber.org