Searching for a File in a Specific Location

To 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

    Signature File name
    AppFile
    MyApp.exe

     

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

    AppSearch Table (partial)

    Property Signature
    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

    Signature Parent Path Depth
    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.