I have this code:
Code: Select all
$advinst = New-Object -ComObject AdvancedInstaller
$project = $advinst.CreateProjects(“enterprise”)
$project.ProductDetails.Name = "Existing Project"
Is there a full example of how to update an existing aip?
Code: Select all
$advinst = New-Object -ComObject AdvancedInstaller
$project = $advinst.CreateProjects(“enterprise”)
$project.ProductDetails.Name = "Existing Project"
You need to use a command like this:But I want to --through PowerShell-- update the version number, product code, and the files (that will go in appdir).
Code: Select all
$advinst = New-Object -comobject AdvancedInstaller
$project = $advinst.LoadProject("C:\Your Application.aip")
$project.ProductDetails.Version = "2.0.0"
$project.ProductDetails.ProductCode.GenerateAll()
$project.FilesComponent.AddFileS("APPDIR", "C:\Desktop\test.txt")
$project.Save()
You can find more information and code example in our User Guide: PowerShell AutomationIs there a full example of how to update an existing aip?