[wix-users] How to use if..else condition in Wix toolset?

Joel Budreau joel.budreau at gmail.com
Mon Oct 24 09:21:19 PDT 2016


Use the <FileSearch> element to build an AppSearch entry that looks for the
presence of web.config. If it's found, have a custom action overwrite the
directory property associated with the files you need to install (make sure
this directory-overwrite action is scheduled after CostFinalize).

On Mon, Oct 24, 2016 at 4:58 AM, TMG Test <gpattmgtest at gmail.com> wrote:

> Hello Team,
>
> Here is my requirement: if web.config file exists in
> D:\default\website\web.config I have to copy some files to
> D:\default\website location else copy the same files to C:\inetpub\wwwroot
> location.
>
> How to write this condition in .wxs file?
>
> Could you help, please?
>
> Thank You,
>
>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list