Skip to content

automate the GetIt package manager for RAD Studio (Delphi) by calling the command-line tool

License

Notifications You must be signed in to change notification settings

corneliusdavid/AutoGetIt

Repository files navigation

AutoGetIt

The idea with this small Delphi program is to automate the GetIt package manager for RAD Studio (Delphi) by calling the GetIt command-line tool that comes with Delphi. Every time there's an update or a need to reinstall, it's a pain to tediously and manually go through all the GetIt packages and reinstall them. Wouldn't it be nice if there was a saved checklist?

Now there is!

This Delphi program uses the DosCommand component (available on GetIt) to shell out to the GetItCmd.exe and show all the packages in a CheckListBox. You then simply check off all the packages you want to install, click the Install button, and sit back and watch them all get installed (some require authorization so it's not completely unattended). You can also right+click on this list to select all or none, or uninstall the checked packages instead, or install/uninstall just one package at a time.

Originally Written in Delphi 10.4.1, tested on the update to Delphi 10.4.2: installed over 75 packages in less than 30 minutes!

Build

This code, as stated above, was originally written in Delphi 10.4 Sydney; it was upgraded to Delphi 11 Alexandria and now is maintained in Delphi 12 Athens. It uses an ImageCollection componet which was introduced in Delphi 10.3 Rio, so is not compatible with versions of Delphi before that. However, the compiled application is available here (click on Releases) which supports the GetIt command-line tool back to Delphi 10.2 Tokyo.

The only add-on package needed to compile this code is the DOSCommand library, available either on GitHub or on GetIt.

Batch files

If you don't want to run the GUI, I also wrote a bunch of batch files that do the same thing but with pre-selected groups of packages. I basically dumped all the packages into a text file then prepended the GetIt command line to install them and separated them into variously grouped batch files, some duplicated among a couple of groups. If you haven't already done this for your install, this will help get you started.

To run the batch files, start a DOS Prompt as Administrator, run the rsvars.bat batch file from your Delphi folder, then run any of the batch files in the batch folder. You will want to modify the batch files and comment out the packages you don't want.

Links

Screenshot

Screenshot

About

automate the GetIt package manager for RAD Studio (Delphi) by calling the command-line tool

Topics

Resources

License

Stars

Watchers

Forks