I am trying to make a PowerShell script to automatically run the Advanced Installer setup. How can we automatic install or skip the installation of certain features from our Feature Selection Tree component?
We have a lot of features, where some of them have parents. I was thinking to pass them as properties like this:
Code: Select all
someExe.exe /qb /L*V C:\Temp\install.log APPDIR="$($settings.applicationDirectory)" ADFeature="false"
Code: Select all
FEATURE_ADFeature="false"
FEATURE=ADFeature="false"
Code: Select all
<COMPONENT cid="caphyon.advinst.msicomp.MsiFeatsComponent">
<ROW Feature="ABE53E7EFB41529843DB0F4141C824" Feature_Parent="SAPFeature" Title="Visual C++ 2010 SP1 x86 (MFC Security Update)" Description="Visual C++ 2010 SP1 x86 (MFC Security Update)" Display="0" Level="1" Attributes="16" />
<ROW Feature="ADFeature" Feature_Parent="SlaveFeature" Title="AD Interface" Description=" Display="23" Level="1" Directory_="APPDIR" Attributes="0" "/>
<ROW Feature="ArchiveSystemObjectsFeature" Feature_Parent="DCSFeature" Title="Archive System Objects" Description="" Display="97" Level="1" Directory_="APPDIR" Attributes="0" />
<ROW Feature="AuthorityServiceFeature" Feature_Parent="Services" Title="Authority Service" Description="" Display="89" Level="1" Directory_="APPDIR" Attributes="0"/>
<ROW Feature="B63_41B8_9CB7_8C5E07C0FC18_" Feature_Parent="SAPFeature" Title="Visual C++ 2010 SP1 x64 (MFC Security Update)" Description="Visual C++ 2010 SP1 x64 (MFC Security Update)" Display="0" Level="1" Attributes="16" />
<ROW Feature="BAMConfigFileFeature" Feature_Parent="BAMGlobalFeature" Title="Config File" Description="." Display="0" Level="1" Directory_="APPDIR" Attributes="0" Components="AI_CustomARPName AI_ExePath BAM.LogDir BAM_ODBC_DRIVER CORE_ODBC_DRIVER ConfigDirectory"/>
...