Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing IIS8 with command line parameters

By calling pkgmgr.exe from C# with the following parameters, I was able to enable IIS 7 features ASP.NET and .NET Extensibility under Application Development Section.

/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;...... /norestart /quiet

For IIS8, it is not working any more because there is no ASP.NET option under Application Development Features. Instead there are ASP.NET 3.5 and ASP.NET 4.5 (.NET Extensibility 3.5 and .NET Extensibility 4.5).

How can I enable them using pkgmgr.exe?

like image 656
Namik Acayir Avatar asked Nov 05 '12 15:11

Namik Acayir


1 Answers

I saw your question yesterday and looked it up on a regular basis in hope of someone answering it. Sadly, no one did, the good news though I've found a solution so I'm sharing it to you.

The IIS-ASPNET is still there and it enables ASP.NET 3.5. You still need IIS-NetFxExtensibility. The difference lies in that those two now have an additional prerequisite, NetFx4Extended-ASPNET45.

So if you want to enable ASP.NET 3.5 you need : IIS-ASPNET;IIS-NetFxExtensibility;NetFx4Extended-ASPNET45

For ASP.NET 4.5 you need : IIS-ASPNET45;IIS-NetFxExtensibility45;NetFx4Extended-ASPNET45

like image 81
Lambertar Avatar answered Nov 12 '22 22:11

Lambertar