waichuen
Posts: 4
Joined: Mon Sep 30, 2019 9:33 am

Builds Pipeline - Azure DevOps

I'm having this error during my solution build task in Azure DevOps:

Code: Select all

  [ADV_INST] Adding file "D:\a\1\s\packages\System.Runtime.InteropServices.RuntimeInformation.4.0.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll".
##[error]C:\hostedtoolcache\windows\advinst\16.2.0\x86\ProgramFilesFolder\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(203,5): Error : The path is not of a legal form.
C:\hostedtoolcache\windows\advinst\16.2.0\x86\ProgramFilesFolder\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(203,5): error : The path is not of a legal form. [D:\a\1\s\Setup_SRS\Setup_SRS.aiproj]
Done Building Project "D:\a\1\s\Setup_SRS\Setup_SRS.aiproj" (default targets) -- FAILED.
Done Building Project "D:\a\1\s\SRS_MY.sln" (default targets) -- FAILED.

Build FAILED.
Is it because it's installed under the wrong path? "C:\hostedtoolcache\windows\advinst\16.2.0\x86\bin\x86"

Code: Select all

##[section]Starting: Use Advanced Installer 16.2
==============================================================================
Task         : Advanced Installer Tool Installer
Description  : Acquires a specific version of Advanced Installer from internet or the tools cache and adds it to the PATH. Use this task to install Advanced Installer for subsequent tasks
Version      : 1.1.0
Author       : Caphyon
Help         : 
==============================================================================
Checking if a cached copy exists for this version...
Cache does not contains this Advanced Installer version. Will be downloaded and installed.
Downloading Advanced Installer. URL: https://www.advancedinstaller.com/downloads/16.2/advinst.msi
Downloading: https://www.advancedinstaller.com/downloads/16.2/advinst.msi
Extracting Advanced Installer
[command]C:\windows\system32\msiexec.exe /a D:\a\_temp\e8a6ad3c-dbc4-402d-ad37-ec4b6e092ac4 TARGETDIR=D:\a\_temp\AdvancedInstaller\resources /qn /l*v D:\a\_temp\AdvancedInstaller\advinst_install.log
Caching Advanced Installer tool.
Caching tool: advinst 16.2.0 x86
Successfully cached Advanced Installer tool. Version 16.2
Prepending PATH environment variable with directory: C:\hostedtoolcache\windows\advinst\16.2.0\x86\bin\x86
##[section]Finishing: Use Advanced Installer 16.2
waichuen
Posts: 4
Joined: Mon Sep 30, 2019 9:33 am

Re: Builds Pipeline - Azure DevOps

Anyone know how to solve the problem?
##[error]C:\hostedtoolcache\windows\advinst\16.2.0\x86\ProgramFilesFolder\MSBuild\Caphyon\Advanced Installer\AdvInstExtTasks.Targets(203,5): Error : The path is not of a legal form.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Builds Pipeline - Azure DevOps

Hello and welcome to our forums,

We apologize for the delayed reply.

I cannot say why this happens. Can you please send us by email at support at advancedinstaller dot com your VS solution (SLN file) and all of the project files it includes (only the project definition files without the source code files) so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
waichuen
Posts: 4
Joined: Mon Sep 30, 2019 9:33 am

Re: Builds Pipeline - Azure DevOps

Hi, I'd emailed the solution file. Hope to hear from you again :)
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Builds Pipeline - Azure DevOps

Hello,

After further investigating on this it seems to be an issue with our Azure DevOps extension. We are already working on a fix and I will let you know as soon as this is available for you.

Thank you for your further patience on this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: Builds Pipeline - Azure DevOps

Hello,

This has been fixed in version 16.5 of Advanced Installer, released on November 13th, 2019.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
waichuen
Posts: 4
Joined: Mon Sep 30, 2019 9:33 am

Re: Builds Pipeline - Azure DevOps

Thanks. I can get the installer package from Azure DevOps now. Great work there! :D
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: Builds Pipeline - Azure DevOps

You are always welcome.

I'm glad everything is working as expected.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”