WiX 3.0 与 Visual Studio 2010 — 没有用户界面库?
我之前使用过 Wix 来构建安装程序,它非常棒!
我最近重新映像了我的计算机,并且只安装了 Visual Studio 2010,因为我已将所有项目更新到该版本。
当我下载并安装 WiX 3.0 时,它抱怨不会安装 Votive,因为我没有安装 Visual Studio 2005 或 2008“或更高版本”。没关系,反正我不使用 Votive(我不太明白 VS 2008 与此有什么关系,但无论如何......)
当我尝试使用 light.exe 链接我的 Wix 安装程序时,我得到一个链接错误,因为它找不到 UI wixlibs。搜索驱动器上的各个位置(常用文件、Wix 安装目录等),我找不到任何 wixlib 文件。
问题是我需要为 WiX UI 库找到单独的下载吗?如果是的话,在哪里?我在 Wix 网站上找不到任何有希望的链接。 还是 UI 库以某种方式链接到 Votive 安装的问题?如果是这样,我如何在只有 Visual Studio 2010 的系统上安装它们?
I've used Wix before to build installers, and it's great!
I recently re-imaged my machine, and only installed Visual Studio 2010, because I've updated all my projects to that version.
When I download and install WiX 3.0, it complains that Votive will not be installed because I don't have visual studio 2005 or 2008 "or later" installed. That's OK, I don't use Votive anyway (and I don't quite understand what VS 2008 has to do with that, but whatever...)
When I try to link my Wix installer using light.exe, I get a link error, because it can't find the UI wixlibs. Searching various locations on my drive (common files, Wix install dir, etc), I cannot find any wixlib files.
Is the problem that I need to find a separate download for the WiX UI libraries? If so, where? I can't find any promising links on the Wix web site.
Or is the problem that the UI libraries are somehow linked to the Votive installation? If so, how can I install them on a system that only has Visual Studio 2010?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
答案是 UI 已经从 wixlib 文件转移到 WixUIExtension.dll 扩展中。
因此,当调用 light 进行链接时,我可以传递 -ext WixUIExtension,一切都很好。
这解决了我的问题“产品部分中对符号‘WixUI:WixUI_Minimal’的未解析引用”
具体步骤是:
项目属性->工具设置->链接器->添加“-ext WixUIExtension”
The answer turns out to be that UI has moved away from wixlib files and into the WixUIExtension.dll extension.
Thus, when calling light to link, I can pass -ext WixUIExtension, and all is good.
This solves my problem with "Unresolved reference to symbol 'WixUI:WixUI_Minimal' in section Product"
The exact steps are:
Project Properties -> Tool Settings -> Linker -> add "-ext WixUIExtension"
或者,如果您创建了 WiX 安装项目,请右键单击它并添加对 WixUIExtension.dll 的引用,该引用位于
C:\Program Files (x86)\WiX Toolset [version]\bin\.
Alternatively, if you created a WiX Setup Project, right-click on it and add a reference to WixUIExtension.dll, which is found in
C:\Program Files (x86)\WiX Toolset [version]\bin\
.