I would like to have a conditional based on the presence of a certain file on the end user's drive. The file is in the user's directory, so I would like to use some environment variables to locate it. This is essentially what I want:
<Property Id="FILE_TEST"> <DirectorySearch Id="File_Path" Path=" %HOMEDRIVE%%HOMEPATH%" Depth="0"> <FileSearch Id="File" Name="foo.txt" /> </DirectorySearch> </Property> <Condition Message="This setup requires a certain file"> FILE_TEST </Condition> Which does not work. Note that I am not looking to use pre-processor variables such as $(env.HOMEDRIVE)$(env.HOMEPATH) because then the string would be tied to my user directory, and not the person who is running the installer. Is this possible, or do I have to get this info out of the registry? Thanks, -Ben ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users