a.varantes
Posts: 8
Joined: Fri Aug 13, 2021 5:42 pm

Silent installation CMD, new version with specific feature trouble

Fri Aug 13, 2021 5:51 pm

I've an installation with several features.
I can install (new installation) the software without any problems using the command line
My.exe /exenoui /qn /L*V "c:\logs.txt" FEATURE1="true" FEATURE2="true"

When I've a new product version and a older version installed on a machine with all the features installed, my command appears to be not working.
If I run the CMD, the older version is uninstalled correctly but my new installation appears to "don't care" about my specific features (FEATURE1="true") to be installed and installs all the features anyway.

If I run this from the EXEUI it only installs the specified features but by CMD it doesn’t work.

Any help with this, many thanks!

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Silent installation CMD, new version with specific feature trouble

Mon Aug 16, 2021 12:12 pm

Hi,

This is happening due to the "MigrateFeatureState" action, whose purpose is to take the state of the features from the old package and transfer that to the new package.

In order to avoid this, please proceed as it follows:

In the newer version of your project:
  1. Go to the “Upgrades” page.
  2. Check the “Customize Advanced Installer upgrade rules” option from the “Application Versions” section.
  3. In the "Upgrades" table, double click on the upgrade code which has the property set to "OLDPRODUCTS".
  4. Select the “Upgrade Action” tab and uncheck the “Enable Migrate Features action” option.
migrateFeatures.png
migrateFeatures.png (55.52KiB)Viewed 6988 times

Hope this helps! If you have any other questions please don't hesitate to contact us.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

a.varantes
Posts: 8
Joined: Fri Aug 13, 2021 5:42 pm

Re: Silent installation CMD, new version with specific feature trouble

Thu Aug 19, 2021 2:34 pm

Hello, liviu.

Thank you for your answer, we've already made the change and now everything seems to be OK.

Best regards

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Silent installation CMD, new version with specific feature trouble

Thu Aug 19, 2021 4:57 pm

You are always welcome, Antonio!

We are glad everything works as expected now!

Please let us know if there is anything else we could help you with and we will be glad to assist.

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

Return to “Common Problems”