While having my first steps towards learning
WiX v.3, The first step was to read some of the tutorials over
here, then after downloading the samples I started exploring them to learn more. In my very first sample (named SampleWebDir) almost the simplest one although I had some troubles because the samples were built using the WiX v2 while I am trying to build it using v3. Simple changes had to be done inorder to make it built:
- Change the Wix Schema from
xmlns='http://schemas.microsoft.com/wix/2003/01/wi'
to xmlns='http://schemas.microsoft.com/wix/2006/wi'
- Add Reference to the WixIIsExtension dll
- Now inlcude the IIS namespace within the wxs file to be as :
<wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
- Prefix the web elements with the iis: to be like this
<iis:WebVirtualDir>
<iis:WebApplication>
<iis:WebSite>
<iis:WebAddress>
- To remove warnings:
- Add an Upgrade Code to the Product element
- Remove the LongName key/value in the File Element is now depreacted.
- Remove the Package Id is has been deprecated.
- To remove all the localization errors put assigned a culture to the project (right click the project node)>>(Properties)>>(Linker tab)>>(put the Culture as: en-US)for example.
Note:The steps up there are when using votive on visual studio and were tested on windows vista running iis7.