检索安装项目的安装路径 [英] Retrieve the installation path for setup project
问题描述
我正在开发一个Visual Studio 2008安装项目,该项目将安装模板,代码段等.
现在,在安装项目的注册表中,我们在HKEY_LOCAL_MACHINE->软件以及HKEY_CURRENT_USER->软件下都具有[Manufacturer].在[Manufacturer]的属性窗口中,我们具有安装路径.是 完成.此外,在安装向导中进行安装时,我们可以更改路径.
如何在安装项目中检索默认设置以及用户设置的安装路径.由于基于此路径,我以后必须将组件(如模板,代码段)复制到VS文件夹中.
预先感谢
要读取注册表项,请尝试使用注册表类- http://msdn.microsoft.com/zh-cn/library/microsoft.win32.registry.aspx
也请检查以下链接:
http://www.codeproject.com/KB/install/AddinCustomAction.aspx >
此致
Nayna
Hi,
I am developing a visual studio 2008 setup project which will install templates,code snippets etc.
Now in the Registry of the setup project we have [Manufacturer] under HKEY_LOCAL_MACHINE->Software as well as under HKEY_CURRENT_USER->Software.In the property window of the [Manufacturer] we have the destination path where the installtion will be done.Also when the installtion happens in the installation wizard we can change the path.
How can I retrieve the default as well the user set installation path in the setup project.Because based on this path I have to later copy my components like templates,code snippets to the VS folders.
Thanks in advance
Hi,
To read a registry key, try using the Registry class - http://msdn.microsoft.com/en-us/library/microsoft.win32.registry.aspx
check these links too:
http://www.codeproject.com/KB/install/AddinCustomAction.aspx
Regards,
Nayna
这篇关于检索安装项目的安装路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!