title: WIX MSI: Uninstall of package is not deleting the installation directory root path
body: <p>During the installation process selected the directory as C:/Test/ (root path for the installation location) for installing my application. It installed successfully in this location (C:/Test/). Uninstalled this package, it is removed all installed files and subdirectories. But not removed the installed root directory (i.e. C:/Test). below custom action is using to delete/remove the installation root path and installation files (with subdirectories).</p>
  
  <pre><code>    &lt;InstallExecuteSequence&gt;
          &lt;RemoveExistingProducts Before="InstallInitialize" /&gt;
          &lt;Custom Action="ApplicationInstallDir" After="AppSearch"&gt;APPINSTALLDIR&lt;/Custom&gt;
          &lt;Custom Action="DeleteInstallDir" Before="RemoveFiles" &gt;
              REMOVE="ALL"
          &lt;/Custom&gt;
      &lt;/InstallExecuteSequence&gt;
  &lt;CustomAction Id="DeleteInstallDir" BinaryKey="CommandPrompt"
          ExeCommand="cmd /C pushd &amp;quot;[APPINSTALLDIR]&amp;quot; &amp;amp;&amp;amp; (rd /s /q &amp;quot;[APPINSTALLDIR]&amp;quot; 2&gt;nul &amp;amp; popd)"            Execute="deferred" Return="ignore" HideTarget="no" Impersonate="no" /&gt;
  </code></pre>