Programmatically enable (install) IIS

前端 未结 4 557
时光取名叫无心
时光取名叫无心 2020-12-17 18:41

Sometimes there is a PC that doesn\'t have IIS. Either it disabled or either it not installed. In this case I need to enable it myself according to those steps.

I\'

4条回答
  •  眼角桃花
    2020-12-17 19:08

    You tag your question with InstallShield so I mention that later versions of InstallShield have support for enabling windows features:

    Enabling Windows Roles and Features During a Suite/Advanced UI Installation

    That said, I don't typically like to do this because you are really be intrusive with the configuration of the PC. I prefer to author a check that the required features are installed and block if they aren't.

    Another thought is that ASP.NET 5.0 now supports self hosting as have other technologies such as WCF in the past. It might make sense to simply ditch the need for IIS and kill the problem that way.

提交回复
热议问题