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 sur 3

A guide to make portable apps with LiberKeyPortabilizer?

MessagePosté: 29 Septembre 2014, 13:42
de 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?

MessagePosté: 29 Septembre 2014, 13:47
de Dji

Re: A guide to make portable apps with LiberKeyPortabilizer?

MessagePosté: 29 Septembre 2014, 17:17
de 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: Tout sélectionner
C:\Program Files\Amazon\Kindle

to
Code: Tout sélectionner
E:\PortableApps\LiberKey\MyApps\KindleForPC\App\KindleForPC


and i copy the user data files from:
Code: Tout sélectionner
C:\Users\xxxx\AppData\Local\Amazon\Kindle

to
Code: Tout sélectionner
E:\PortableApps\LiberKey\MyApps\KindleForPC\Data\Kindle


Also exported the registry from
Code: Tout sélectionner
HKEY_CURRENT_USER\Software\Amazon
and put the .reg file in
Code: Tout sélectionner
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: Tout sélectionner
<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: Tout sélectionner
..\..\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?

MessagePosté: 30 Septembre 2014, 10:28
de 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?

MessagePosté: 30 Septembre 2014, 11:10
de 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?

MessagePosté: 30 Septembre 2014, 16:37
de 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: Tout sélectionner
<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?

MessagePosté: 30 Septembre 2014, 21:40
de Dji
Please try to start an exe, not a cmd, as notepad.exe ! ;-)

Re: A guide to make portable apps with LiberKeyPortabilizer?

MessagePosté: 01 Octobre 2014, 09:27
de 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: Tout sélectionner
http://filehippo.com/download_kindle_for_pc

Re: A guide to make portable apps with LiberKeyPortabilizer?

MessagePosté: 01 Octobre 2014, 10:07
de 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?

MessagePosté: 01 Octobre 2014, 12:14
de 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.