Note that there are some explanatory texts on larger screens.

plurals
  1. PORetrieving Common Documents path using WiX RegistrySearch failed
    text
    copied!<p>When using RegistrySearch to find the path to the common documents folder (e.g. 'C:\Users\Public\Documents\') it works on most computers but on some computers it failed. I have no idea why it fails or what security setting might be set. </p> <p>Here is the code for the registry search:</p> <pre><code>&lt;Property Id="COMMONDOCUMENTSPATH"&gt; &lt;RegistrySearch Id="RegSearchCommonDoc" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" Name="Common Documents" Type="directory" /&gt; &lt;/Property&gt; </code></pre> <p>On my developer pc I'm getting the content of the registry lookup and the msi log file contains the following lines:</p> <pre><code>Action start 14:17:04: AppSearch. AppSearch: Property: COMMONDOCUMENTSPATH, Signature: RegSearchCommonDoc MSI (c) (E8:70) [14:17:04:157]: Note: 1: 2262 2: Signature 3: -2147287038 MSI (c) (E8:70) [14:17:04:157]: PROPERTY CHANGE: Adding COMMONDOCUMENTSPATH property. Its value is 'C:\Users\Public\Documents\'. Action ended 14:17:04: AppSearch. Return value 1. </code></pre> <p>On the customers pc the registry lookup failed and the msi log file looks like this:</p> <pre><code> Action start 12:45:49: AppSearch. AppSearch: Property: COMMONDOCUMENTSPATH, Signature: RegSearchCommonDoc MSI (c) (8C:80) [12:45:49:120]: Note: 1: 2262 2: Signature 3: -2147287038 Action ended 12:45:49: AppSearch. Return value 1. </code></pre> <p>The customers pc is a Windows 7 Enterprise (x64) system. My system is a Windows 7 Pro (x64). The MSI package is Intel (x86).</p> <p>The customer's user has adminstrator rights on his machine. Here an extract from the msi log:</p> <pre><code>MSI (c) (8C:80) [12:45:49:020]: Product installation will be elevated because user is admin and product is being installed per-machine. MSI (c) (8C:80) [12:45:49:020]: Running product '{D7C625A6-20E0-48EF-A372-19569FF9BFBF}' with elevated privileges: Product is assigned. </code></pre> <p>Any ideas or suggestions how to fix this problem? Or is there another way to determine the Common Documents folder?</p> <p>Thanks for your help in advance!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload