简体   繁体   English

为适用于多种环境的ASP.NET Web APP创建安装程序

[英]Create Installer for an ASP.NET web APP for multiple environments

I have created an ASP.NET website which accesses a DB. 我创建了一个访问数据库的ASP.NET网站。 The DB can will be alrady installed at target machine. 可以将DB安装在目标计算机上。 It can be anything from SQL server 2000 to SQL server 2008. Further more the target OS can be anything from Windows server 2000 to Windows 7. I have kept the target .Net framework version as .Net 2.0 to keep matters simple. 从SQL Server 2000到SQL Server 2008,它都可以是任何东西。此外,从Windows Server 2000到Windows 7,目标OS可以是任何东西。为了简单起见,我将目标.Net Framework版本保持为.Net 2.0。 Also, the target machine can be x86 or x64 or Itanium. 另外,目标计算机可以是x86或x64或Itanium。

  1. Do I need to create separate builds for different target platforms? 我是否需要为不同的目标平台创建单独的版本?
  2. How do I create an Installer which will : 如何创建安装程序,它将:
    1. Put this website on a Virtual Directory of IIS server(can be any IIS version) 将此网站放在IIS服务器的虚拟目录中(可以是任何IIS版本)
    2. Detect the target platform and install the appropriate build 检测目标平台并安装适当的构建

I need to do this either using the standard MSI installer of VS2008 or using WiX or any open source installer for that matter. 为此,我需要使用VS2008的标准MSI安装程序,或者使用WiX或任何开源安装程序来执行此操作。 Please help me with this since I am new to deployment projects. 由于我是部署项目的新手,请为我提供帮助。

Thanks 谢谢

You can use softwares like InstallShield in order to create your installer. 您可以使用InstallShield之类的软件来创建安装程序。 but InstallShield is not for free I think. 但是我认为InstallShield不是免费的。
such programs have their own scripting language that simplify the operations that you want to do, like detecting which operating system is installed or which SQL Server version is installer, beside that they allows you to communicate with a certain function in a dll. 此类程序具有自己的脚本语言,可简化您想要执行的操作,例如检测安装了哪个操作系统或安装了哪个SQL Server版本,此外,它们还允许您与dll中的某些功能进行通信。 You can call this function to do some logic or some validation. 您可以调用此函数进行一些逻辑或验证。

You can use WiX to create an MSI that does what you've listed. 您可以使用WiX创建可以执行所列示的MSI。 It is free, and as well as including functionality for what you want also allows custom scripting for any custom logic needed. 它是免费的,并且除了具有您想要的功能之外,还允许针对所需的任何自定义逻辑进行自定义脚本编写。

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

相关问题 有什么方法可以为ASP.Net Web应用程序安装程序创建补丁? - Is there any way to create a patch for an ASP.Net web application installer? 如何为ASP.Net Web应用程序创建完整的安装程序 - How to create complete installer for ASP.Net web application ASP.NET应用程序MSI安装程序多个实例 - ASP.NET app MSI installer multiple instances Asp.net部署(网络安装程序) - Asp.net Deployment (web installer) asp.net core 2的多个web.config文件(不同的环境) - asp.net core 2 multiple web.config files (different environments) 代替手动托管网站,在asp.net中创建用于托管网站/ Web应用程序的安装程序文件 - Instead of hosting site Manually, Create a Installer file for hosting website/web Application in asp.net 如何为我的ASP.NET Web应用程序创建全局样式表? - How to create a global stylesheet for my ASP.NET web app? 导出到asp.net Web应用程序中的带有选项卡(多张图纸)的Excel - Export to Excel with Tabs (Multiple Sheets) in to asp.net web app Web平台安装程序说asp.net已安装(尚未安装) - Web Platform Installer says asp.net is already installed (its not) 如何为ASP.Net网站创建MSI安装程序包? - How to create an MSI installer package for an ASP.Net website?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM