Custom Action To Modify ADDLOCAL? - Advanced Installer Community
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Custom Action To Modify ADDLOCAL?

Anyone ever trying using a global command line parameter, e.g. CXMY_CITRIX_SERVER=1, to trigger adding a feature to the ADDLOCAL property for a command line, silent install?

Sounds do-able, correct? Of course it needs to be scheduled early on and need someway to "append" to ADDLOCAL.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action To Modify ADDLOCAL?

Hello,

You can use public properties and "Add Install-time Conditions" for each feature from the Organization page.

For example you have the following "Installation Behavior" section settings in the Organization page for "Cxmy Citrix Server" feature:
  • "Not Installed" option enabled
  • "Add Install-time Conditions" -> "Installed if:" field set to

    Code: Select all

    CXMY_CITRIX_SERVER
Installing the package with a command line like:

Code: Select all

msiexec.exe /i "C:\YourInstaller.msi" /qn CXMY_CITRIX_SERVER=1
... will silently install the "Cxmy Citrix Server" feature.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Custom Action To Modify ADDLOCAL?

Mihai,

That was my belief as well BUT I think this did not work unless that feature's identifier is specified in the ADDLOCAL= setting.

My CitrixServer feature is a sub-feature of Citrix_Support which is a sub-feature under Main Feature Discovery_Client. So passing ADDLOCAL=Discovery_Client and CITRIX_SERVER=1 did not seem to install CitrixServer .

So my organization is like:

Discovery_Client
______Citrix_Support
___________CitrixServer
Scott Jeslis
Senior Software Engineer
Cicero, Inc.

Return to “Common Problems”