hi i tried to implemet t a similar directory search with cutom action..but i was not able to find a solution..the only other alternate i found is to embed this directory search into a control button.Once the user clicks on the button this search takes place and based on the property value which has been set using the search i proceed to the next dialog
Justintu 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 > > -- View this message in context: http://www.nabble.com/Need-help-to-check-if-a-file-exists-in-the-installation-folder-tp15787705p15975046.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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