Visual Studio 2010 “Setup Project” registry editor doesn't work

白昼怎懂夜的黑 提交于 2019-12-01 14:04:25

问题


I have an installation project that needs to add 1 simple string to the registry, and the built in Registry Editor in the Setup Project doesn't seem to work at all. It puts a base key HKEY_LOCAL_MACHINE\Software\[Manufacturer] by default into the install project, and that doesn't even work.

Here are the steps I used to add the key.

  • Right click setup project: View --> Registry
  • A mock Registry is displayed and I drill down creating keys as needed.
  • I create HKEY_LOCAL_MACHINE\Software\[Manufacturer]\[ProductName]
  • Run the installer. No errors are reported, but keys do NOT exist.

EDIT: Take a look at figure 5 on this webpage. It shows you kinda of what I see except in what looks like a much older version of visual studio.

I don't see how this could fail, it should be so simple. I've even tried simple keys and it just won't create anything, or at least throw an error. I've seen this solution but its ridiculous to add a post build step to manually edit the registry when there is built in functionality to do it. That post indicates that the feature is just broken, so don't use it.


回答1:


If you have a 32-bit installer the keys will be redirected under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ key

More details you can find here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa384232(v=vs.85).aspx



来源:https://stackoverflow.com/questions/11199093/visual-studio-2010-setup-project-registry-editor-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!