Set Component Attribute Command Option

Command Syntax

/SetComponentAttribute -feature_name <feature_id>
       [-component_name <component_id>]
       [-unset]
       [-run_from_source_only] [-transitive] [-optional] [-never_overwrite]
       [-shared_dll_reference_count] [-64bit_component] [-permanent]
       [-disable_registry_reflection] [-uninstall_on_supersedence]
       [-shared_amongst_packages]

This command will (re)set the specified attributes for the desired component(s).

Parameters:

  • <feature_id>
  • Specifies the ID of the feature containing the component(s).
  • [-component_name <component_id>]
  • An optional parameter which specifies the ID of the component for which the attributes to be (re)set. If this parameters is not set the attributes will be (re)set for all the components from the above specified feature.
  • [-unset]
  • An optional parameter, it should be used only if want to reset (equals to unticking the attribute(s) in our GUI) the attribute(s) of the specified component(s).
  • [-run_from_source_only]
  • [-transitive]
  • [-optional]
  • [-never_overwrite]
  • [-shared_dll_reference_count]
  • [-64bit_component]
  • [-permanent]
  • [-disable_registry_reflection]
  • [-uninstall_on_supersedence]
  • [-shared_amongst_packages]
  • The above list of attributes coresponds to exactly the same options available in the Advanced Installer GUI from Organization page, when you select a component.

Example:

AdvancedInstaller.com /edit MyProject.aip
/SetComponentAttribute -feature_name 64BitResources -64bit_component

The command from the above example will enable the "64-bit Component" attribute for all the components from the feature with the ID "64BitResources".