To search all fixed drives for a file
-
Enter 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 (partial)
Signature File Name AppFile
MyApp.exe
-
Enter the property that the Installer is to set if MyApp.exe is installed.
Property Signature MYAPP
AppFile
-
Use the DrLocator Table. Leave the Parent and Path fields empty to search all fixed drives of the user system. Specify in the Depth column the number of subdirectory levels to search. For example, setting Depth to 0 detects c:\MyApp.exe, but does not detect the file at a depth of 2, for example: c:\Program Files\MyApps\MyApp.exe.
DrLocator Table
Signature Parent Path Depth AppFile
3
-
Include the AppSearch action in the action sequence. If MyApp.exe is installed, the Installer sets the property MYAPP to the location of the file. If the file is installed, MYAPP evaluates as True in a conditional expression.
Send comments about this topic to Microsoft
Build date: 8/13/2009
© 2009 Microsoft Corporation. All rights reserved.