But I want to --through PowerShell-- update the version number, product code, and the files (that will go in appdir).
You need to use a command like this:
Code: Select all
$advinst = New-Object -comobject AdvancedInstaller
$project = $advinst.LoadProject("C:\Your Application.aip")
$project.ProductDetails.Version = "2.0.0"
When you want to edit an existing project, just use the LoadProject command.
To change the product code you can check all the commands here: ProductCode PowerShell Automation.
Is there a full example of how to update an existing aip?
You can find more information and code example in our User Guide: PowerShell Automation
You can also have a look on our video: PowerShell Automation video tutorial.
Hope this helps! If you have any other questions, please don't hesitate to contact us.