I'm trying to create a basic website installer using Wix V3.0.4805.0
Having searched around on the net I've got the wxs file as below: I'm
getting

 

error CNDL0005: The Component element contains an unexpected child
element 'WebSite'.

error CNDL0005: The Component element contains an unexpected child
element 'WebVirtualDir'.

 

I've added all available references including WixIIsExtension

 

<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

      <Product Id="9a9dc1e1-7c6b-44b3-aaad-5865a7180b29"
Name="WixProject2" Language="1033" Version="1.0.0.0"
Manufacturer="WixProject2"
UpgradeCode="0fb61fa9-6527-4c68-81d4-fe6a49dd5859">

            <Package InstallerVersion="200" Compressed="yes" />

 

            <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

 

    <Directory Id='TARGETDIR' Name='SourceDir'>

      <Directory Id='ProgramFilesFolder' Name='PFiles'>

        <Directory Id='ApplicationFolder' Name='AppDir' >

          <Component Id='WebSiteComponent'
Guid='22bf297e-ffce-44b0-be30-51388089d25d' DiskId='1'>

            <File Id='WixExampleFile' Name='simple.txt'
src='bin\simple.txt' />

            

            <WebSite Id='DefaultWebSite' Description='My First Web Site
Created With WiX' Directory='ApplicationFolder'>

              <WebAddress Id="AllUnassigned" Port="80" />

            </WebSite>

          </Component>

          <Component Id="WebVirtualDirComponent"
Guid="114b490b-6670-4ea5-966b-375ac9d9f97e">

            <WebVirtualDir Id="VDir" Alias="Test"
Directory="ApplicationFolder" WebSite="DefaultWebSite">

              <WebApplication Id="TestWebApplication" Name="Test" />

            </WebVirtualDir>

          </Component>

        </Directory>

      </Directory>

    </Directory>

 

    <Feature Id='TestProductFeature' Title='Wix File Product Feature'
Level='1'>

      <ComponentRef Id='WebSiteComponent' />

      <ComponentRef Id='WebVirtualDirComponent' />

    </Feature>

 

  </Product>

</Wix>

 

 

I may be misssing something obvious here but in the Help the two
elements show that Component is a parent element?

 

Does anyone have a basic example/template for creating a web site
installer?

 

Cheers

Norman Lough

Email: norman.lo...@imass.co.uk

Imass Ltd, Northumbria House, Regent Centre, Gosforth, Newcastle upon
Tyne, NE3 3PX. http://www.imass.co.uk <http://www.imass.co.uk/> 

 

Imass Limited is an Infoterra company, part of EADS Astrium

 

 

Registered in England and Wales No. 2379476

 

- Disclaimer -
The information contained in this e-mail and its attachments is
confidential and intended only for the use of the individual or entity
named above.  If you are not the intended recipient, please do not read,
copy, use or disclose this message or its attachments.  If you have
received this message in error, please notify the sender immediately and
delete or destroy all copies of this message and attachments in all
media.  Any views expressed in this e-mail that do not relate to Imass'
official business may not reflect the views of the company.

 

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to