I'm using Powershell to build an msi file and sign it. I was having issues signing my code using 18.6 and saw there was a new version with an update (18.6.1). I removed 18.6 and installed 18.6.1 and now I'm unable to run my powershell script because it's looking for a template in the wrong directory.
Code: Select all
$advinst = New-Object -comobject AdvancedInstaller
$project = $advinst.CreateProject($advinst.ProjectTypes.Professional)
Code: Select all
PS C:\Users\xxx> C:\Users\xxx\Documents\test2.ps1
File not found: "C:\Program Files (x86)\Caphyon\Advanced Installer 18.6\templates\template.aip".
At C:\Users\xxx\Documents\test2.ps1:16 char:1
+ $project = $advinst.CreateProject($advinst.ProjectTypes.Professional)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException