Recent

Author Topic: Installing multiple custom packages  (Read 899 times)

nimble2010

  • New Member
  • *
  • Posts: 13
Installing multiple custom packages
« on: November 25, 2023, 05:16:13 pm »
Hello  :D

I have a bunch of packages (50+) that I would like to install in the IDE and I can't use the "Open Package File" menu item because there's just too many of them.

Is there a way I can install them all at once? Each is in its own separate directory with *.lpk

I appreciate any help, thank you.

wp

  • Hero Member
  • *****
  • Posts: 11915
Re: Installing multiple custom packages
« Reply #1 on: November 25, 2023, 05:25:44 pm »
Create one more package and add all the packages to it that you want to install. Then install this "all-in-one" package only - it should install the other packages as well.

nimble2010

  • New Member
  • *
  • Posts: 13
Re: Installing multiple custom packages
« Reply #2 on: November 25, 2023, 06:07:00 pm »
That's awesome, didn't know it can recursively install subpackages, but how would I add them exactly? I have created a new package, tried adding all the *.lpk files for all packages using "Add -> Add Files from File System" but it adds them as text and nothing gets installed as a result.

wp

  • Hero Member
  • *****
  • Posts: 11915
Re: Installing multiple custom packages
« Reply #3 on: November 25, 2023, 06:27:57 pm »
No, you must add then via "New requirement". This opens the "New requirement dialog"; in its package list you can select several packages at once by CTRL- and/or SHIFT-clicking. At least, that's the way I remember when I did this for the JVCL packages.

nimble2010

  • New Member
  • *
  • Posts: 13
Re: Installing multiple custom packages
« Reply #4 on: November 25, 2023, 06:31:41 pm »
No, you must add then via "New requirement". This opens the "New requirement dialog"; in its package list you can select several packages at once by CTRL- and/or SHIFT-clicking. At least, that's the way I remember when I did this for the JVCL packages.

Well that's where the issue is, my packages do not appear in the list because they are in a local custom directory. If I use the requirement option I'm stuck with "Local" already installed packages or "Online" ones.

wp

  • Hero Member
  • *****
  • Posts: 11915
Re: Installing multiple custom packages
« Reply #5 on: November 25, 2023, 07:12:38 pm »
Oh, of course...

Maybe this: Create a new project group (in "Project" menu; should be available, if not, install package LazProjectGroups via "Install/Uninstall packages"). Add all required lpk files to the group. Make sure that the root node of the tree (at the very top) is selected, then click "Compile" - this compiles all packages. Now the IDE should know about these packages, and they should show up in the "New requirement" dialog that I mentioned in the previous post.

nimble2010

  • New Member
  • *
  • Posts: 13
Re: Installing multiple custom packages
« Reply #6 on: November 25, 2023, 11:18:22 pm »
Oh, of course...

Maybe this: Create a new project group (in "Project" menu; should be available, if not, install package LazProjectGroups via "Install/Uninstall packages"). Add all required lpk files to the group. Make sure that the root node of the tree (at the very top) is selected, then click "Compile" - this compiles all packages. Now the IDE should know about these packages, and they should show up in the "New requirement" dialog that I mentioned in the previous post.

Perfect, that did the job.

Thank you very much!

 

TinyPortal © 2005-2018