If you download any of the apps from my web site, such as Customize or Task Scheduler Administrator, they include a script called KInstall. KInstall (\bin\install.kix) uses an INI file to define the installation process. It supports the ability to copy/update files, delete files, update ini files, update the registry, prompt for input & process the result, handle basic logic decisions, run executables, and more. I have another version of this called SystemBuild that is used to automate system/server builds from a basic image with a high level of customization - automated on-off builds, in a sense. I use this now to automate almost every app installed through our SWDIST product, both internally and at several client sites.
You can view the user guide at my web site or download the entire KInstall package from the Products/Administrators Toolchest section. (KInstall is not open source - you cannot modify the script, only the installation config files.)
Also - if you need to distribute keys in a secure manner, you might want to look at the cipher UDF. It's similar to the Enigma code engine from WWII, but uses up to 32K codewheels to create the cipher. Again, no source to preserve the security, but pre-tokenized UDFs are available for download to integrate into your scripts. Search for Cipher in the UDF library here on KORG for the download link.
Glenn
_________________________
Actually I
am a Rocket Scientist!