Redigera

Dela via


Searching for a Registry Entry and Creating a Property Holding the Value of the Registry

To search for a registry entry and create a property holding the value of that file

  1. Do not add the signature to the Signature Table or the CompLocator Table. If a file signature is listed in the AppSearch Table and is not listed in the Signature or CompLocator tables, the Installer looks in the RegLocator Table.

  2. Specify the registry entry to be searched for in the RegLocator Table. If the signature is absent from the Signature Table and the value of the Type column is msidbLocatorTypeRawValue, then the search is assumed to be for the specific registry key name pointed to by the RegLocator Table.

    RegLocator Table (partial)

    Signature_ Root Key Name Type
    AppValue
    2
    SOFTWARE\Microsoft\MyApp

    Myname
    msidbLocatorTypeRawValue

     

  3. Finally, populate the AppSearch Table so that the AppSearch Action returns the value of AppValue. After the Installer executes the AppSearch Action, the value of MYREGVAL is the value of AppValue.

    AppSearch Table (partial)

    Property Signature
    MYREGVAL
    AppValue