I'm trying to conditionally install a component on the target machine -- depending if a file previously exists on the target machine.

What is the best way to implement this?

I see there is a condition parameter in the <component> element of the msi task.  This seems like the most logical place.  However, I can't seem to figure out how to evaluate whether a file exists on the target machine at runtime.  It seems like the <search> element of the msi task might be able to achieve this but the documentation suggests this is registry specific.  The documentation actually states that the search element can search for a file or directory but the required 'root' parameter confuses me and leads me to believe that it only searches registry values.

Thanks in advance!

Ted

Ted Quinby
Earth Information Technologies, Corp.
2453 Atwood Avenue
Madison, WI  53704

Ph: 608-442-0656    Cell: 608-335-3171
Fax: 608-442-0657

"Putting Information in its Place"™

Reply via email to