简体   繁体   English

使用 Wix 在 c# 中为 Web 应用程序创建安装程序

[英]Create a installer for web application in c# using Wix

I have installed the Wix from Wix.codeplex and i created a setup file successfully for windows application and its works well.我已经从Wix.codeplex安装了 Wix 并且我成功地为 Windows 应用程序创建了一个安装文件并且它运行良好。

Now i have a web app and i want to create a installer for my web app (service installer),i tried with creating a setup file by building the Wix-setup project after adding the reference of the web app projects/Files in the Wix project,but it didn't workout, is there any good resource i can follow or any help greatly appreciate!现在我有一个 Web 应用程序,我想为我的 Web 应用程序(服务安装程序)创建一个安装程序,我尝试通过在 Wix 中添加 Web 应用程序项目/文件的引用后构建 Wix-setup 项目来创建安装文件项目,但它没有锻炼,是否有任何好的资源我可以关注或任何帮助非常感谢!

Easy steps that creates a installer for you application为您的应用程序创建安装程序的简单步骤

  1. create web application.创建网络应用程序。
  2. build and publish.构建和发布。
  3. harvest the publish folder and thats creates me a .wxs file.收获发布文件夹,这为我创建了一个 .wxs 文件。
  4. create a setup project in the same solution of my web app.在我的 Web 应用程序的同一解决方案中创建一个安装项目。
  5. add .wxs from step3 to the setup project.将 step3 中的 .wxs 添加到安装项目中。
  6. build the setup project it create a .msi(installer) and .wixpdb file.构建安装项目,它会创建一个 .msi(installer) 和 .wixpdb 文件。

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

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