Recent

Author Topic: Is lazarus portable?  (Read 9193 times)

HatForCat

  • Sr. Member
  • ****
  • Posts: 293
Is lazarus portable?
« on: February 03, 2016, 04:44:29 pm »
Can I install on a USB Flash drive and run it from there?

If not, is there a portable version? Then where?

Thanks
p.s.
I ask, because if it stores temp stuff in C:\users\admin\appdata\Local... or elsewhere locally then it ain't what I need.
« Last Edit: February 03, 2016, 04:46:30 pm by HatForCat »
Acer-i5, 2.6GHz, 6GB, 500GB-SSD, Mint-19.3, Cinnamon Desktop, Lazarus 2.0.6, SQLite3

FTurtle

  • Sr. Member
  • ****
  • Posts: 292

Graeme

  • Hero Member
  • *****
  • Posts: 1526
    • Graeme on the web
Re: Is lazarus portable?
« Reply #2 on: February 04, 2016, 01:38:36 am »
Yes you can make it portable by passing the --pcp parameter to it, and telling it where the configuration files are.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12899
  • FPC developer.
Re: Is lazarus portable?
« Reply #3 on: February 04, 2016, 10:56:08 am »
No, the configuration files contain hardcoded paths by default. (See e.g. http://bugs.freepascal.org/view.php?id=29041), and so does fpc.cfg

But you can try to make them relative to $lazarusdir, and lazarusdir should be overridable on the cmdline (http://bugs.freepascal.org/view.php?id=15741)

It is all pretty close to make the default install movable, but some things still have to be done.

The batchfile named in one of the above reports (http://www.stack.nl/~marcov/Lazarus.bat) will then be needed to start lazarus.
« Last Edit: February 04, 2016, 11:05:19 am by marcov »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12899
  • FPC developer.
Re: Is lazarus portable?
« Reply #4 on: February 04, 2016, 11:10:20 am »
Is the process to generate a lazarus installer documented (e.g. inno version, paths etc), are there scripts?

selevo

  • Newbie
  • Posts: 1
Re: Is lazarus portable?
« Reply #5 on: November 05, 2017, 09:19:46 am »
What news  obout portable  version ?

simone

  • Hero Member
  • *****
  • Posts: 704
Re: Is lazarus portable?
« Reply #6 on: November 05, 2017, 06:59:26 pm »
Here you can find a portable version:

http://newpascal.org/download.html

I use this distribution when I don't have administrative privileges.
Microsoft Windows 10/11 64 bit - Lazarus 3.8/4.0 FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018