markusen
Posts: 3
Joined: Tue Dec 08, 2020 3:24 pm

Azure DevOps with aic File

Hello,

I want to execute an aic File in Azure DevOps

- I tried the following

Code: Select all

  - task: AdvancedInstaller@2
    inputs:
      advinstVersion: '17.7'
      advinstLicense: 'd7e67e43a342ae38c0cf487108307425'
      aipPath: 'Setup/es_Setup.aip'
      aipBuild: 'DefaultBuild'
      aipPackageName: 'es5Insider$(buildBuildId).msi'
      aipOutputFolder: '$(Build.ArtifactStagingDirectory)\MSI'
      aipExtraCommands: 'Setup/aic/testproject.aic'
I get the error:
Unknown command in edit mode: Setup/aic/testproject.aic.

Do I need to put an command before the path to the aic File?
Or what am I doing wrong?
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Azure DevOps with aic File

Hello and welcome to our forums,

A file of commands (.aic file) is executed as it follows:

Code: Select all

AdvancedInstaller.com /execute <path_to_project_file> <command_file_path>
For more information about this, please have a look over the "Working with Advanced Installer from the command line" article.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
markusen
Posts: 3
Joined: Tue Dec 08, 2020 3:24 pm

Re: Azure DevOps with aic File

Thank you for your response. I know how to execute this from the Command Line.
But I want to use the Azure DevOps Task as stated in the question.
How do I integrate the .aic File in the Azure Dev Ops Task?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Azure DevOps with aic File

Hi,

To achieve what you want you should simply copy the content of your .aic file (excluding its first line: ;aic) and add the commands in the "Command Line Arguments" section of your DevOps build task. For instance:

Code: Select all

SetVersion 1.2
SetProperty TESTPROP="TestValue"
Save
screen.jpg
screen.jpg (428.18 KiB) Viewed 28349 times
Hope this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
markusen
Posts: 3
Joined: Tue Dec 08, 2020 3:24 pm

Re: Azure DevOps with aic File

Thank you Daniel. That information was very helpful.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Azure DevOps with aic File

You are always welcome!

Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”