batch scripts to remove default Indy library files in Delphi XE3-11 #418
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've had to remove/upgrade Indy in multiple versions of Delphi so I wrote some batch files because there's a lot of files and I don't want to manually do this every time. As I thought about making them public, I added logging, warning messages, and used the
computil
utility already in the Indy 10 library to set up the environment. Then I went one step further and put all the delete commands in a separate batch file and wrote smaller ones that called it for the various versions of Delphi. This reduced copy/paste errors and made it easier to change a delete command or warning message for all versions of Delphi.I wrote the scripts for the most recent versions first, doing a lot of testing in 10.4 and 11. These versions are the ones I use most and have the most platforms and files. After those were done, I copied the scripts for older versions. They have been tested in Delphi 11 Alexandria, 10.4 Sydney, 10.1 Berlin, and XE3-XE8.
I hope these are useful for others--and I hope we can manage packages differently in Indy 11!