Reputation: 1187
I'm creating a new installation package for my web application, so i want to be able to create a new web site and an applicationPool in the IIS before the installation process starts so the user can choose the newly created website in the dialog (Actually it can be to do anything before the forms in the wizard would be showed).
Is there a way to do this?
With customs actions seems to be impossible since they are excuted after the wizard forms are showed, and with a boostrapper it seems not be the best option since i'm actually not installing anything just executing a script.
Thanks
Upvotes: 1
Views: 506
Reputation: 21426
Why do you need to create the website and application pool before the installation?
A simple approach is to just populate the dialog with the website name (and other IIS information) and actia; create it during installation based on what the user does in that dialog.
For example, if you have a combo box with websites simply add your website to it. During install you can check if your website was selected and create it if necessary.
Upvotes: 1