title: Collecting User-Mode Dumps
body: <p>I'm trying to collect Dumps from crashing applications using WER - by modifying Registry Key: </p>
  
  <pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps  
  </code></pre>
  
  <p>As stated here:
  <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx</a></p>
  
  <p>However, the dumps - generated in the default folder location only : <code>%LOCALAPPDATA%\CrashDumps</code></p>
  
  <p>And not in a custom folder, such as <code>C:\Dump</code> for example.</p>
  
  <p>I tried modifying registry manually (using regedit) and from code - same result
  When I'm done this is the result:</p>
  
  <p><a href="https://i.stack.imgur.com/SigtU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SigtU.png" alt="enter image description here"></a></p>
  
  <p>This is my code:</p>
  
  <pre><code>const string USER_MODE_DUMPS_CONFIG_REGKEY = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps";
  const string DUMP_FOLDER_KEY = "DumpFolder";
  ......
  Registry.SetValue(USER_MODE_DUMPS_CONFIG_REGKEY, valueName, "C:\Dumps", RegistryValueKind.String);
  </code></pre>
  
  <p>Any help will be appreciated!</p>