title: Windows Installer cannot access network location when installed directories on network drive
body: <p>I have a C++ Windows application built in Visual Studio 2010 with a Setup project to create an .msi that installs fine when users have a local <code>My Documents</code> folder, but fails when their <code>My Documents</code> folder is located on a network drive.</p>
  
  <p>When installed locally, the installer creates <code>Project</code> and <code>Data</code> folders in their <code>My Documents</code> folder, but when I try to install to system with <code>My Documents</code> in a network location, the .msi fails with the <code>cannot access network location</code> error message. Looking at the installer log file, it appears that the failure occurs when the installer is creating the property that describes the <code>Project</code> and <code>Data</code> directories, not when trying to create and populate those directories.</p>
  
  <p>Does anybody have an idea about how I can either avoid, workaround, or recover from this error?</p>
  
  <p>Right now the installation just fails and rolls back for systems with My Documents on networks. Thanks.</p>
  
  <p>From MSI log:</p>
  
  <pre><code>"The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog, 
  Error 1606. Could not access network location \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\.
  MSI (c) (38:64) [13:13:34:987]: Note: 1: 2262 2: Error 3: -2147287038 
  MSI (c) (38:64) [13:13:34:987]: Product: eQUEST 3-65 -- Error 1606. Could not access network location \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\.
  
  MSI (c) (38:64) [13:13:34:989]: Note: 1: 1314 2: \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\ 
  MSI (c) (38:64) [13:13:34:989]: Note: 1: 1606 2: \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\ 
  MSI (c) (38:64) [13:13:34:989]: Note: 1: 2262 2: Error 3: -2147287038 
  MSI (c) (38:BC) [13:13:34:991]: Note: 1: 2262 2: Error 3: -2147287038 
  DEBUG: Error 2835:  The control ErrorIcon was not found on dialog ErrorDialog
  The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog, 
  Error 1606. Could not access network location \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\.
  MSI (c) (38:64) [13:13:39:006]: Note: 1: 2262 2: Error 3: -2147287038 
  MSI (c) (38:64) [13:13:39:006]: Product: eQUEST 3-65 -- Error 1606. Could not access network location \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\.
  
  MSI (c) (38:64) [13:13:39:007]: Note: 1: 1606 2: \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\ 
  MSI (c) (38:64) [13:13:39:007]: Note: 1: 2262 2: Error 3: -2147287038 
  MSI (c) (38:BC) [13:13:39:009]: Note: 1: 2262 2: Error 3: -2147287038 
  </code></pre>
  
  <p>I don't think the missing Error Icon is relevant, but maybe?</p>