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

Outdated PowerShell Module after upgrading to 21.4

Sat Jan 27, 2024 3:58 am

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: 21
Joined: Sat Jan 06, 2024 4:56 pm

Re: Outdated PowerShell Module after upgrading to 21.4

Sat Jan 27, 2024 4:03 am

I rebooted and now it is working.

Restarting a PowerShell session didn't work.

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Outdated PowerShell Module after upgrading to 21.4

Mon Jan 29, 2024 10:19 am

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”