How come we don't hook up portable to work normally with the built in profile manager and profiles.ini? Why don't we also update the userApplicationDir?
These were the reason why I needed to detect if its portable. There really shouldn't be any need to test if portable as it should just be Firefox.
Profiles.ini is designed for local installs of Firefox only. It's never even created by the portable version. userApplicationDir, as used within Firefox, is determined via a Windows API call and can not be intercepted without hooking some processes which we don't get involved in.
Sometimes, the impossible can become possible, if you're awesome!