If you need directories that you can set yourself, use a structure like this:

<Directory Id="TARGETDIR" Name="SourceDir">
    <Directory Id="ProgramFiles">
        <Directory Id="CompanyDir" Name"Chaitanya">
            <Directory Id="CONFIGDIR1" Name="Website" />
            <Directory Id="CONFIGDIR2" Name="OtherFiles" />
          </Directory>
    </Directory>
</Directory>

If no properties are passed on the command line, the structure above is used:
the website goes into [ProgramFiles]Chaitanya\website and the otherfiles go
into into [ProgramFiles]Chaitanya\OtherFiles.
If you specify CONFIGDIR1 or CONFIGDIR2 on the command line, then the
defaults are overridden and the files go to the path that you passed.

Example: msiexec /i installer.msi CONFIGDIR1=c:\web CONFIGDIR2=e:\data
This would install website files to c:\web and other files to e:\data

If no properties are passed on the command line, the default is used that is
set by the <Directory> elements.
If you set the Directory ID on the command line to a path, that path
overrides the default.


-----Original Message-----
From: Chaitanya [mailto:chaita...@pointcross.com] 
Sent: 07 February 2013 05:26
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Setting different TARGETDIR

HI,

 

In MSI.i want to set two different TARGETDIR'S .my entire flow is going to
E:\ directory..

But SOme of my folders/files has to go to C:\ dirve.

I tried with InstallDir,SystemDir but those are not working..

Suggest me.how to do

 

Thanks,

wdvwv

-----------------------------------------------------------------------------
-
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 and get the
hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to