prerak6962
Posts: 112
Joined: Mon Dec 08, 2014 5:26 pm

Update Product via Command line

Hello,

In one of my projects, I am able to install the product silently using command line. I use the following command in PowerShell:

Code: Select all

 & '.\Setup.exe' /qn VAR=test
This works completely fine. However, now I want to add the ability to update the package via command line when a new version is released.
I could not find anything at https://www.advancedinstaller.com/user- ... -file.html for the update option.

The update contains only some modifications in files (added/removed). So, is there a way to achieve this with something like:

Code: Select all

& '.\UpdatedSetup.exe' /qn /something 
Thank you.
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Update Product via Command line

Hello,

Please note that, as long as you increase the Product Version (e.g. from 1.0.0 to 1.0.1) and generate a new ProductCode, the upgrade should be happen automatically when the newer setup is launched, either from the command line or with full UI.

A major upgrade consists of the:

- uninstall of the older version

- install of the newer version

In your case, the Setup.exe will be uninstalled first and then the UpdatedSetup.exe will be installed.

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

Return to “Common Problems”