title: Wix Installer Error 2343
body: <p>so I have been trying to develop this installer for my application. I decided to change my GUI to <code>&lt;UIRef Id="WixUI_InstallDir" /&gt;</code>. According to a tutorial that I was reading I also need to include <code>&lt;Property Id="WIXUI_INSTALLDIR" Value="TOP_LEVEL_DIR" /&gt;</code> if I use that GUI. But, since I changed the GUI and added this line I am getting an error (2343). I have posted the MSI Log below as well and it is complaining about a location? </p>
  
  <p><strong>Error:</strong>
      MSI (c) (CC:84) [13:27:33:140]: Note: 1: 2343 
      DEBUG: Error 2343:  Specified path is empty.
      The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2343. The arguments are: , , 
      MSI (c) (CC:84) [13:27:34:663]: Product: Viewer 1.0 -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2343. The arguments are: , , </p>
  
  <pre><code>Action ended 13:27:34: WelcomeDlg. Return value 3.
  MSI (c) (CC:DC) [13:27:34:672]: Doing action: FatalError
  Action 13:27:34: FatalError. 
  Action start 13:27:34: FatalError.
  Action 13:27:34: FatalError. Dialog created
  Action ended 13:27:36: FatalError. Return value 2.
  Action ended 13:27:36: INSTALL. Return value 3.
  </code></pre>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>&lt;?xml version='1.0' encoding='windows-1252'?&gt;
  &lt;Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'&gt;
    &lt;Product Name='Viewer 1.0' Id='*' UpgradeCode='PUT-GUID-HERE'
      Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Direct'&gt;
      &lt;Package Id='*' Keywords='Installer' Description="Viewer Installer"
        Comments='Installer is a registered trademark.' Manufacturer='Direct'
        InstallerVersion='100' Languages='1033' Compressed='yes' 
        SummaryCodepage='1252' /&gt;
  
      &lt;Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" /&gt;
      &lt;Property Id='DiskPrompt' Value="1.0 Installation [1]" /&gt;
      &lt;Property Id="WIXUI_INSTALLDIR" Value="TOP_LEVEL_DIR" /&gt;
  
      &lt;Directory Id='TARGETDIR' Name='SourceDir'&gt;
        &lt;Directory Id='ProgramFilesFolder' Name='PFiles'&gt;
          &lt;Directory Id='Direct' Name='DMD'&gt;
            &lt;Directory Id='INSTALLDIR' Name='Viewer'&gt;
  
              &lt;Component Id='MainExecutable' Guid='*'&gt;
                &lt;Shortcut Id="startmenuViewer" Directory="ProgramMenuDir" 
                          Name="Viewer" WorkingDirectory='INSTALLDIR' 
                          Icon="Viewer.exe" IconIndex="0" Advertise="yes" /&gt;
                &lt;Shortcut Id="desktopViewer" Directory="DesktopFolder" 
                          Name="Viewer" WorkingDirectory='INSTALLDIR' 
                          Icon="Viewer.exe" IconIndex="0" Advertise="yes" /&gt;
  
                &lt;File Id='EXE' Name='Viewer.exe' DiskId='1' 
                      Source='Viewer.exe' KeyPath='yes'&gt;
                &lt;/File&gt;
                  &lt;ProgId Id="DMDCCDAV" Description="Viewer"&gt;
                     &lt;Extension Id="xml" &gt;
                      &lt;Verb Id="open" Argument="&amp;quot;%1&amp;quot;" 
                            TargetFile="EXE" /&gt;
                     &lt;/Extension&gt;
                  &lt;/ProgId&gt;
              &lt;/Component&gt;
  
            &lt;/Directory&gt;
          &lt;/Directory&gt;
        &lt;/Directory&gt;
  
        &lt;Directory Id="ProgramMenuFolder" Name="Programs"&gt;
          &lt;Directory Id="ProgramMenuDir" Name="Viewer"&gt;
            &lt;Component Id="ProgramMenuDir" Guid="*"&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;/Directory&gt;
        &lt;/Directory&gt;
  
        &lt;Directory Id="DesktopFolder" Name="Desktop" /&gt;
      &lt;/Directory&gt;
  
      &lt;Feature Id='Complete' Title='Viewer Installation' 
               Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'&gt;
      &lt;Feature Id='MainProgram' Title='Viewer Program' 
               Description='The main executable.' Level='1'&gt;
        &lt;ComponentRef Id='MainExecutable' /&gt;
        &lt;ComponentRef Id='ProgramMenuDir' /&gt;
      &lt;/Feature&gt;
      &lt;/Feature&gt;
  
      &lt;UIRef Id="WixUI_InstallDir" /&gt;
      &lt;UIRef Id="WixUI_ErrorProgressText" /&gt;
  
      &lt;Icon Id="Viewer.exe" SourceFile="Viewer.exe" /&gt;
  
    &lt;/Product&gt;
  &lt;/Wix&gt;
  </code></pre>