elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Missing Powershell Automation in VSTS-Task

Hello,
I would like to use Advanced Installer from the VSTS Task:
https://www.advancedinstaller.com/user- ... ation.html
https://marketplace.visualstudio.com/it ... tallerTool

I've found out that Advanced Installer is not really installed but all files where extracted:
https://github.com/Caphyon/advinst-vsts ... nstTool.ts

In the VSTS task it is not possible to user the Powershell Automation:
PS C:\Users\ETService> New-Object -ComObject AdvancedInstaller
New-Object : Die COM-Klassenfactory für die Komponente mit CLSID {00000000-0000-0000-0000-000000000000} konnte aufgrund des folgenden
Fehlers nicht abgerufen werden: 80040154 Klasse nicht registriert (Ausnahme von HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
In Zeile:1 Zeichen:1
+ New-Object -ComObject AdvancedInstaller
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [New-Object], COMException
+ FullyQualifiedErrorId : NoCOMClassIdentified,Microsoft.PowerShell.Commands.NewObjectCommand
Is there a way to register the Advanced installer COM Object manually?

Regards,
Éric.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Missing Powershell Automation in VSTS-Task

Hi Éric,

I am afraid we do not have PowerShell Automation support for VSTS (Azure DevOps) systems. And this is just because so far we are not aware of any solution we can use to register a COM module on a VSTS (Azure DevOps) machine. As you already saw our PowerShell automation feature is implemented as a COM module.

If you already know a way to register a COM module on a VSTS (Azure DevOps) machine as part of a pipeline build task, please feel free to give us a short description or example. We will be glad to try and implement this feature for VSTS (Azure DevOps) too.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”