FontsFolder resolves to the Windows FontsFolder, not your sub folder. Just change the Id.
Best regards, Sebastian Brand Instyler Software - http://www.instyler.com On Feb 7, 2008, at 10:58 , James Fysh wrote: > Hi all, > > I've been having a hell of a time with WiX over the last few hours. > All I want to do is have a directory below my main installation > directory, etc, then a directory within this directory, fonts and a > file within this directory, fonts.conf, e.g. > > c:\MyApp > c:\MyApp\bin > ... > c:\MyApp\etc > c:\MyApp\etc\fonts > c:\MyApp\etc\fonts\fonts.conf > > However, I have not been able to get WiX to create the fonts > directory, or create the fonts.conf file. My current installer > script (trimmed down) looks like this: > > MyApp.wxs: > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="ProgramFilesFolder"> > <Directory Id="INSTALLLOCATION" Name="Softel"> > <Directory Id="WorkQueueFolder" ShortName="SwiftvTX" > Name="Swift vTX"> > <?include JobStore.wxi ?> > <Directory Id="EtcFolder" Name="etc"> > <?include etc.wxi ?> > <Directory Id="FontsFolder" Name="fonts"> > <?include fonts.wxi ?> > </Directory> > </Directory> > </Directory> > </Directory> > </Directory> > > .... > > <Feature Id="Complete" Title="vTX Work Queue" Description="Installs > all vTX Work Queue components" Display="expand" Level="1" > ConfigurableDirectory="INSTALLLOCATION"> > <Feature Id="WQApp" Title="Work Queue Application" > Description="Installs the vTX WorkQueue components" Level="1"> > <!--bin folder--> > <ComponentRef Id="CommandPromptExe" /> > ... > <ComponentRef Id="placeholder" /> > <ComponentRef Id="CreateFF" /> > <ComponentRef Id="RemoveFF" /> > <ComponentRef Id="fonts.conf" /> > ... > > </Feature> > </Feature> > > etc.wxi: > > <?xml version="1.0" encoding="utf-8"?> > <Include> > <Component Id="placeholder" Guid="42B6D4D0-0DA3-439A-AF27- > D8853F391AF4"> > <File Id="placeholder" Name="placeholder" KeyPath="yes" > Source="placeholder" /> > </Component> > </Include> > > fonts.wxi: > > <?xml version="1.0" encoding="utf-8"?> > <Include> > <Component Id="CreateFF" Guid="E82AE9FC-0BDD-4210-A57D- > B0EA4E77B806"> > <CreateFolder /> > </Component> > <Component Id="fonts.conf" Guid="95DC007F-7604-40B2-82E2- > D3A1438982A0"> > <File Id="fonts.conf" Name="fonts.conf" KeyPath="yes" > Source="..\..\..\_distribution\release\etc\fonts\fonts.conf" /> > </Component> > <Component Id="RemoveFF" > Guid="0992F524-024E-4D63-95B1-3DC009B7B660" > > <RemoveFolder Id="RemoveFontsFolder" On="uninstall" /> > </Component> > </Include> > > > Sorry it is a little messy, but that's basically what I'm doing > now. I end up with the etc folder, and the placeholder file inside > the etc folder, but the fonts folder & fonts.conf do not make it > into the directory. > > Can anyone give me any idea of why this might be failing to recreate > the directories correctly? I have tried a lot of different > variations on the above theme, but they all seem to end up with > either no etc folder at all, or only the etc folder & placeholder. > > Thanks in advance, > > James > > > ________________________________________________________________________ > This e-mail has been scanned for viruses by MessageLabs. > ------------------------------------------------------------------------- > 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 ------------------------------------------------------------------------- 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