Guys

We want to use directorysearch to find out if the directory selected
by the user already exists.  We want to set a registry to 1 if the
directory exists and 0 if it does not.  We thought the following wix
v2 snippet would do it but it appears to not be working.  Any idea
why?

<Property Id='EXISTING_DATA_DIR'>
  <DirectorySearch Id='dsid' Depth='0'  Path='..path to find'/>
</Property>

<Component ...>
   <Condition>Not EXISTING_DATA_DIR</Condition>
  .. write existing data dir =0 into registry ..
   ... dir and file elements for data dir only ...
</Component>

<Component>
  <Condition>EXISTING_DATA_DIR</Condition>
  .. write existing data dir =1 into registry ..
</Component>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to