简体   繁体   中英

How to create new website in IIS using Web Setup Project in Visual Studio 2008 SP1

I have a Web Application Project and a Web Setup Project in my Solution.

When I run the MSI created by the Web Setup Project it only gives me the option to use an already existing website in the IIS on the local machine.

How can I get the installer to give me the option to create a new website in IIS?

Thanks

There is no way to do it with the tools as provided...

BUT you can add custom installer actions that will run pretty much any code you like (see this MSDN installer article ) from there all you need is some code to create the site as you want it... that you should be able to lookup on google.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM