title: How to create a sub folder in installation folder using WiX
body: <p>How to create a sub folder in installation folder(which in my case is named WWU)? I am creating an installation folder named WWU in Program Files, I want to create a sub folder named image inside WWU folder which will contain some necessary images files. I tried doing so using below code but I am unable to get folder being created.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
  
  &lt;Product Id="{AADE647C-36C5-48A7-A88F-5AB8D6BAE7FE}" Name="WWU 1.0" Language="1033" Version="1.0.0.0" Manufacturer="Aricent Group" UpgradeCode="f89a1900-bdb0-4fec-a035-e69ae882716b"&gt;
      &lt;Package Id="*" Keywords="Installer" Description="Aricent's WWU 1.0 Installer" Comments="WWU is a registered trademark of Aricent Group." Manufacturer="Aricent Group" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /&gt;
  
      &lt;UIRef Id="WixUI_Minimal"/&gt;
      &lt;WixVariable Id="WixUILicenseRtf" Value="$(var.WWU_UI.TargetDir)License.rtf"/&gt;  
      &lt;MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /&gt;
  
      &lt;Media Id= "1" Cabinet="WWU.cab" EmbedCab="yes"/&gt;
  
      &lt;Feature Id="Complete" Title="WWU`_Installer" Description="The complete package." Display="expand" ConfigurableDirectory="INSTALLFOLDER" Level="1"&gt;
          &lt;ComponentGroupRef Id="ProductComponents"/&gt;
          &lt;ComponentGroupRef Id="Shortcuts"/&gt;
      &lt;/Feature&gt;
  
      &lt;Feature Id="ImagePack" Title="Images" Level="1"&gt;
          &lt;ComponentGroupRef Id="ImageFiles"/&gt;
      &lt;/Feature&gt;
  &lt;/Product&gt;
  
  &lt;Fragment&gt;
  &lt;UI&gt;
      &lt;Dialog Id="UserRegistrationDlg" Width="360" Height="250" Title="[ProductName] Setup" NoMinimize="yes"&gt;
          &lt;Control Id="NameLabel" Type="Text" X="45" Y="70" Width="100" Height="15" TabSkip="no"  Text="User Name:"/&gt;
          &lt;Control Id="NameEdit" Type="Text" X="45" Y="80" Width="220" Height="18" Property="USERNAME" Text="{80}" /&gt;
          &lt;Control Id="OrganizationalLabel" Type="Text" X="45" Y="110" Width="100" Height="15" TabSkip="no"  Text="Organization:"/&gt; 
      &lt;/Dialog&gt;
  &lt;/UI&gt;  
  &lt;/Fragment&gt;
  
  &lt;Fragment&gt;
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
          &lt;Directory Id="ProgramFilesFolder"&gt;
              &lt;Directory Id="INSTALLFOLDER" Name="WWU" /&gt;
          &lt;/Directory&gt;
          &lt;Directory Id="ProgramMenuFolder" Name="Programs"&gt;
              &lt;Directory Id="ProgramMenuDir" Name="WWU 1.0" /&gt;
          &lt;/Directory&gt;
          &lt;Directory Id="DesktopFolder" Name="Desktop" /&gt;
          &lt;Directory Id="ImageFolder" Name="image"/&gt;
      &lt;/Directory&gt; 
  &lt;/Fragment&gt;
  
  &lt;Fragment&gt;
      &lt;ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"&gt;
          &lt;!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. --&gt;
          &lt;Component Id="MainExecutable" Guid="{434D54CC-D875-4B45-8125-CCCB8119A053}"&gt;
              &lt;!-- TODO: Insert files, registry keys, and other resources here. --&gt;
              &lt;File Id="WWUEXE" Name="WWU_UI.exe" Source="$(var.WWU_UI.TargetDir)WWU_UI.exe" KeyPath="yes"&gt;
                  &lt;Shortcut Id="startmenuWWU" Directory="ProgramMenuDir" Name="WWU Tutorial 1.0" WorkingDirectory="IINSTALLDIR" Icon="WWU_UI.exe" Advertise="yes"/&gt;
                  &lt;Shortcut Id="desktopWWU" Directory="DesktopFolder" Name="WWU Tutorial 1.0" WorkingDirectory="IINSTALLDIR" Icon="WWU_UI.exe" Advertise="yes"/&gt;
              &lt;/File&gt;
          &lt;/Component&gt;
          &lt;Component Id="SQLiteInterop" Guid="{7DBF7C38-3001-403F-911E-AF3C318F6219}"&gt;
              &lt;File Id="Interopdll" Name="SQLite.Interop.dll" Source="$(var.WWU_UI.TargetDir)x86\SQLite.Interop.dll" /&gt;  
          &lt;/Component&gt;
          &lt;Component Id="SQLitedll" Guid="{DB1FB7CC-6D89-478B-9276-8F4F987027AC}" &gt;
              &lt;File Id="SQLite"  Name="System.Data.SQLite.dll" Source="$(var.WWU_UI.TargetDir)System.Data.SQLite.dll" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="SQLiteLinqdll" Guid="{C65A7DD8-6F1A-4E02-86B2-2B2EDFFDD684}" &gt;
              &lt;File Id="SQLiteLinq"  Name="System.Data.SQLite.Linq.dll" Source="$(var.WWU_UI.TargetDir)System.Data.SQLite.Linq.dll" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Log4net" Guid="{5266C74E-D7F8-4091-90C2-B661A63B7909}" &gt;
              &lt;File Id="Log4netdll"  Name="log4net.dll" Source="$(var.WWU_UI.TargetDir)log4net.dll" /&gt;
          &lt;/Component&gt;          
      &lt;/ComponentGroup&gt;
  
      &lt;ComponentGroup Id="Shortcuts" Directory="ProgramMenuDir"&gt;
          &lt;Component Id="ProgramMenuShortcut"&gt;
              &lt;RemoveFolder Id="ProgramMenuDir" On="uninstall" /&gt;
              &lt;RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="" KeyPath="yes" /&gt;
          &lt;/Component&gt;  
      &lt;/ComponentGroup&gt;  
  
      &lt;!-- image files for image folder --&gt;
      &lt;ComponentGroup Id="ImageFiles" Directory="ImageFolder"&gt;
          &lt;Component Id="Asfo" Guid="{B8031331-076F-4C75-B231-3EBCBBD8D29C}"&gt;
              &lt;File Id="Asfoimg" Name="0sf0.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\0sfo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Asfob" Guid="{D0D78785-3CFC-49C7-9470-90250034D331}"&gt;
              &lt;File Id="Asfobimg" Name="0sfob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\0sfob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Aufo" Guid="{6912A60F-F612-4AB8-B530-A0EA71AF8587}"&gt;
              &lt;File Id="Aufoimg" Name="0ufo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\0ufo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Aufob" Guid="{AD38A28F-3518-4AA4-B169-EC5077844E83}"&gt;
              &lt;File Id="Aufobimg" Name="0ufob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\0ufob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Bsfo" Guid="{D9A2BD2E-70C2-47DE-8B20-501A9D77A3CD}"&gt;
              &lt;File Id="Bsfoimg" Name="1sfo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\1sfo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Bsfob" Guid="{AC063280-4698-4605-B74C-471DEAD9D595}"&gt;
              &lt;File Id="Bsfobimg" Name="1sfob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\1sfob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Bufo" Guid="{0D840A42-3119-4283-9220-BCD722FA4D31}"&gt;
              &lt;File Id="Bufoimg" Name="1ufo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\1ufo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Bufob" Guid="{A8425CC9-5787-419D-8D37-8B6F16726C84}"&gt;
              &lt;File Id="Bufobimg" Name="1ufob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\1ufob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Csfo" Guid="{CBB6870F-3FBA-4ADC-B508-D865A8642C19}"&gt;
              &lt;File Id="Csfoimg" Name="2sfo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\2sfo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Csfob" Guid="{E0EBE823-11EB-4054-A544-1F9859D06A00}"&gt;
              &lt;File Id="Csfobimg" Name="2sfob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\2sfob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Cufo" Guid="{E1870A35-B398-4B4A-AC1C-0A701A5188F8}"&gt;
              &lt;File Id="Cufoimg" Name="2ufo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\2ufo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Cufob" Guid="{3A6EA0AE-38C0-496C-B977-3342F3C6D8B8}"&gt;
              &lt;File Id="Cufobimg" Name="2ufob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\2ufob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Dsfo" Guid="{2D575CA7-96DA-40A1-B1EC-173F455E47C4}"&gt;
              &lt;File Id="Dsfoimg" Name="3sfo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\3sfo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Dsfob" Guid="{C08977BB-8FF7-459F-B3B3-8A9E75152EF5}"&gt;
              &lt;File Id="Dsfobimg" Name="3sfob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\3sfob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Dufo" Guid="{552B1B41-247D-490B-9433-B642CAD6A70A}"&gt;
              &lt;File Id="Dufoimg" Name="3ufo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\3ufo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Dufob" Guid="{3140C586-45C8-4496-BADD-3F55D9F2B751}"&gt;
              &lt;File Id="Dufobimg" Name="3ufob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\3ufob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Esfo" Guid="{311F89D5-5E53-4B45-87F7-B521ACC6D7C1}"&gt;
              &lt;File Id="Esfoimg" Name="4sfo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\4sfo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Esfob" Guid="{E9239C1D-3F5A-497B-92D4-0830E739A5E9}"&gt;
              &lt;File Id="Esfobimg" Name="4sfob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\4sfob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Eufo" Guid="{8A057476-D9B3-4033-9906-567377D97304}"&gt;
              &lt;File Id="Eufoimg" Name="4ufo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\4ufo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Eufob" Guid="{8CE17A52-19B1-4FB6-9D12-0B231E3DDE4D}"&gt;
              &lt;File Id="Eufobimg" Name="4ufob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\4ufob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Fsfo" Guid="{D0433C83-BCC5-41EB-8015-9D76E4457448}"&gt;
              &lt;File Id="Fsfoimg" Name="5sfo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\5sfo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Fsfob" Guid="{C65BD8E6-C9F1-4A75-9A23-3A6DB35B4BFC}"&gt;
              &lt;File Id="Fsfobimg" Name="5sfob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\5sfob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Fufo" Guid="{4F9D5939-7011-4D99-A65B-3F0A2130622B}"&gt;
              &lt;File Id="Fufoimg" Name="5ufo.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\5ufo.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Fufob" Guid="{90D7B520-4A37-42AC-AB62-F5485A89FCC9}"&gt;
              &lt;File Id="Fufobimg" Name="5ufob.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\5ufob.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="Ari_WWU" Guid="{086B969B-BAA2-4DFA-B699-F56FF885AB26}"&gt;
              &lt;File Id="Ari_WWUimg" Name="Ari_WWU.ico" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\Ari_WWU.ico" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="auto" Guid="{9625F82B-B206-40E6-9310-8D46563E20C6}"&gt;
              &lt;File Id="auto" Name="auto.png" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\auto.png" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="info" Guid="{DDCBB410-77DD-49C9-9372-98DD2747121E}"&gt;
              &lt;File Id="infoimg" Name="info.png" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\info.png" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="manual" Guid="{4F8768A8-E44C-4781-9680-95CAC631CFB7}"&gt;
              &lt;File Id="manualimg" Name="manual.png" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\manual.png" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="off" Guid="{702551D4-34DD-4B1B-B4F6-614DEFA4542A}"&gt;
              &lt;File Id="offimg" Name="off.png" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\off.png" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="on" Guid="{7682A68D-712B-4F70-9EE2-FB4F0E04947D}"&gt;
              &lt;File Id="onimg" Name="on.png" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\on.png" /&gt;
          &lt;/Component&gt;
          &lt;Component Id="refresh" Guid="{9815CA13-659C-466D-B759-5EF557069D1B}"&gt;
              &lt;File Id="refreshimg" Name="refresh.png" KeyPath="yes" Source="$(var.WWU_UI.TargetDir)image\refresh.png" /&gt;
          &lt;/Component&gt;           
      &lt;/ComponentGroup&gt;
  &lt;/Fragment&gt;
  
      &lt;Fragment&gt;
          &lt;Icon Id="WWU_UI.exe" SourceFile="$(var.WWU_UI.TargetDir)WWU_UI.exe"/&gt;
      &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>