I'm following your tutorial on https://www.advancedinstaller.com/user- ... ation.html to create an AIP file. When i run the following commands, I get an error message saying
Code: Select all
OperationStopped: Error opening file
Code: Select all
PS C:\Users\obay\Desktop\Test> $advinst = New-Object -ComObject AdvancedInstaller
PS C:\Users\obay\Desktop\Test> $project = $advinst.CreateProjectS("professional")
PS C:\Users\obay\Desktop\Test>
PS C:\Users\obay\Desktop\Test> # Product Details
PS C:\Users\obay\Desktop\Test> $project.ProductDetails.Name = "xTags"
PS C:\Users\obay\Desktop\Test> $project.ProductDetails.Version = "1.0.0"
PS C:\Users\obay\Desktop\Test> $project.ProductDetails.Publisher = "xTools"
PS C:\Users\obay\Desktop\Test> $project.ProductDetails.SetIcon("xIcon.ico")
PS C:\Users\obay\Desktop\Test> $project.SaveAs("xTags.aip")
OperationStopped: Error opening file: "xTags.aip".
PS C:\Users\obay\Desktop\Test>