Feytality Feytality - 4 months ago 71
ASP.NET (C#) Question

Inno Setup IIS Installation and Configuration

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.

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.

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.

Thank you.


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.