简体   繁体   English

Wix:将项目添加到安装程序包

[英]Wix: Add project to setup package

I have created a Wix project and the .wxs file has been changed in my solution. 我创建了一个Wix项目,并且解决方案中的.wxs文件已更改。 I am not clear about how to add my original projects to current package. 我不清楚如何将原始项目添加到当前软件包中。

For example, my steps are as below: 例如,我的步骤如下:

  1. I have a winform project named: MyApplication 我有一个Winform项目,名为:MyApplication
  2. I created a Wix project and changed the .wxs 我创建了一个Wix项目并更改了.wxs
  3. The .msi file was created after I compiled my Wix project. .msi文件是在编译Wix项目之后创建的。
  4. I install MyApplication with .msi file. 我使用.msi文件安装MyApplication。
  5. Result: short cut has been created in both desktop and start menu. 结果:在桌面和开始菜单中都创建了快捷方式。 However, I have checked the installed files(F:\\MyApplication) but nothing has been found. 但是,我已经检查了已安装的文件(F:\\ MyApplication),但未找到任何内容。 No executable files, no library files and even this path (F:\\MyApplication) is not found. 找不到可执行文件,库文件,甚至找不到此路径(F:\\ MyApplication)。

Any suggestion? 有什么建议吗?

Wix is a toolset that expects you to do a lot of the heavy lifting yourself. Wix是一个工具集,希望您能做很多繁重的工作。 There are no Visual Studio automatisms. 没有Visual Studio自动机。

To build a Wix file, you will need to type it manually or use the tools that came with the toolset. 要构建Wix文件,您将需要手动键入它或使用该工具集随附的工具。 In this case, the tool you want to use is heat.exe , the harvester. 在这种情况下,您要使用的工具是heat.exe ,即收割机。 It can scan various places (folder, projects etc) and produce a wix file that will install all files it found. 它可以扫描各个位置(文件夹,项目等),并生成一个wix文件,该文件将安装找到的所有文件。

See this link for a very good documentation including examples 请参阅此链接以获得非常好的文档,包括示例

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

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