Is portable Java supported yet? I followed the installation instructions and Java seems to be "working" but only from C:\Program Files\Java. The javasettings_Windows_x86.xml is created but OpenOfficePortable.exe doesn't seem to care about its contents. This situation is not truly portable if I use the USB drive on a computer with an older Java installed. Of course I can switch to \CommonFiles\Java but must I repeat this every time I start OpenOffice?
I also found the post by Cheffe at https://portableapps.com/node/3235 but couldn't quite follow what he meant by "Rebuild the modified OpenOfficePortable.nsi". I am thinking he means "rebuild with"?? But to make a new install.exe is a daunting step for someone like me who has never made even one. The .nsi is interesting, though, and Cheffe's post helped me figure out some of what is going on.
Anyway, what I would like is for OpenOfficePortable.exe to:
- PRESERVE the javasettings_Windows_x86.xml (not delete and generate).
- Prefer the CommonFiles\Java location over C:\Program Files\Java.
After that, I can make it completely portable with a .bat, like I have done with other apps. For example:
rem ... other code precedes rem Lynx is a Windows executable rem gawk is one line in the .bat if %usb_tools_instance%==1 ( echo Substitute references to current drive in lynx config file pushd "%HOME%\Lynx" if exist lynx_cfg_n ( del lynx_cfg_n ) gawk -- "{gsub(/localhost\/[a-zA-Z][:]\//,(\"localhost/\" mydrv \"/\"),$0) ; print $0}" mydrv=%USB_TOOLS_DRIVE% lynx.cfg > lynx_cfg_n if exist lynx_cfg_n ( del lynx.cfg ren lynx_cfg_n lynx.cfg echo OK Lynx config changed to %USB_TOOLS_DRIVE% ) else ( echo Warning -- Lynx config not changed to %USB_TOOLS_DRIVE% 1>&2 pause ) popd rem more code follows ...
I can adapt my existing USB_TOOLS.bat to modify the .xml, alongside all the other resources it already touches (pinerc, putty sessions, env variables, etc.). That is a one-time solution and much easier than fiddling with the Tools > Options every time.
TIA