ojanacek
Posts: 11
Joined: Fri Jul 28, 2017 2:29 pm

Scripted install of AI itself

We created a PowerShell script a to download a specified version of AI and install to a build agent. While this works it install by default side by side with previous versions. However, our other scripting relies on the installation being in C:\Program Files (x86)\Caphyon\Advanced Installer\ without a version specified. For that reason we set APPDIR of new installations like so. The problem is that when we tried this is installs the new version yet the old version binaries stay in the folder. Is there an installer parameter we could pass to specify that we would like to uninstall the older versions before installing the new one?
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Scripted install of AI itself

Hello,

As far as I know, when silently installing Advanced Installer from command line, the previous version should automatically be removed.

In your case, it is installed side-by-side?

If that is the case, could you please try a command line as it follows and let me know if that helps:

Code: Select all

msiexec /i <path_to_AdvancedInstaller> /qn AI_UPGRADE="Yes"
Hope this helps!

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

Return to “Common Problems”