简体   繁体   English

如何从使用wix创建的.msi文件安装Web应用程序?

[英]how to install web application from a .msi file , created using wix?

I created a small web application in c# and wanted to create a installer for the web app and started so, using wix and i come up with the .msi file(installer) with a .wixpdb file. 我用c#创建了一个小型Web应用程序,并想为该Web应用程序创建安装程序并开始使用wix,因此我提出了带有.wixpdb文件的.msi文件(安装程序)。 Now, when i click on the .msi setup file ,installation is getting started and ending up with noting. 现在,当我单击.msi安装文件时,安装开始,并以提示告终。

steps i followed is, 我遵循的步骤是

  1. create web application. 创建Web应用程序。
  2. build and publish. 构建和发布。
  3. harvest the publish folder and thats creates me a .wxs file. 收获publish文件夹,多数民众赞成创建一个.wxs文件。
  4. create a setup project in the same solution of my web app. 在与我的Web应用程序相同的解决方案中创建一个安装项目。
  5. add .wxs from step3 to the setup project. 将步骤3中的.wxs添加到安装项目中。
  6. build the setup project it create a .msi(installer) and .wixpdb file. 生成安装项目,然后创建一个.msi(安装程序)和.wixpdb文件。

My Doubt here is that, how can i run the installer that will create a service/web application and installed locally. 我的怀疑是,如何运行将创建服务/ Web应用程序并在本地安装的安装程序。

答案很简单,当然我们只需要双击安装程序,但是在此之前,我们需要在FileName.wxs文件中添加<UIRef Id="MyWebUI" />并在.wxs文件中定义一些UI对话框,在http://www.codeproject.com/Articles/115036/Creating-WIX-Installer-for-ASP-NET-Web-Application中可以更清楚地说明。

Unfortunately WIX harvesting will not create a web application/web site for you automagically, when you harvest a "published" application. 不幸的是,当您收获“已发布”的应用程序时,WIX收获将不会自动为您创建Web应用程序/网站。 It will just produce the code to copy files. 它将仅生成复制文件的代码。 In WIX, you have to add this functionality yourself. 在WIX中,您必须自己添加此功能。 In comparison with VS installer for example, you've got much more to do, and the rabbit's hole appears to be much deeper.. Take a look here for example: 例如,与VS安装程序相比,您还有更多工作要做,而兔子的洞似乎要深得多。请看这里:

http://www.codeproject.com/Articles/115036/Creating-WIX-Installer-for-ASP-NET-Web-Application http://www.codeproject.com/Articles/115036/Creating-WIX-Installer-for-ASP-NET-Web-Application

http://blog.bartdemeyer.be/2013/10/create-an-installer-for-website-with-wix-part-1/ http://blog.bartdemeyer.be/2013/10/create-an-installer-for-website-with-wix-part-1/

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

相关问题 如何在没有用户批准的情况下使用JS从Web浏览器运行和安装EXE文件 - How to run and install EXE file from the web browser using JS without user approve 如何使用 Chrome 通过 Web 应用程序从客户端计算机打开 EXE 文件 - How to open an EXE file from a Client Machine through a Web Application using Chrome 使用网页/ Web应用程序从XSL文件读取和收集元素 - Using a webpage/web application to read and collect elements from XSL file 如何从网页本地安装字体 - How to install font locally from web page ClickOnce:如何从网络自动启动安装/启动 - ClickOnce: How to autostart install / launch from web 使用 Java 调用 JS 文件,或者如何使用 spring 启动 web 应用程序在浏览器中获得响应 - Invoke JS file using Java or how can I get response in browser using spring boot web application web应用程序如何访问本地文件? - How do a web application access local file? 如何使用 RegEx 从 npm install 命令获取应用程序名称? - How can I get the application names from an npm install command using a RegEx? 如何使用Web Crypto API解密使用OpenSSL创建的文件? - How to use the Web Crypto API to decrypt a file created with OpenSSL? 如何使用Tizen Web studio在应用程序中使用下载的svg文件? - How do I use a downloaded svg file within my application using Tizen Web studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM