A property and a directory ID are both kinds of properties. You use NEWLOC1
as a directory ID and you write your directory structure so that the default
locations for the 2 properties are the IDs of their corresponding directories
in the tree:

<Directory Id="TARGETDIR" Name="SourceDir">
        -- default directory structure for INSTALLDIR
        -- default directory structure for NEWLOC1
</Directory>

So if the default for INSTALLDIR was ProgramFiles/Application and the default
for NEWLOC1 was Programfiles/SomewhereElse, youd write it like this:

<Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="ProgramFiles">
                <Directory Id="INSTALLDIR" Name="Application">
                        ---other application components
                </Directory>
                <Directory Id="NEWLOC1" Name="SomewhereElse">
                        -- components and file share for abc and efg
                </Directory>
        <Directory>
</Directory>

If the user specifies locations for either of those directory properties, the
new location will override the default one.


-----Original Message-----
From: Sudripta Nandy [mailto:sudrip...@sarangsoft.co.in] 
Sent: 27 June 2012 13:24
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Files to install in a location other than INSTALLDIR

Hi,
    In my setup, I want to install 2 files say 'abc.txt' and 'efg.txt' in a
separate location other than the default install location (INSTALLDIR). This
separate location is also user-specified and I am storing the path in a
property called 'NEWLOC1'. I also need to do a 'FileShare' of this location
in read-mode. All other files will be installed in the default install
location (INSTALLDIR) which also is user-specified. My main problem is that I
don't know how to install these two files in the separate location
([NEWLOC1]) other than INSTALLDIR.

    Please help me in finding a solution to my problem.


Thanks.
With Regards,
// Sudripta. 


-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to