RouteConverter Forum

Full Version: RouteConverter offline edition Portable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,
I would like to use RouteConverter offline edition on a USB stick.
Is it possible to create a Portable version of this application?
Yes. RouteConverter itself is self-contained and requires no installation. Just a Java 8. When would you call it portable?
(15.05.2016, 10:27)routeconverter Wrote: [ -> ]Yes. RouteConverter itself is self-contained and requires no installation. Just a Java 8. When would you call it portable?

Portable for me is that all the files (Application, configuration and data) are in one folder and subfolders.
No use of registry setting and no use off %appdata% folder.
Just put it on a memory stick (Applications and maps) and run it directly on every PC where java is installed.
(19.05.2016, 08:08)tarvr0 Wrote: [ -> ]Portable for me is that all the files (Application, configuration and data) are in one folder and subfolders.
No use of registry setting and no use off %appdata% folder.
Just put it on a memory stick (Applications and maps) and run it directly on every PC where java is installed.

Well, it's pretty close to that. As an Java application it uses Java Preferences which
are mapped to the Registry on Windows. Could be tweaked to write into files like
described here.

%appdata% is not used.

RouteConverter needs to write temporary files. Currently, this is %TEMP%/routeconverter on Windows

And currently RouteConverter stores maps, routes, elevation and routing data and other downloads in %USERPROFILE%/.routeconverter

Both could be tweaked via Registry entries to point to an arbitrary folder.

So to make RouteConverter portable: how does it know where to put stuff? Command line parameters?
(19.05.2016, 20:41)routeconverter Wrote: [ -> ]
(19.05.2016, 08:08)tarvr0 Wrote: [ -> ]Portable for me is that all the files (Application, configuration and data) are in one folder and subfolders.
No use of registry setting and no use off %appdata% folder.
Just put it on a memory stick (Applications and maps) and run it directly on every PC where java is installed.

Well, it's pretty close to that. As an Java application it uses Java Preferences which
are mapped to the Registry on Windows. Could be tweaked to write into files like
described here.

%appdata% is not used.

RouteConverter needs to write temporary files. Currently, this is %TEMP%/routeconverter on Windows

And currently RouteConverter stores maps, routes, elevation and routing data and other downloads in %USERPROFILE%/.routeconverter

Both could be tweaked via Registry entries to point to an arbitrary folder.

So to make RouteConverter portable: how does it know where to put stuff? Command line parameters?

The easiest way to create a portable application is to use "relative path" from the starting folder path of the application.
If your application is started from a folder, example "e:\RouteconverterPortable" you can put all data (Maps and configuration filesĀ  in the folder "e:\RouterconverterPortable\Maps") To access this folder you can use as folder variable ".\Maps" atc..
(23.05.2016, 18:11)tarvr0 Wrote: [ -> ]The easiest way to create a portable application is to use "relative path" from the starting folder path of the application.
If your application is started from a folder, example "e:\RouteconverterPortable" you can put all data (Maps and configuration filesĀ  in the folder "e:\RouterconverterPortable\Maps") To access this folder you can use as folder variable ".\Maps" atc..

How do portable apps do this typically? Via a command line switch? Something like

RouteConverter.exe -portableFolder ./RouteConverterPortable

which configures the internal structures (see my post above) to put everything below "./RouteConverterPortable"

I'm already creating 9 different versions of RouteConverter and I don't want to add 2 more to it
for Windows Online/Offline Portable. Thus I'm thinking of command line switches.
OK no problem something like that
RouteConverter.exe -portableFolder ./RouteConverterPortable
Is that a typical way to invoke portable apps?
(23.05.2016, 20:28)routeconverter Wrote: [ -> ]Is that a typical way to invoke portable apps?

That is one way of doing it.
When I write a "portable" script that need several files I use always relative path like ".\config or .\maps"
In my script I have a variable that find out the folder and drive that is used to start the application
I way to find out you work in portable mode or "normal" mode is to create a file in the application folder example "Portable.ini"
And check in the application if file exist work in "portable" mode if not exist "normal" mode
Hello,
Do you have any news about tot make this application full portable?
Thanks
Pages: 1 2