... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RouteConverter offline edition Portable
#1
Hello,
I would like to use RouteConverter offline edition on a USB stick.
Is it possible to create a Portable version of this application?
Reply
#2
Yes. RouteConverter itself is self-contained and requires no installation. Just a Java 8. When would you call it portable?
--
Christian
Reply
#3
(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.
Reply
#4
(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?
--
Christian
Reply
#5
(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..
Reply
#6
(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.
--
Christian
Reply
#7
OK no problem something like that
RouteConverter.exe -portableFolder ./RouteConverterPortable
Reply
#8
Is that a typical way to invoke portable apps?
--
Christian
Reply
#9
(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
Reply
#10
Hello,
Do you have any news about tot make this application full portable?
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)