Popman (smal email client) has support for a "bigger" email client like Thunderbird. The path to that app is stored in an ini file as EmailClient=C:\PortableApps\ThunderbirdPortable\ThunderbirdPortable.exe.
Adding support for portability is easy (replace the drive letter). But adding support for path portability is hard because %PAL:PartialPath% doesnt work as it isnt the apps path that is needed but the path to Thunderbird Portable.
Does anyone know a fix for this?
Maybe it can be done with CustomCode but I didnt find a way to get it done. Or maybe its too difficult and its not worth it.
There's a few ways to do it. The easiest is to add a filewrite (replace) for %PAL:PortableAppsDir%.
You could also hard-code an environment variable for Thunderbird Portable, but as this particular setting is user-configurable, I wouldn't recommend it.
[EDIT]
Here's the three ways I would suggest doing it. Note that the second won't work if we get any more email clients released.
1. FileWrite replacing PAL:PortableAppsDir: http://pastebin.com/QnJRvGLr
2. Hard-coding Thunderbird Portable into the launcher: http://pastebin.com/uvP55rnF
3. User-configurable option: launcher.ini and Custom.nsh and add "EmailClient=" to Other\Source\PopManPortable.ini
PAL:PortableAppsDir is an absolute path, not a drive-relative path.
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
so it should be
#
[Environment]
#
ThunderbirdPortable=%PAL:PortableAppsDir%\ThunderbirdPortable\ThunderbirdPortable.exe,
right?
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
It's still not a proper solution. And the definition of an extra environment variable for it is entirely unnecessary. PAL 2.2 will be able to help significantly with this sort of a replacement case.
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
I think I'll go with the first option as that will allow users to set a local Thunderbird copy and it will work too.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
You're welcome, I'm glad to have been able to help.