when I set a new version in the AI UI and save the project, it gives me a message box asking me if I want to generate a new Product Code (for Major Upgrades) or keep the existing one (for Patches).
The second is what I want.
However, when trying to automate my installer updates with a Powershell script, I found that setting a version using
Code: Select all
$project.ProductDetails.Version = $version
Which is a bizarre behavior to me, because not only is this totally intransparent, but also, if I wanted new Product Codes, I would have called one of the functions that exist specifically for that purpose.
So how can I please just set a new version number without messing with anything else?
(My current workaround is storing the old codes and restoring them after the version change. Which is a joke, though.)