Searching for a File in a Specific Location

Aa371557.wedge(en-us,VS.85).gifTo search for a file in a specific location on a user system

  1. List the file signature and name in the Signature Table. The remaining fields in this record can be null to search for any version of MyApp.exe.

    Signature Table

    SignatureFile name

    AppFile

    MyApp.exe

     

  2. Enter the property that the Installer is to set if MyApp.exe is installed.

    AppSearch Table (partial)

    PropertySignature

    MYAPP

    AppFile

     

  3. Use the DrLocator Table. Enter the full path to the file on the user system in the Path field. Enter a value of 0 into the Depth column to search the bin folder.

    DrLocator Table

    SignatureParentPathDepth

    AppFile

    C:\Program Files\MyProducts\Projects\bin

    0

     

  4. Include the AppSearch action in the action sequence. If MyApp.exe is installed in C:\Program Files\MyProducts\Projects\bin, the Installer sets the property MYAPP to the location of file.

 

 

Show: