Advanced Installer (preview) for Team Services doesn't work - Advanced Installer Community
snorf
Posts: 2
Joined: Wed Dec 14, 2016 4:23 pm

Advanced Installer (preview) for Team Services doesn't work

Problem description: When executing the "Advanced Installer" build task in Team Services I get the following error:
System.Management.Automation.RuntimeException: Failed to detect Advanced Installer path.

How to reproduce: According to the documentation:
To use the Advanced Installer Build Task plugin an installed version of Advanced Installer is required.

Does this mean that I need to have a custom agent with Advanced Installer installed?

Full log output:
2016-12-14T14:48:43.0850647Z ##[section]Starting: Build Advanced Installer package $/MyProject/MyProjectSetup/MyProjectSetup.aip
2016-12-14T14:48:43.0870637Z ==============================================================================
2016-12-14T14:48:43.0870637Z Task : Advanced Installer
2016-12-14T14:48:43.0870637Z Description : Tool for building installers.
2016-12-14T14:48:43.0870637Z Version : 1.1.0
2016-12-14T14:48:43.0870637Z Author : Caphyon
2016-12-14T14:48:43.0870637Z Help :
2016-12-14T14:48:43.0870637Z ==============================================================================
2016-12-14T14:48:44.1697720Z Preparing task execution handler.
2016-12-14T14:48:44.5827914Z Executing the powershell script: C:\a\_tasks\AdvancedInstaller_87e987f2-3e13-4d6e-9a3a-bb027f624d06\1.1.0\AdvinstTask.ps1
2016-12-14T14:48:45.5107959Z ##[error]System.Management.Automation.RuntimeException: Failed to detect Advanced Installer path. ---> System.Management.Automation.RuntimeException: Failed to detect Advanced Installer path.
2016-12-14T14:48:45.5107959Z --- End of inner exception stack trace ---
2016-12-14T14:48:45.5107959Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2016-12-14T14:48:45.5107959Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2016-12-14T14:48:45.5107959Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2016-12-14T14:48:45.5107959Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-12-14T14:48:45.5107959Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-12-14T14:48:45.5107959Z at Microsoft.TeamFoundation.DistributedTask.Handlers.LegacyVSTSPowerShellHost.VSTSPowerShellHost.Main(String[] args)
2016-12-14T14:48:45.5217678Z ##[error]LegacyVSTSPowerShellHost.exe completed with return code: -1.
2016-12-14T14:48:45.5227686Z ##[section]Finishing: Build Advanced Installer package $/MyProject/MyProjectSetup/MyProjectSetup.aip
snorf
Posts: 2
Joined: Wed Dec 14, 2016 4:23 pm

Re: Advanced Installer (preview) for Team Services doesn't work

After some more googling I found this:
https://social.msdn.microsoft.com/Forum ... =TFService

I guess that answers my question and I do need to install Advanced Installer to my agent.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Advanced Installer (preview) for Team Services doesn't work

Hello and welcome to our forums,

Indeed to runsetup package builds on your Azure server machine you need our Advanced Installer application installed on your cloud build environment. Maybe you can try a method to install it as a third party app on the cloud build platform (if possible) and see if this works.

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

Return to “Common Problems”