Forum > Windows (32/64)

[SOLVED] Portable Lazarus installation

(1/2) > >>

JoeJoeTV:
I wanted to use Lazarus on a portable USB stick, so I searched on the forums, etc.

The soultion I now hae is that I have a batch script that sets a environment variable to the lazarus directory and use this in every config file(fpc.cfg,command line for lazarus main dir and config dir, etc.).

This works perfectly, althought there are a few quirks.

Every time the drive letter changes and I start lazarus from the usb I get the windows(see attachment) that the config has changed and I have to click ignore every time.

Is there a way to get rid of this window?

nouzi:
Yes you can read this article
https://medium.com/@jakobsche/portable-lazarus-517458bca81f

JoeJoeTV:
Thanks for replying, but the portablelazarus.exe only works for drive K: AFAIK.
Also my script works, I just want to get rid of the message.

ASerge:

--- Quote from: JoeJoeTV on August 17, 2019, 02:31:04 pm ---Every time the drive letter changes and I start lazarus from the usb I get the windows(see attachment) that the config has changed and I have to click ignore every time.

--- End quote ---
Assign a Persistent Drive Letter to a USB Drive

marcov:
I did a try a long time ago too, I used this batchfile.

The idea is to make as many paths inside the IDE relative to lazarusdir, and then pass the lazarus.exe location to startlazarus using --lazarusdir and --pcp=

Navigation

[0] Message Index

[#] Next page

Go to full version