vanchen
Posts: 5
Joined: Mon Jun 10, 2019 2:53 pm

install\uninstall feature in quiet mode during maintanence

Hello!

Case:
I am trying to make an optional feature installation by passing parameters in command line (INSTALLFEATURE="I") during quiet maintanence installation.

In UI mode i am using "InitEvents" in optional dialog to mark Feature install\Uninstall, and it works fine.
But in quiet mode this case does not works.
Another option i tryes is "Installation behavior" in "Organization" page, but it does not works too.
I am set "InstallIf" condition as INSTALLFEATURE="I", but installer ignores it.

How can i install\uninstall feature in quiet mode during maintanence?
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: install\uninstall feature in quiet mode during maintanence

Hello and welcome to Advanced Installer forums,

The way of doing that is indeed through the "Installation Behavior" section of your feature.

I have tested this and it worked as expected on Advanced Installer 16.0.

In your case, most probably, you do not set the property.

For instance, let's say that the installation behavior of your feature is as it follows:

Default: Not installed
Installed if: INSTALLFEATURE="1"


The command line should look something like this, in order for the feature to be installed:

Code: Select all

msiexec /i <path_to_your_msi> /qn INSTALLFEATURE="1"
This way, the condition will be evaluated as true and the feature will be installed.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vanchen
Posts: 5
Joined: Mon Jun 10, 2019 2:53 pm

Re: install\uninstall feature in quiet mode during maintanence

Hello!
Thank you for your reply.

I made example just like you said.

It really works fine during first install.
But if in first install i do not install feature and trying to install feature during meintanence it does not works.

I am attached an example.

First time i am install by command line:
msiexec /i <path_to_>Test.msi

Feature2 is not installed. As supposed, i did not set INSTALLFEATURE="1"

After that i am try to run maintenence in command line:
msiexec /i <path_to_>Test.msi /qn INSTALLFEATURE="1"

Feature2 is still not installed.

If i pass in command line INSTALLFEATURE="1" in first install, Feature2 will be installed.

Did you test your case in maintanence mode?
Attachments
Test.rar
(2.77 KiB) Downloaded 173 times
vanchen
Posts: 5
Joined: Mon Jun 10, 2019 2:53 pm

Re: install\uninstall feature in quiet mode during maintanence

Finally, i found solution.

For install\uninstall feature i am use ADDLOCAL=<Feature name> and REMOVE=<Feature name> parameters of msiexec.
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: install\uninstall feature in quiet mode during maintanence

Hello,

Thank you for your followup on this.

I am glad you got this working.

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

Return to “Common Problems”