Hi,
We're using a base .aip file and some command line scripts to batch generate installers for a number of products
This is not the recommended way to create new packages based on an existing .aip file. For this you could use templates. Just save your base .aip as a template from File -> Save as in Advanced Installer and then create a new project in Advanced Installer by selecting the saved template from the
Custom Template tab in the New Project dialog.
but we need a way to set a specific product code.
There is no command line that allows you to set a specific Product Code.
If you want keep the version that you have in your base .aip then you can use SetVersion command line to change it, this generating a new Product Code. After that run SetVersion again to set it back to the one in the base .aip file.
Regards,
Bogdan