It seems I can get that job done like this.

<Property Id="PROP" >

<DirectorySearch Path="[INSTALLDIR]" Id="dictionaries" Depth="5">

</DirectorySearch>

</Property>

But, the property always gets set to "C:\". I wonder how to use
'DirectorySearch'
to verify the install dir is empty or not.

Any ideas?

On Thu, Jun 25, 2009 at 9:33 PM, Rob Mensching <r...@wixtoolset.org> wrote:

> No, no element built in to do this.
>
> sandun css wrote:
> > Hi,
> >
> > I need to check whether the install derectory is empty or not.
> >
> > i.e.
> >
> > <Directory Id="TARGETDIR" Name="SourceDir">
> >
> >       <Directory Id="ProgramFiles64Folder" Name="PFiles">
> >
> >        <Directory Id="INSTALLDIR" Name="My app"/>
> >
> > </Directory>
> >
> > When we browse a dirctory as the install dir, I need to make sure it is
> > empty. Is there a tag in WiX to do this?
> >
> > Thanks,
> >
> > Saman
> >
> ------------------------------------------------------------------------------
> > Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> > Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> $250.
> > Need another reason to go? 24-hour hacker lounge. Register today!
> >
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to