I think it may be co-incidence that it is installing to D:\ because
ROOTDRIVE is set by default to the drive with the most free space and
hence TARGETDIR is the same.

I do something similar like this:
    <!-- Initialise the DRIVE1 and DRIVE2 to the default value if they
are not specified -->
    <SetProperty Id="DRIVE1" Value="E:\"
After="CostInitialize"><![CDATA[DRIVE1=""]]></SetProperty>
    <SetProperty Id="DRIVE2" Value="L:\"
After="CostInitialize"><![CDATA[DRIVE2=""]]></SetProperty>

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="DRIVE1">
      </Directory>
      <Directory Id="DRIVE2">
      </Directory>
    </Directory>

I think you could also use <SetDirectory/> instead of <SetProperty/> but
I haven't tried that.

Neil

-----Original Message-----
From: Kalvagadda, SivaKrishna (MLX Technology)
[mailto:sivakrishna_kalvaga...@ml.com] 
Sent: 09 January 2009 02:40
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Installing Files to multiple drives....

Hi,

I have a requirement of installing the files on to multiple drives
(D,E,F).

I used below code to install E,D, when I install the package it is
creating E drive section perfectly but coming to D drive it is
installing that section also in E drive except the folder
BusCntdfasdfasf which is installing on D drive. Could some help me on
below. I have been trying this requirement since long time.

<Property Id="ROOTDRIVE" Value="e:\" ></Property>

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

      <Directory Id='appspub' Name='app' LongName='Appspub'>
        <Directory Id='inetpub' Name='inetpub' LongName='inetpub'>
          <Directory Id='websites' Name='websites' LongName='websites'>
            <Directory Id='testing' Name='test'
LongName='test'></Directory>
            <Component  Id="WebVirtualDirComponent1"
Guid="8c7d59c0-b84d-40d9-b3a5-0c73b6487ae5">
              <File  Id='WixExampleFile1' Name='simple.txt'
src='bin\simple.txt' DiskId='1' />
            </Component>
          </Directory>
          <Directory Id='Brands' Name='Brands' LongName='Brands'>
            <Directory Id='testingB' Name='test'
LongName='test'></Directory>
            <Component  Id="WebVirtualDirComponent1B"
Guid="8c7d59c0-b84d-40d9-b3a5-0c73b6487ae5">
              <File  Id='WixExampleFile1B' Name='simple.txt'
src='bin\simple.txt' DiskId='1' />
            </Component>
          </Directory>
        </Directory>
      </Directory>



      <Directory Id='D_root' Name='root'>
        <Directory Id='Inetpubdir' Name='inetpub' LongName='inetpub'>
          <Directory Id="wwwrootdir" Name="wwwroot" LongName="wwwroot">
            <Directory Id="APPNAME" Name="IISPkg" LongName="IISPkgTest">
            </Directory>
            <Directory Id="BussinessContent" Name="BusCnt"
LongName="BusCntdfasdfasf">
            </Directory>
          </Directory>
        </Directory>
    </Directory>

<CustomAction Id="Assign_D_root" Execute="immediate" Property="D_root"
Value="d:\"></CustomAction>

Regards, 
Siva.

------------------------------------------------------------------------
--
This message w/attachments (message) may be privileged, confidential or
proprietary, and if you are not an intended recipient, please notify the
sender, do not use or share it and delete it. Unless specifically
indicated, this message is not an offer to sell or a solicitation of any
investment products or other financial product or service, an official
confirmation of any transaction, or an official statement of Merrill
Lynch. Subject to applicable law, Merrill Lynch may monitor, review and
retain e-communications (EC) traveling through its networks/systems. The
laws of the country of each sender/recipient may impact the handling of
EC, and EC may be archived, supervised and produced in countries other
than the country in which you are located. This message cannot be
guaranteed to be secure or error-free. References to "Merrill Lynch" are
references to any company in the Merrill Lynch & Co., Inc. group of
companies, which are wholly-owned by Bank of America Corporation. Secur
 ities and Insurance Products: * Are Not FDIC Insured * Are Not Bank
Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a
Condition to Any Banking Service or Activity * Are Not Insured by Any
Federal Government Agency. Attachments that are part of this
E-communication may have additional important disclosures and
disclaimers, which you should read. This message is subject to terms
available at the following link:
http://www.ml.com/e-communications_terms/. By messaging with Merrill
Lynch you consent to the foregoing.
------------------------------------------------------------------------
--
 
------------------------------------------------------------------------
------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to