I encourage you to read through my series on the Directory table.  It will 
provide some foundation information that hopefully makes things a bit more 
clear:  
http://blogs.msdn.com/robmen/archive/2006/10/17/deciphering-the-msi-directory-table-part-7-directories-are-properties.aspx
 (there are links going back to part 1).

-----Original Message-----
From: David Bartmess [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 09:12
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How to install into other than INSTALLDIR?

I've got to install some files in the C:\INetpub\MyProgram directory for
a website, but I'm getting an error stating

Error 1 The Directory with Id 'Root' is not a valid root directory.
There may only be a single root directory per product or module and its
Id attribute value must be 'TARGETDIR' and its Name attribute value must
be 'SourceDir'.
C:\Dev\Code\WSOD\Apps\Products\Maestro\Firm\Installer\Trunk\Wix\MaestroS
erverMain.wxs 35 1 MaestroServer

My Directory structure is below. How do I change it to work?

Thanks!

<Property Id='ROOTDRIVE' Value='$(env.SystemDrive)' />

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

    <Directory Id="ProgramFilesFolder">

        <Directory Id="WSODDir" Name="WSOD">

            <Directory Id="INSTALLLOCATION" Name="MaestroLink">

                <Directory Id="ServerDir" Name="Server">

                    <Directory Id="ToolsDir" Name="Tools"/>

                </Directory>

            </Directory>

        </Directory>

    </Directory>

</Directory>

<Directory Id="Root" Name="[ROOTDRIVE]">

    <Directory Id="IIS" Name="InetPub">

        <Directory Id="MaestroIIS" Name="Maestro">

            <Directory Id="WebUI" Name="WebUI"/>

            <Directory Id="WebServices" Name="WebServices"/>

        </Directory>

    </Directory>

</Directory>



David Bartmess

Wall Street On Demand

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

direct: 303.417.9999 x585

cell: 303.883-9117

fax: 303.444.2586


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to