Build installer on AppVeyor - Advanced Installer Community
MichaelSaunders
Posts: 7
Joined: Tue Apr 26, 2016 9:22 am

Build installer on AppVeyor

Hi, we're trialing Advanced Installer and need to build installers as part of the CI process. We use AppVeyor, a cloud build service which provides a clean windows VM for every build. Can you advise on how to best get this working? If required I think we could script Advanced Installer to be installed on every new build VM (although this will slow builds), but I'm not sure how licensing will work. We would purchase the Enterprise Edition with a floating licence to be shared by a developer (occasional use) and the build machine. Installing the Licence Server on our LAN won't be visible to AppVeyor.

Thanks
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Build installer on AppVeyor

Hello Michael and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
We use AppVeyor, a cloud build service which provides a clean windows VM for every build. Can you advise on how to best get this working?
Isn't there any other application installed when the build is triggered? You can install Advanced Installer so that each time a build is triggered, Advanced Installer is already installed. During the build operation you will only need to register Advanced Installer (which takes a couples of seconds).

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaelSaunders
Posts: 7
Joined: Tue Apr 26, 2016 9:22 am

Re: Build installer on AppVeyor

Hi Dan, thanks for your reply. For every build AppVeyor provides a new VM for which tools need to be installed. Standard build tools such as MSBuild, Python, Ruby etc are installed by default. The build VM state is transient so Advanced Installer would need to be installed for every build. I assume Advanced Installer itself has a silent install option we can script?

My main sticking point is how to licence (or register) Advanced Installer once installed. How do I do this if the Enterprise Edition requires a licence server but the build machine does not have access to the LAN? Do we need to use a licence server for the Enterprise Edition? Only one developer on the team is tasked with building installers.

thanks
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Build installer on AppVeyor

Hi Michael,
The build VM state is transient so Advanced Installer would need to be installed for every build. I assume Advanced Installer itself has a silent install option we can script?
Yes, you can install silent Advanced Installer using the standard msiexec silent command line:

Code: Select all

msiexec /i <path_to_AdvInst.msi> /qn
My main sticking point is how to licence (or register) Advanced Installer once installed. Do we need to use a licence server for the Enterprise Edition? Only one developer on the team is tasked with building installers.
Since only one developer is working with Advanced Installer then you only need a Per-Developer license for the Enterprise edition of Advanced Installer. You do not need a floating licence.
How do I do this if the Enterprise Edition requires a licence server but the build machine does not have access to the LAN?
I assume you have internet access from the related machine. If YES, then you can register Advanced Installer from the command line. To activate Advanced Installer you can use the following syntax:

Code: Select all

AdvancedInstaller.com /register <license_id>
where <license_id> is the license ID which you received after purchasing Advanced Installer.

If you do not have an active internet connection on the related machine to register Advanced Installer, then we can send you a license file (we will generate the licence file offline) but you will have to copy the licence file to the following location:

Code: Select all

C:\ProgramData\Caphyon\Advanced Installer
If you have any questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaelSaunders
Posts: 7
Joined: Tue Apr 26, 2016 9:22 am

Re: Build installer on AppVeyor

Hi Dan, that's great! Thanks for your reply. I'll try this out and let you know if I get stuck. Cheers.

Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Build installer on AppVeyor

You're always welcome Michael,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaelSaunders
Posts: 7
Joined: Tue Apr 26, 2016 9:22 am

Re: Build installer on AppVeyor

Hi Dan,
regarding licensing each new install of Advanced Installer on a clean build VM, is there an issue with installing the same licence on multiple machines? Only one build runs at a time, so we need a single licence, however I think I read a licence can only be installed on 5 machines. If each CI build on AppVeyor results in a new build VM being provisioned with a new machine id, we will quickly exhaust the number of machines that can be licensed. It might be possible for us to script programmatic unregistration of licences if this is something you support?

thanks
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Build installer on AppVeyor

Hi Michael,

In your case we will add an exception to our registering system so that you can register Advanced Installer each time you need.

After purchasing Advanced Installer, please contact us to support at advancedinstaller dot com for details.

If you have any questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaelSaunders
Posts: 7
Joined: Tue Apr 26, 2016 9:22 am

Re: Build installer on AppVeyor

Thanks Dan,
I'll be in touch once we've made the purchase. Thanks for your help.

regards
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Build installer on AppVeyor

You're always welcome Michael,

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaelSaunders
Posts: 7
Joined: Tue Apr 26, 2016 9:22 am

Re: Build installer on AppVeyor

Hi Dan,
We have been able to configure AppVeyor to install advinst for every new build and can successfully build trial installers. I have purchased an Enterprise edition licence and Support have emailed me a licence file (.dat). I have followed your instructions to programmatically place the licence file in the following directory, however it appears the installation is not licensed and the installers we build continue o have the trial notification.

Code: Select all

C:\ProgramData\Caphyon\Advanced Installer
I found that if I register advinst via the UI the installers are built as non-trial, so I know the licence file is valid. Interestingly a new licence file is placed in the above directory. It has a different name but is binary identical, so I assume I am missing another step.

How can I programmatically register advinst using the licence file?

Thanks
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Build installer on AppVeyor

Hi Michael,

Please rename the received license65.dat file to license80.dat

Make sure that you added the license80.dat file in the related path:

Code: Select all

   C:\ProgramData\Caphyon\Advanced Installer
Let me know if the behavior still persists.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaelSaunders
Posts: 7
Joined: Tue Apr 26, 2016 9:22 am

Re: Build installer on AppVeyor

Thanks Dan, that works fine. :-)

Cheers
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Build installer on AppVeyor

That's great news Michael,

I'm glad you got this working.
Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Build installer on AppVeyor

Hello,

The command line option to register offline Advanced Installer has been added in version 13.5 of Advanced Installer released on December 14th, 2016.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”