Lazarus

Using the Lazarus IDE => General => Topic started by: folkeu08 on November 24, 2022, 06:54:52 pm

Title: Portable Lazarus on a usb key
Post by: folkeu08 on November 24, 2022, 06:54:52 pm
Hi,
I use Lazarus in mode portable on a USB Key.
Since the release 2.0.0, at the start, a window asks me for the path of the fppkg configuration file.
I just added a configuration file in the installation directory containing this line:
--primary-config-path=c:\lazarus_2.2.4\lazconfig.

It worked fine before the 2.0.0 release. Now I have to validate the path of the fppkg file.
Thanks
François
Title: Re: Portable Lazarus on a usb key
Post by: MarkMLl on November 24, 2022, 08:55:32 pm
Yes, that's a problem. I think it's something to do with the age (i.e. version of the content) of the fppkg.cfg file, I've fixed it for myself on Linux by finding an older one.

However: if you'd used the forum's search facility before posting you'd have found https://forum.lazarus.freepascal.org/index.php/topic,61185.0.html where Martin gives you a commandline parameter to avoid the persistent question.

MarkMLl
Title: Re: Portable Lazarus on a usb key
Post by: Boleeman on January 23, 2023, 07:20:12 am
Someone on this thread
https://forum.lazarus.freepascal.org/index.php/topic,3187.msg25476.html#msg25476

mentioned a launcher program at http://www.winpenpack.com/main/download.php#winpenpack

Looks like the program is in Italian. I think it's called X-Launcher

Actually got a redirect to:

https://sourceforge.net/projects/winpenpack/files/

Some info:
It comes with AutoIt sources and also compiled.


X-Launcher is a launcher, which is a program that launches other programs. X-Launcher
allows you to freely edit the boot options of programs initiated in order to make them portable, that
is usable on removable storage devices like USB flash drives or external hard drives.
X-Launcher is universal in the sense that it is extensively configurable and can be used
to make portable application without any limitations.
The idea is very simple: X-Launcher has a large number of tools to accomplish its purpose, and
all of these tools can be configured via a configuration file. You do not need to know any
programming language to create a launcher that makes the portable program.
In summary we can say that, once they are clear changes to make to a program to make it
portable, X-Lancher allows you to perform them in a simple and effective way

The main problem to be solved is to force the program that you want to save the settings to a
portable drive and not in the host computer. From this point of view, there are these types of
programs:
1. programs that save their settings in %USERPROFILE%, or in
%APPDATA%;
2. programs that use the Windows registry. Generally use a subkey of the main:
“HKEY_CURRENT_USER\Software”;
3. programs that save their settings in the program folder. These are ‘Naturally’ portable,
though they often need some tweaking.
TinyPortal © 2005-2018