简体   繁体   English

创建MSI以通过注册表更改安装WPF

[英]Create MSI to install WPF with registry changes

We have a WPF app (.NET 4.0) in Visual Studio 2010 Ultimate. 我们在Visual Studio 2010 Ultimate中有一个WPF应用程序(.NET 4.0)。 It needs to add a few registry keys during the installation. 在安装过程中,需要添加一些注册表项。 How do you add such code to an MSI? 您如何将这样的代码添加到MSI? If you can point us to an example, it would be great. 如果您能为我们提供示例,那就太好了。 Thanks. 谢谢。

Use WiX to create your MSI. 使用WiX创建您的MSI。 You can create registry values within the WiX project: http://wix.sourceforge.net/manual-wix3/write_a_registry_entry.htm 您可以在WiX项目中创建注册表值: http ://wix.sourceforge.net/manual-wix3/write_a_registry_entry.htm

Use an installer package like InstallShield. 使用安装程序包,如InstallShield。 They all support registry keys and values. 它们都支持注册表项和值。 For a more complete list of available packages see http://www.installsite.org/pages/en/msi/authoring.htm 有关可用软件包的更完整列表,请参见http://www.installsite.org/pages/en/msi/authoring.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM