Forum LiberKey


https://www.liberkey.com/forum/

A guide to make portable apps with LiberKeyPortabilizer?

https://www.liberkey.com/forum/viewtopic.php?f=29&t=6790

Page 1 of 3

A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 29 September 2014, 13:42
by emil9782
Is there a tutorial how to create portable apps using the LiberKey Portabilizer? I looked through the portabalizer documentation but there is no straightforward guide of how to do this.

Re: A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 29 September 2014, 13:47
by Dji

Re: A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 29 September 2014, 17:17
by emil9782
OK, i am trying to make a portable app from Kindle for PC and this is what i managed to achieve so far:

I downloaded the application template and extract it to MyApps folder and renamed the files to KindleForPC:

Image

Then i copy the installation files from:
Code: Select all
C:\Program Files\Amazon\Kindle

to
Code: Select all
E:\PortableApps\LiberKey\MyApps\KindleForPC\App\KindleForPC


and i copy the user data files from:
Code: Select all
C:\Users\xxxx\AppData\Local\Amazon\Kindle

to
Code: Select all
E:\PortableApps\LiberKey\MyApps\KindleForPC\Data\Kindle


Also exported the registry from
Code: Select all
HKEY_CURRENT_USER\Software\Amazon
and put the .reg file in
Code: Select all
E:\PortableApps\LiberKey\MyApps\KindleForPC\Data


Then i edited the KindleForPC.lpf and KindleForPC.bat files and changed where it says MyApplication to KindleForPC:

Code: Select all
<LiberKeyAppLauncher version="0.7">
   <AppInfo>   
      <Name>KindleForPC</Name>
      <LocalExeName>KindleForPC.cmd</LocalExeName>
      <ExePath>App\KindleForPC\KindleForPC.cmd</ExePath>
      <TmpDir>LBK_KindleForPC</TmpDir>
      <!-- Uncomment line below to send a command line to MyApplication.cmd -->
      <!--
      <AdditionalParameters>--CommandLineSendedToKindleForPC</AdditionalParameters>
      -->
   </AppInfo>
</LiberKeyAppLauncher>


Code: Select all
..\..\LiberKeyTools\LiberKeyPortabilizer\LiberKeyPortabilizer.exe %CD%\KindleForPC.lpf /lkpend


When i start KindleForPC.bat file these two command prompt windows appear:

Image

But when i press a key to continue the windows just exits and nothing happens.
Obviously i am doing something wrong but i am not sure what.
I hope someone can assist me.

Re: A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 30 September 2014, 10:28
by emil9782
Any help? I don't have much experience in this stuff and the source files of the apps that are on the site can not be opened so i can't see examples.

Re: A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 30 September 2014, 11:10
by Dji
Based on my previous message, please have a look at my example for Background Switcher

Read particularly the Registry and AppData sections into lpf file.

Please also notice the path saved into registry entries and configuration files (use your own token like "_LBK_ROOT_" and use it into your lpf file)

Re: A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 30 September 2014, 16:37
by emil9782
I changed my .lpf file and include only the mandatory nodes, just to see if it will create the launcher, but when i start KindleForPC.bat it just launching the program:

Code: Select all
<LiberKeyAppLauncher version="0.7">
   <AppInfo>   
      <Name>KindleForPC</Name>
      <LocalExeName>Kindle.exe</LocalExeName>
      <ExePath>App\KindleForPC\Kindle.exe</ExePath>
      <TmpDir>LBK_KindleForPC</TmpDir>
   </AppInfo>
</LiberKeyAppLauncher>


If the .lpf file contains only the main nodes should it still create the launcher, or i have to add something else in the file?

Re: A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 30 September 2014, 21:40
by Dji
Please try to start an exe, not a cmd, as notepad.exe ! ;-)

Re: A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 01 October 2014, 09:27
by emil9782
Can you, please, create portable app from Kindle for PC and upload the .lpf file? It will be from great help to see the example:

Code: Select all
http://filehippo.com/download_kindle_for_pc

Re: A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 01 October 2014, 10:07
by Dji
Please consider we can't provide any "official" (provided by Liberkey team) lpf files without considering copyrights and trademarks concerns and we haven't any time for this and to make lpf files for the moment, sorry.

Kindle format is supported by Calibre, did you try it indeed ?

Re: A guide to make portable apps with LiberKeyPortabilizer?

PostPosted: 01 October 2014, 12:14
by emil9782
I have already Calibre, but the point is that i want to learn how to use Lybre portabilizer to make portable apps for my self. But i guess without getting enough support this will not be possible for people like me who don't have much experience in creating portable apps.