Skip to content

Latest commit

 

History

History
63 lines (30 loc) · 1.78 KB

searching-for-a-file-in-a-specific-location.md

File metadata and controls

63 lines (30 loc) · 1.78 KB
description ms.assetid title ms.topic ms.date
During a Windows Installer installation, the installer can search for a file in a specific location on the user's system.
127d83a2-b651-42ef-ac7c-a7fa1b15cf27
Searching for a File in a Specific Location
article
05/31/2018

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.