[Wix] 搞了这么久才知道Wix怎么装

博主受Rob演讲启发,想实现VS.NET里写XML的自动感知功能。博主用WiX创建安装包,因VS默认不识别.wxs文件为XML,给出解决办法:在注册表添加相关内容,复制wix.xsd和wixloc.xsd文件到指定目录,引用WiX命名空间即可实现IntelliSense。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

IntelliSense for WiX .wxs files

昨天看了一点Rob.的演讲,看到他在用VS.NET里面写XML可以自动感知,很想实现一下。今天找到了:
http://weblogs.asp.net/sweinstein/archive/2004/08/31/223461.aspx

I recently started looking into WiX as a replacement tool to create the install kit for NatLink and Vocola. It's not that I want to make life more difficult, but Visual Studio .Net setup projects don't support features.

WiX of course does.

The problem is that Visual Studio, by default, doesn't recognize .wxs files as XML. The fix for that is the following

1) 在注册表中增加:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Editors\{C76D83F8-A489-11D0-8195-00A0C91BBEE3}\Extensions]
"wxs"=dword:00000028

2) 从 WiX/doc 目录复制文件 wix.xsd 和 wixloc.xsd 到

C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml\

and provided you reference the WiX namespace at http://schemas.microsoft.com/wix/2003/01/wi you'll get IntelliSense too.

posted on Tuesday, August 31, 2004 2:53 PM

posted on 2004-10-18 09:56 浙林龙哥 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/huqingyu/archive/2004/10/18/53552.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值