Instructions for building Updates file in Azure DevOps - Advanced Installer Community
nafujbeck
Posts: 8
Joined: Wed Apr 26, 2017 11:47 pm

Instructions for building Updates file in Azure DevOps

Hello,
I have an Azure DevOps Build pipeline that I am trying to use to create my Updates txt file. I saw the thread about using the command line /NewUpdate option. I created the attached pipeline task that specifies my updates .aip file, the output folder and package name, and command line arguments using the /NewUpdate option. However, doesn't this just add the update? I also need to specify that this version replaces/updates all previous versions and then actually build the updates txt file.

Can you please give me an example for what I need to do to accomplish this?

Thanks!
Nathan
AI DevOps Task.png
AI DevOps Task.png (103.64 KiB) Viewed 6703 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Instructions for building Updates file in Azure DevOps

Hello and welcome to our forums,

Have a look on our "Azure DevOps and Advanced Installer issue" thread which debates how you should build your updates configuration file within Azure DevOps.

Also, when using the "/NewUpdate" command line argument, before the updates configuration project is built (.AIP file) the above command will be executed thus updating your updates configuration project to include a new update entry.

To set the replace all option for the new updates entry you should use the "/AddUpdateReplacement" command too.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nafujbeck
Posts: 8
Joined: Wed Apr 26, 2017 11:47 pm

Re: Instructions for building Updates file in Azure DevOps

Hi Daniel,
Thanks - I had read through that thread before.
So to clarify, I can add two separate command line parameters, like this:

/NewUpdate $/pathToNewMsi/NextVersion.msi -name "Version2.0" -display_name "MyApp" -url "myURL"
/AddUpdateReplacement -replace_all

And those will run first, update my aip project, and the the build task will build the aip project, outputting the updates.txt file?

I think it would be helpful to add a knowledge base page describing how to do this in Azure DevOps, since it wasn't intuitive to me that you could add two command line commands, or that those would run first, before the build. If there were an example of a build task in Azure DevOps to follow, I think this would be super easy for your users to implement.

Thanks for the help!
Nathan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Instructions for building Updates file in Azure DevOps

Hi Nathan,

I apologize for the delayed reply.
So to clarify, I can add two separate command line parameters, like this:

/NewUpdate $/pathToNewMsi/NextVersion.msi -name "Version2.0" -display_name "MyApp" -url "myURL"
/AddUpdateReplacement -replace_all

And those will run first, update my aip project, and the the build task will build the aip project, outputting the updates.txt file?
Yes, your assumption is right.

We already have on our todo list some additional help articles about our Azure DevOps integration and your idea is great, we should definitely have an example about how to build the updates configuration file within Azure DevOps. Thank you for your suggestion, we will try to include this in the future.

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

Return to “Building Installers”