You’re on the right path with the concatenate. I’m afraid I’m typing on a phone and can’t do the full solution at the moment, but the basic idea is to build a batch file, where each line contains an uninstall command; concatenate the lines with “%0d%0a”, the ascii codes for Carriage Return / Line Feed. Wrap the file pathname with “%22”, the ascii code for doublequotes, in case the path contains a space
Delete __appendfile
Appendfile { concatenation "%0d%0a" of ("%22" & pathname of it & "%22 /uninstall") of (relevance that finds the files) }
Delete uninstall.cmd
Move __appendfile uninstall.cmd
// Do the user overrides here
Wait uninstall.cmd