I was working on making FrostWire Portable but the launcher don't work. I read the instructions (on this site) on making java apps portable, but the app won't load. The only thing it does is show the splash screen.
New: Run-Command (Dec 2, 2024), Platform 29.5.3 (Jun 27, 2024)
1,100+ portable packages, 1.1 billion downloads
No Ads Nov/Dec!, Please donate today
If you are after some help, you will have to provide us with a little more info.
For starters, what have you got so far in your App\Appinfo\Launcher\FrostWirePortable.ini?
Here is the file's code
In
[RegistryKeys]
, useHKCU
instead ofHKEY_CURRENT_USER.
.Also check if the app does need any other command-line parameters.
Previously known as kAlug.
As well as what kAlug said:
1) You should use %PAL:LastDrive:DoubleBackslash% instead of %PAL:LastDrive%\\ and %PAL:Drive:DoubleBackslash% instead of %PAL:Drive%\\
2) You are doing a find and replace on FrostWire.reg, but in your RegistryKeys section you are writing to FrostWire_portable.reg
Edit:
3) According to the documentation on RegistryValueWrite:
Since you are using it to write an absolute path it will contain a colon, so you will need to explicitly set the type of the key.
There's nothing wrong with the
HKEY_CURRENT_USER
; it will work;HKCU
is merely the current convention.You should not use
%PAL:LastDrive:DoubleBackslash%
instead of%PAL:LastDrive%\\
. PAL:LastDrive:DoubleBackslash won't exist if I correctly recall how I implemented it.You should change the FrostWire_portable in [RegistryKeys] to FrostWire (or change the other the other way).
About the registry key type, you will need to prepend
REG_SZ:
at present to get it to work.Did you intend to deal with HKCU\Software\FrostWire, or HKCU\Software\JavaSoft\Prefs\com\frostwire\frostwire? The latter, perhaps?
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
Ignore my comment about the DoubleBackslash thing, that's what I get for not checking the manual first.
The DoubleBackslash variable modifier is for directory variables, not drive variables.
Why not start with the existing portabe FrostWire https://portableapps.com/node/11822 and update it's launcher if necessary? Or get the author of it to update it.
1. Install the existing portable version on your PA flash drive.
in my case F:\PortableApps\FrostWirePortable\
2. Install the latest 5.2.11 FrostWire on a PC
in my system C:\Program Files (x86)\FrostWire 5\
3. Copy the files from the PC installation
C:\Program Files (x86)\FrostWire 5\
over the files in the portable installation
F:\PortableApps\FrostWirePortable\App\frostwire
It launches and runs fine. I don't have a clean PC without a FrostWire install at the moment to check for registry changes or left over files but it seems to run well.
I'd suggest updating the existing portable version or getting it's author to do so unless you really want to write a new launcher for it yourself. In any case the existing launcher may be a good reference starting point.
Just a thought...