Copying a Lazarus installation to another machine. lazarus / 13-General ---------------------------------------------------------------------- 440bx · 2025-05-04 20:26 Hello, I would like to know if copying a Lazarus installation to another machine, on the same drive letter and directory opens the door to some problem(s) or is it something that can be done without unexpected adverse effects ?  (for some programs this doesn't work because registry settings are not the way the program expects them in the other machine but, I am under the impression that neither Lazarus nor FPC use registry settings.) Thank you for your help. ---------------------------------------------------------------------- Martin_fr · 2025-05-04 20:40 The only registry setting is for the inno-setup uninstaller. So you wont be able to uninstall with that. Otherwise, if the path is identical *and* if you copy the config too (by default in %APPDATA% / see primary config path) then that should work. Mind, that I don't know about packages installed using the online package manager, since they maybe are in the PCP, and that contains the username. If anything goes wrong: - check fpc.cfg - check environmentoptions.xml Other conf xml files may have pathes, but likely not mission critical. Any "not found" package => just open via menu "open package" and the IDE will know where it is. ---------------------------------------------------------------------- 440bx · 2025-05-04 21:14 Good stuff to keep in mind.  I'll make sure everything is _exactly_ the same in both installations (except innosetup's registry entry since, I'll uninstall "manually" if I need to.) Thank you Martin. ---------------------------------------------------------------------- Hansvb · 2025-05-05 06:18 Hi, I can't install anything on my work PC and yet I have Lazarus on it (Windows PC). I install Lazarus on my private PC in for example the folder c:\lazarus_4rc3. When installing on the private PC I choose second installation and make sure that the config is c:\lazarus_4rc3\config. I may also get some packages and rebuild lazarus. Then I zip the folder and put it in the same folder name on the work PC. That works fine for me. The only thing I have run into is that a rebuild after getting a new package did not work. But I haven't tried that for a long time. A second negligible thing is that if you create a new project and press shift f9, the project must be saved the first time. After that, it doesn't matter anymore. This is one of the reasons I use Lazarus. This will not work with Visual Studio. ---------------------------------------------------------------------- 440bx · 2025-05-05 07:43 Thank you Hansvb, that's reassuring. ---------------------------------------------------------------------- af0815 · 2025-05-05 07:56 Quote from: Hansvb on May 05, 2025, 08:18:32 amThe only thing I have run into is that a rebuild after getting a new package did not work. But I haven't tried that for a long time. Is there a message, why it does not work. I have seen on my work PC, that the compiling is possible, but not the changing of the executable. It depends of the companyrulesz. maybe it is possible to build Lazarus on the commandline with lazbuild. See https://forum.lazarus.freepascal.org/index.php?topic=66446.0 for some info ---------------------------------------------------------------------- avra · 2025-05-05 14:12 I have not used official installer for years, and have dozen of fpcupdeluxe Lazarus installations in c:\prg\lazarus. To transfer them to another windows pc, all I need is c:\prg\lazarus and shortcuts for each version which I also keep in the same dir (most used shortcuts get copied to desktop). Hope that helps. ---------------------------------------------------------------------- 440bx · 2025-05-05 14:53 Yes, that helps, thank you Avra.