xObay
Posts: 27
Joined: Sat Jan 06, 2024 4:56 pm

Outdated PowerShell Module after upgrading to 21.4

Hello,

I've been working on creating a pipeline to build the AIP file using PowerShell. Now that I've update my AI, I'm facing the error below when running the following commands:

Code: Select all

$advinst = New-Object -ComObject AdvancedInstaller
$project = $advinst.LoadProject("$CurrentFolder\" + "Template.aip")
Error message:

Code: Select all

OperationStopped: This project (fragment) was edited with a newer version of Advanced Installer (21.4) and cannot be loaded.

Obviously, the PowerShell module needs to be updated. How can i do that?
xObay
Posts: 27
Joined: Sat Jan 06, 2024 4:56 pm

Re: Outdated PowerShell Module after upgrading to 21.4

I rebooted and now it is working.

Restarting a PowerShell session didn't work.
Liviu
Posts: 1048
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Outdated PowerShell Module after upgrading to 21.4

Hello,

Thank you for your followup on this. I'm glad everything is now working as expected.

Usually, AI COM uses the latest version installed on the system.

To register the latest AI version you want to use for COM, you can apply the solution from here.

Let us know if you have any questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”