title: WiX Overcoming "Could not access network location" error
body: <p>Currently doing my best to put together an installer for our C# app using Wix but have hit a block with the following problem.</p>
  
  <p>By default the application is installed in the ProgramFilesFolder however the installer allows a user to specify a custom installation directory/folder overriding the default location. The problem I am encountering is when the installation folder is deleted from the system running the installer fails with a "Could not access network location" message when ideally I'd like it to commence with a "repair" or "reinstall". </p>
  
  <p>The user can't proceed past this message preventing them from uninstalling, installing or running a repair. The user can't proceed in any way past this message.</p>
  
  <p>The following is the Wix code I am using:</p>
  
  <pre><code>&lt;!-- Obtaining the installation directory from the registry --&gt;
  &lt;Property Id="APPLICATIONFOLDER"&gt;
        &lt;RegistrySearch Id="RegistrySearchAppFolder" Type="raw" Root="HKLM" 
                        Win64="no" Key="Software\$(var.Manufacturer)\$(var.ProductName)"
                        Name="install_location" /&gt;
  &lt;/Property&gt;
  
  &lt;!-- Setup the main folders --&gt;
  &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
        &lt;Directory Id="ProgramFilesFolder"&gt;
              &lt;Directory Id="APPLICATIONFOLDER" Name="$(var.ProductName)" /&gt;        
        &lt;/Directory&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>How can I deal with this scenario in a graceful manner? Perhaps I am not using the correct code, any help is appreciated.</p>