janisito
Posts: 78
Joined: Thu Apr 09, 2015 6:28 am

Selected features not installed during upgrade

Hi,

I have the following issue:

My installer has two features: Feature A and Feature B. Each feature installs a folder with a text file in it. When the user install version 1.0 he selects to install Feature B only, and hence only the folder named Feature B is installed.

Later when the application is upgraded to version 2.0 the user selects to install both Feature A and Feature B, however only Feature B is installed on the file system, which is very strange and not what I expected.

It seems the upgrade only installs the feature that was installed when installing version 1.0. How can I make the installer install select features during upgrade?
Installer
Installer
Image.jpg (62.03 KiB) Viewed 1690 times
I have made a small sample project to illusatrate my problem. See attached.

Please advise.

Thanks,

Regards
Jan
Attachments
App.zip
Advanced Installer Sample Project
(8.41 KiB) Downloaded 185 times
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Selected features not installed during upgrade

Hello Jan,

Most likely, 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:

- go to "Upgrades" page

- check the "Customize Advanced Installe upgrade rules" option

- from under "Upgrades", please double click on the upgrade that has the OLDPRODUCTS property assigned to it

- "Upgrade Action" tab --> uncheck the "Enable Migrate Features action" option

This way, the featureA should not be installed as expected and the folder should be created.

Hope this helps!

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

Return to “Common Problems”