Inno Setup IIS 安装与配置 [英] Inno Setup IIS Installation and Configuration

查看:51
本文介绍了Inno Setup IIS 安装与配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图弄清楚如何使用 Inno Setup Script 安装和注册 IIS,但到目前为止我没有成功.

I have been trying to figure out how to install and register IIS using an Inno Setup Script, but I have so far been unsuccessful.

我需要使用 .Net 版本 4 和虚拟目录创建一个应用程序、应用程序池和一个虚拟目录,获取机器的 IP 并继续使用此 IP 编辑网站的绑定.

I need to create an application, application pool with .Net version 4 and a virtual directory, get the machine's IP and proceed to edit the bindings of the website with this IP.

到目前为止,我的安装中的所有工作都是检查是否安装了 IIS.

So far all that works in my install is checking to see if IIS is installed.

如果有人以前做过这样的事情,如果你能分享你的脚本,我真的很感激.

If anyone has ever done anything like this before, I would really appreciate if you could share your script.

谢谢.

推荐答案

所以,最后我做的是创建一个单独的 C# 编码的可执行文件,它将在安装前通过命令行安装 IIS,然后将 IIS 注册到安装后适当的应用程序池等.然后我继续通过 PrepareToInstall 中的 Inno Setup 调用可执行文件以安装 IIS,并在 CurStepChanged 中调用可执行文件以注册 IIS.

So, in the end what I did was create a separate executable coded in C# which will install IIS through the command line before installation and will then register IIS with the appropriate application pool etc after installation. I then proceeded to call the executable through Inno Setup in PrepareToInstall to install IIS, and in CurStepChanged to register IIS.

这篇关于Inno Setup IIS 安装与配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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