Command line required common feature - Advanced Installer Community
jstart
Posts: 18
Joined: Fri Apr 17, 2015 10:48 am

Command line required common feature

Hi,

Ref: Advanced Installer v11.4.1 build 58484.

We have a setup where the setup UI behaves correctly, but the command line doesn’t.
We have created several ‘features’ named: Common, MMC and TA.
‘Common’ contains some licence checking code that is written to the ‘Program Files’ directory and is called during setup and every time the application is run. Both the MMC and TA rely on this licence check to function.
On the ‘Common’ feature, ‘Always install this feature’ is checked, however I think this only applies to the UI.
When attempting to install via the command line:

msiexec /i setup.msi ADDLOCAL=Common,MMC

everything works ok, however if ‘Common’ is missed off:

msiexec /i setup.msi ADDLOCAL=MMC

the installation fails as the licensing binary contained within the ‘Common’ feature “is not marked for installation”.

Is there a way to always force the ‘Common’ feature to be installed via the command without having to specify it on the command line?
Or are we approaching this from the wrong way with regards to the way we have added features / binaries?

Thanks,
James
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Command line required common feature

Hi James and welcome to Advanced Installer forums,

The value of the ADDLOCAL property is a list of features that are delimited by commas, and are to be installed locally. While doing a silent install, if ADDLOCAL is not specified, then those features will be installed whose conditions evaluate to true during install time.

For details, please check the ADDLOCAL property article.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jstart
Posts: 18
Joined: Fri Apr 17, 2015 10:48 am

Re: Command line required common feature

Hi Dan, thanks for the prompt reply.

I understand what you have written, and I’ve read the MS ADDLOCAL property article.

What I want to achieve is that the ‘Common’ feature is always installed with the MMC or TA features even if ‘Common’ is not explicitly specified, e.g.:

msiexec /i setup.msi ADDLOCAL=MMC <<<< I want this to install Common and MMC
msiexec /i setup.msi ADDLOCAL=TA <<<< I want this to install Common and TA
msiexec /i setup.msi ADDLOCAL=MMC,TA <<<< I want this to install Common, MMC and TA.

In essence, both the ‘MMC’ and ‘TA’ features have a dependency on the ‘Common’ feature.

Is this achievable, or is it a case of changing our user guide documentation?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Command line required common feature

Hello,
the ‘Common’ feature is always installed with the MMC or TA features even if ‘Common’ is not explicitly specified
No, this is not possible.
In order to always install the the Common feature then you always need to add it to the ADDLOCAL property.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”