I will always be installing a file in that location. You can see that the two files 'abc.txt' and 'efg.txt' gets installed in that location. I have even tried putting it like this: <util:User Id='EveryUsr' Name='Everyone' /> <DirectoryRef Id='TARGETDIR'> <Directory Id='NEWLOC1'> <Component Id='CompABC' Guid='F89F12A5-3D24-4FE6-BAA0-F280EA6DC70A'> <File Id='FileABC' Name='abc.txt' DiskId='1' Source='.\abc.txt' /> </Component> <Component Id='CompEFG' Guid='FFF2F006-CAFF-4C42-9C12-D2C979D8F01F'> <File Id='FileEFG' Name='efg.txt' DiskId='1' Source='.\efg.txt' /> </Component> <Component Id='MyCompShareNewLoc' Guid='AD3F1A3E-393C-4A97-93B8-323A8378F3B0'> <util:FileShare Id='MyShrNewLoc' Name='NewLocShare'> <util:FileSharePermission User="EveryUsr" GenericExecute='yes' GenericRead='yes' Read='yes' /> </util:FileShare> </Component>
</Directory> </DirectoryRef> But, still it doesn't help. No matter what I do I am unable to get rid of the link error. Thanks. -----Original Message----- From: "Peter Shirtcliffe" <pshirtcli...@sdl.com> Sent: Wednesday, 22 August, 2012 2:44pm To: "Sudripta Nandy" <sudrip...@sarangsoft.co.in>, "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Subject: RE: [WiX-users] Files to install in a location other than INSTALLDIR Normally directories are created automatically when a file is installed into them. For some reason, the ICE checker thinks you might not install a file into that location.I'm not sure how intelligent it is at calculating when this can happen. If you are happy that there are valid situations where files might not be installed there, just add <CreateFolder> into your MyCompShareNewLoc component. That ensures that the directory will always be created. -----Original Message----- From: Sudripta Nandy [mailto:sudrip...@sarangsoft.co.in] Sent: 22 August 2012 11:06 To: WIX 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. I am using the following script to create the separate location and share it: <util:User Id='EveryUsr' Name='Everyone' /> <Directory Id='NEWLOC1'> <Component Id='MyCompShareNewLoc' Guid='AD3F1A3E-393C-4A97-93B8-323A8378F3B0'> <util:FileShare Id='MyShrNewLoc' Name='NewLocShare'> <util:FileSharePermission User="EveryUsr" GenericExecute='yes' GenericRead='yes' Read='yes' /> </util:FileShare> </Component> </Directory> In another fragment file: <DirectoryRef Id='NEWLOC1'> <Component Id='CompABC' Guid='F89F12A5-3D24-4FE6-BAA0-F280EA6DC70A'> <File Id='FileABC' Name='abc.txt' DiskId='1' Source='.\abc.txt' /> </Component> <Component Id='CompEFG' Guid='FFF2F006-CAFF-4C42-9C12-D2C979D8F01F'> <File Id='FileEFG' Name='efg.txt' DiskId='1' Source='.\efg.txt' /> </Component> </DirectoryRef> The problem is that I am getting a 'light' link error: error LGHT0204: ICE18: KeyPath for Component: 'MyCompShareNewLoc' is Directory: 'NEWLOC1'. The Directory/Component pair must be listed in the CreateFolders table. Please help me in finding a solution to my problem. Thanks. With Regards, // Sudripta. Thanking You, With Regards, // Sudripta Nandy S.D.E (Systems Programming), SARANGSoft (India) Pvt. Ltd. Kolkata, India. Phone: +91 33 4008 9813. Extn: 24 Visit: http://www.sarangsoft.com/ ----------------------------------------------------------------------------- - 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