Hello,
We are trying to create a simple MST file to change the version property.
We tried with a simple MSI :
$adv = New-Object -ComObject AdvancedInstaller
$msi = $adv.LoadProject("C:\Users\username\Desktop\Your Application.msi")
$msi.ProductDetails.Version="1.3"
$msi.SaveAs("C:\Users\username\Desktop\Your Application.mst")
Everytime we hav this error :
Invalid build argument
At C:\Users\user\Desktop\Untitled1.ps1:4 char:1
+ $msi.SaveAs("C:\Users\username\Desktop\Your Application.mst")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException
Could you please guide us in the correct direction ?
Regards,
Alexandre