title: How to add/modify private registry keys for Visual Studio 2019?
body: <p>Based on <a href="https://stackoverflow.com/a/42933610/811785">this answer</a>, I added keys to Visual Studio 2017 and it worked just fine. But it doesn't work for Visual Studio 2019.</p>
  
  <p>Here's what I do:</p>
  
  <ol>
  <li>I create a new project, using VSIX project template</li>
  <li>I add a <code>.pkgdef</code> file to it, and I populate it using these lines:
  <code>[$RootKey$\TeamFoundation\SourceControl\Checkin Policies]
  "ExampleKey"="ExampleValue"</code></li>
  <li>I modify <code>source.extension.vsixmanifest</code> file and add assemblies and packages to it (based on that answer, and just like VS2017)</li>
  <li>I make sure my extension is unsintalled (VS2019 => Extension => Manage Extensions => Selecting my extension => Uninstall => Closing VS2019)</li>
  <li>Then I make sure the <code>ExampleKey    ExampleValue</code> is not present in <code>privateregistry.bin</code>. (Opening <code>regedit.exe</code>, selecting <code>HKEY_LOCAL_MACHINE</code> => File => Load hive => <code>%localappdata%\Microsoft\VisualStudio\16.0_e880ebae\privateregistry.bin</code> as VS2019Registry, then selecting <code>VS2019Registry\Software\Microsoft\VisualStudio\16.0_e880ebae_Config\TeamFoundation\SourceControl\Checkin Policies</code>)</li>
  <li>Then I unload the <code>VS2019Registry</code> hive.</li>
  <li>Then I double click my extension, and install it on VS2019</li>
  <li>Then I open VS2019 to make sure my extension is installed, and it's in the list of extensions.</li>
  <li>Then I close VS2019, and reopen private registry, but my key is not added to the intended path.</li>
  </ol>
  
  <p>What should I do? How can I debug it? The exact same path was working for VS2017.</p>