![]() |
RouteConverter offline edition Portable - Printable Version +- RouteConverter Forum (https://forum.routeconverter.com) +-- Forum: Users (https://forum.routeconverter.com/forum-17.html) +--- Forum: English: Discussions (https://forum.routeconverter.com/forum-12.html) +--- Thread: RouteConverter offline edition Portable (/thread-2224.html) Pages:
1
2
|
RouteConverter offline edition Portable - tarvr0 - 15.05.2016 Hello, I would like to use RouteConverter offline edition on a USB stick. Is it possible to create a Portable version of this application? RE: RouteConverter offline edition Portable - routeconverter - 15.05.2016 Yes. RouteConverter itself is self-contained and requires no installation. Just a Java 8. When would you call it portable? RE: RouteConverter offline edition Portable - tarvr0 - 19.05.2016 (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. RE: RouteConverter offline edition Portable - routeconverter - 19.05.2016 (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. 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? RE: RouteConverter offline edition Portable - tarvr0 - 23.05.2016 (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. 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.. RE: RouteConverter offline edition Portable - routeconverter - 23.05.2016 (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. 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. RE: RouteConverter offline edition Portable - tarvr0 - 23.05.2016 OK no problem something like that RouteConverter.exe -portableFolder ./RouteConverterPortable RE: RouteConverter offline edition Portable - routeconverter - 23.05.2016 Is that a typical way to invoke portable apps? RE: RouteConverter offline edition Portable - tarvr0 - 25.05.2016 (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 RE: RouteConverter offline edition Portable - tarvr0 - 27.10.2016 Hello, Do you have any news about tot make this application full portable? Thanks |