Set Installed Detection

Command Syntax

NoteThe "SetInstalledDetection" command has been renamed to "UpdateInstalledDetection".

/UpdateInstalledDetection <update_name>
        -detection_type {RegKeySearch|FileVersionSearch|FileSizeSearch|CustomExe}
        -path <path>
        -expected_value <expected_value>
        -arguments <arguments>
        [-no_redetect]
        [-64bit]

Sets an update's installed detection. Its equivalent UI is the Update Installed Detection Tab.

Parameters:

  • <update_name>
  • The unique identifier name of the update. In the GUI this is the name from the Organization tree in the Updates page from the Update Configuration Project.
  • -detection_type {RegKeySearch|FileVersionSearch|FileSizeSearch|CustomExe}
  • Specifies the detection method for the updates.
  • -path <path>
  • When used with RegKeySearch detection type, this is the key path in the registry. For FileVersionSearch and FileSizeSearch detection types, this is the location of the file that must be present in order for the update process to be considered successful. In case the detection type is set to CustomExe, this is the location of the executable file.
  • -expected_value <expected_value>
  • When used with RegKeySearch detection type, this is the expected registry value. For FileVersionSearch and FileSizeSearch detection types, this is the expected version, expected size, respectively.
  • -arguments <arguments>
  • Used only with CustomExe detection type, this parameter specifies the arguments which are passed to the custom detection executable when running it.
  • -no_redetect
  • Optional parameter used to disable detecting the update installation after the update was installed.
  • -64bit
  • Optional parameter used with RegKeySearch detection type to check for 64-bit registry entries. If this switch is not specified, only 32-bit registry entries will be checked on a 64-bit machine.

Example

AdvancedInstaller.com /edit YourUpdatesConfigurationProject.aip
    /UpdateInstalledDetection YourUpdateName
    -detection_type RegKeySearch
    -path "HKUD\Software\Caphyon LTD\Advanced Installer 12.8\Version"
    -expected_value "12.8.0.0"
    -64bit