Path should be a directory. Use INSTALLDIR without brackets (which is a 
property). You don't need a custom action.

Justin Zhen Tu wrote:
>
> Hi there,
>
> I am having problem with my WIX installer and I wonder if there anyone 
> can help me out.
>
> The problem is I need to check if this file “localappsetting.config” 
> exists in the installation folder, copy a new file if it doesn’t exist 
> otherwise ignore. Below is my code and it does work:
>
> <Property Id="FILEEXISTS">
>
> <DirectorySearch Id="CheckFileDir" Path="[INSTALLDIR]" Depth="0">
>
> <FileSearch Id="CheckFile" Name="LocalAppSettings.config" />
>
> </DirectorySearch>
>
> </Property>
>
> <Feature Id='LocalAppSettingsTemplate' Level='1'>
>
> <ComponentRef Id='C_LocalAppSettings' />
>
> <Condition Level="0">FILEEXISTS</Condition>
>
> </Feature>
>
> I have read a post here said I need to schedule a Custom Action and I 
> wonder if someone can point me an example on how to do it.
>
> Many thanks.
>
> Jusitn
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

-- 

Heath Stewart
Deployment Technology Group, Microsoft
http://blogs.msdn.com/heaths


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to