Reputation: 311
I intend to write a wix setup that supports IIS6 and IIS7+. Does the IIS extension of Wix3.6 support both? That means write once, run on both? Or should I write for each server version separate code or maybe even a custom action?
thanks in advance..
Upvotes: 0
Views: 415
Reputation: 311
The good news is: I wrote wix3.6 code using the default IIS extention and it works on both servers II6 and IIS7 without any special code adaptation for a specific server:-) –
Upvotes: 1
Reputation: 32270
WiX IIsExtension is capable to handle any version of IIS, as far as I can tell. At least, I've successfully used it with IIS 5+. The extension contains a number of elements to create (and modify) web sites, application pools, virtual directories, and more.
The difference in code targeting various versions of IIS is that some attributes (or elements) apply to higher versions of IIS, while others are there to serve older versions. For instance, <iis:WebAppPool>
element has no sense for pre-IIS6 versions. On the other hand, the Isolation
attribute of the <iis:WebApplication>
element is only valid for IIS5 and earlier.
So, if you intend to support different IIS versions, e.g 5 / 6 / 7+, you'll most likely end up having a number of <iis:WebSite>
definitions, configured appropriately to the corresponding target IIS version.
Upvotes: 0