真正努力了解WiX的工作原理 [英] Really struggling to get how WiX works

查看:67
本文介绍了真正努力了解WiX的工作原理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事WPF项目.我创建了一个Wix项目,该项目与主项目一起运行,并且具有program.cs组件以及XML文件.

I am working on a WPF project. I have created a Wix project which runs along with the main project and has a program.cs component as well as the XML file.

尽管我可以看到它在重新构建项目时创建了安装程序,但我不清楚我为什么不在其中或其中包含实际的WPF项目.因此,实际上,我在运行时没有安装任何东西.只是一个shell program.cs文件,它是Wix项目的一部分.

Although I can see it creates the installer upon re-building the project, what is not clear to me is that why don't I have the actual WPF project inside it or as part of it. So really I don't install anything when I run it. Simply a shell program.cs file which is part of the Wix project.

我根本没有得到实际的项目.因此,我如何有效地添加"广告资源?将WPF项目转换为WiX项目,以便生成.exe或.msi文件.

I don't get the actual project at all. So how do I effectively "add" the WPF project to the WiX project so it generates the .exe or .msi file.

当我使用Windows本机构建项目时,我能够得到它,但它确实很乏味.

When I used the Windows native build project, I was able to get this however it is really tedious.

谢谢,易卜拉欣

推荐答案

WiX新手也在这里.我发现该教程对入门很有帮助:创建简单的设置.它引导您完成在Visual Studio中创建新的WiX项目的过程.它创建了一个非常简单的安装程序(例如,甚至没有在开始"菜单中添加快捷方式),但我认为它将有助于您了解WiX的工作原理.

WiX newbie here too. I found that this tutorial to be helpful to get started: Create a simple setup. It walks you through creating a new WiX project in the Visual Studio. It creates a really simple installer (e.g. doesn't even add a shortcut to the Start Menu), but I think it will help with your understanding of how WiX works.

在完成上述示例后,建议您通读本教程:.注意:我发现复制/粘贴页面底部的整个代码示例,替换WiX Visual Studio项目中默认Product.wxs文件中的所有内容,然后根据需要替换对自己文件的引用,都比较容易.

After you get the above example working, I'd suggest reading through this tutorial: How To: Create a Shortcut on the Start Menu. Note: I found that it was easier to copy/paste the entire code sample at the bottom of the page, replace everything in the default Product.wxs file in the WiX Visual Studio Project, and then replace references to your own files as needed.

这篇关于真正努力了解WiX的工作原理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆