Re: [WiX-users] Specifying source subdirectory
On 16-May-12 12:52, Martin Sustrik wrote: C:\Users\me\libxs\foo.wxs(98) : error LGHT0103 : The system cannot find the file 'foo.h'. See How To: Specify source files in wix.chm. -- sig://boB http://joyofsetup.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
Re: [WiX-users] Specifying source subdirectory
Look into using SourceDir, eg. File .. Source='SourceDir\include\foo.h'/ You can use the -b linker option to specify the exact location of SourceDir. See also - http://stackoverflow.com/questions/1811035/spaces-in-my-wix-source-path Martin Sustrik-2 wrote Hi, My source tree has a file in include subdirectory. I want to install it to include subdirectory on the target box. I do the following: Directory Id='TARGETDIR' Name='SourceDir' Directory Id='ProgramFilesFolder' Name='PFiles' Directory Id='INSTALLDIR' Name='Foo' Directory Id='include' Name='include' Component Id='core_include' Guid='...' File Id='foo.h' Name='foo.h' DiskId='1' Source='foo.h'/ Light.exe is looking for the foo.h in the main directory (where light.exe is run from) rather than in include subdirectory: C:\Users\me\libxs\foo.wxs(98) : error LGHT0103 : The system cannot find the file 'foo.h'. Any ideas? Martin -- 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@.sourceforge https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Specifying-source-subdirectory-tp7562246p7564527.html Sent from the wix-users mailing list archive at Nabble.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
[WiX-users] Specifying source subdirectory
Hi, My source tree has a file in include subdirectory. I want to install it to include subdirectory on the target box. I do the following: Directory Id='TARGETDIR' Name='SourceDir' Directory Id='ProgramFilesFolder' Name='PFiles' Directory Id='INSTALLDIR' Name='Foo' Directory Id='include' Name='include' Component Id='core_include' Guid='...' File Id='foo.h' Name='foo.h' DiskId='1' Source='foo.h'/ Light.exe is looking for the foo.h in the main directory (where light.exe is run from) rather than in include subdirectory: C:\Users\me\libxs\foo.wxs(98) : error LGHT0103 : The system cannot find the file 'foo.h'. Any ideas? Martin -- 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
Re: [WiX-users] Specifying source subdirectory
You would need to include a full path to the source file. The deployment layout does not have to match the source layout. I normally use fully qualified paths via a variable for the relative root, and then a relative path from there to the source file. You could try include\foo.h as the source file. -Original Message- From: Martin Sustrik [mailto:sust...@250bpm.com] Sent: Wednesday, May 16, 2012 11:52 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Specifying source subdirectory Hi, My source tree has a file in include subdirectory. I want to install it to include subdirectory on the target box. I do the following: Directory Id='TARGETDIR' Name='SourceDir' Directory Id='ProgramFilesFolder' Name='PFiles' Directory Id='INSTALLDIR' Name='Foo' Directory Id='include' Name='include' Component Id='core_include' Guid='...' File Id='foo.h' Name='foo.h' DiskId='1' Source='foo.h'/ Light.exe is looking for the foo.h in the main directory (where light.exe is run from) rather than in include subdirectory: C:\Users\me\libxs\foo.wxs(98) : error LGHT0103 : The system cannot find the file 'foo.h'. Any ideas? Martin -- 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 -- 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