I’m using WIX to create an MSI for a web application, part of the installer needs to create the IIS settings, so i’m using the WIX IIS extensions. I started off by adding the namespace:
xmlns:iis=’http://schemas.microsoft.com/wix/IIsExtension’
Everything looked good, i was getting Intellisense within VS 2010, but then when i tried to build the MSI package, i got this error:
The Component element contains an unhandled extension element ‘iis:WebSite’. Please ensure that the extension for elements in the ‘http://schemas.microsoft.com/wix/IIsExtension’ namespace has been provided.
I took a while to figure it out…in order to fix this issue, i had to add a reference to WixIisExtension.dll to my WIX project. You add the reference just like you would add one for any other project.
Anonymous
Thanks a lot mate. u saved lot of time for me.
HowitZer
How do you add the extension reference in a .wxs file?
Dave
Thanks Esteban! I’m new to WiX and this was driving me nuts!
esteban
Awesome, glad it helped!
Comara
You just saved HOURS with this one….thank you.
esteban
No problem!
Rakesh
Also make sure that -ext WixIISExtension is added to both candle and light commands.
Franci
Thank you so much, you saved my life 🙂
harshal
Thanks
Vic
Thanks!