windows installer - Add all items in a subfolder in wix -
i'm trying add items in subfolder using wix , i'm having trouble getting work. folder i'm trying include sourcedir\cgis\plugins. i've tried following command:
heat.exe dir "c:\builds\5\agile\enhancements\sources\cgis\plugins" -cg "plugins" -gg -dr "installdir" -out "c:\builds\5\agile\enhancements\sources\installer\installerfiles\pluginsautogenerated.wxs"
but resulting wix file has paths set "sourcedir\plugins" , doesn't include "cgis" path. think it's "installdir" part that's screwing up. how fix this?
here's generated wix file...
<?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <fragment> <directoryref id="installdir"> <directory id="dirfbc2981ad00f77a864b229d586a8ff4a" name="plugins" /> </directoryref> </fragment> <fragment> <componentgroup id="plugins"> <component id="cmp7d6d1821410032777186b326a94b0074" directory="dirfbc2981ad00f77a864b229d586a8ff4a" guid="{cb140bba-a0f1-4dc4-9f52-ec52d37f4fb1}"> <file id="fil3199d322312fcf2e65220ee1d32e9d01" keypath="yes" source="sourcedir\plugins.xml" /> </component> <component id="cmp6e9ae677b75d04e674fa3600540b1625" directory="dir3b79d62cb22dde06acabfe4c349dc3d5" guid="{f51de300-28e8-4da6-9e04-b4f889f0a847}"> <file id="fil1da820df22a14405da2283f347562788" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\config.xml" /> </component> <component id="cmp8dad3f1fb1522629c192166c154c3a2a" directory="dir3f8aa07072f01f9de0d4eccecd604ef4" guid="{f2d082e5-b1d3-4a84-b526-99547be0de3a}"> <file id="fildb175fb5e01053a10c735912de80795d" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\resources\config.htm" /> </component> <component id="cmpc8d27078ea051ec23dcf06532a177c29" directory="dir3f8aa07072f01f9de0d4eccecd604ef4" guid="{95cabefb-3001-4002-8500-333b7934e638}"> <file id="fil955421cb1ef3331e272e34cf27ec98a3" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\resources\config.js" /> </component> <component id="cmp6a18228b64852e3965f5b08302b1bfe6" directory="dir3f8aa07072f01f9de0d4eccecd604ef4" guid="{6db30523-af43-4707-b56b-ba41735b9d80}"> <file id="fil101fad959ebbdc663b02415e44cbea5d" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\resources\editquestion.htm" /> </component> <component id="cmp7b3c7804dc1ac1264e496af4c0257472" directory="dir3f8aa07072f01f9de0d4eccecd604ef4" guid="{d069ae5a-cffb-40c3-8ffb-cb182cbb5851}"> <file id="fil9dde5d2879be190c6b522b922923e007" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\resources\invite.htm" /> </component> <component id="cmp70098e40bce6d583d32192ea9d0f27ae" directory="dir3f8aa07072f01f9de0d4eccecd604ef4" guid="{e6f526d8-e16d-4908-a9fc-732689156f8e}"> <file id="fil617d430bb9e459f67655dd2b52a3cefa" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\resources\manageposition.htm" /> </component> <component id="cmp560f53e98d173ead5938035ec67798e4" directory="dir3f8aa07072f01f9de0d4eccecd604ef4" guid="{acf50cf2-06dd-4611-9f43-78f4c85621b5}"> <file id="fil720812fa3f9f621eb8c2367da7fb9125" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\resources\present.htm" /> </component> <component id="cmp71b59d692fe6223bc7a8d71e4f735c3a" directory="dir3f8aa07072f01f9de0d4eccecd604ef4" guid="{a0a37806-cbc0-4403-8703-cc2fcb4274a8}"> <file id="filf660600a71b9a682f7a855c11fb2d8f7" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\resources\present.js" /> </component> <component id="cmp8c216ae888ae23d9b30c37f00d8f7916" directory="dir3f8aa07072f01f9de0d4eccecd604ef4" guid="{c7a2ef9a-62e7-4065-a1f6-717421b7db4a}"> <file id="fil8e34957df91061cb256c47d02702b954" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\resources\results.htm" /> </component> <component id="cmp89c31f6e30a85f33f4df1ac88f321152" directory="dir3f8aa07072f01f9de0d4eccecd604ef4" guid="{9f6f0e18-5f38-474f-8cf6-e674dabb499f}"> <file id="fil719870adfe89377cac14f76531334931" keypath="yes" source="sourcedir\fce98f84-d42f-4849-abac-40b8c0681cca\resources\styles.css" /> </component> </componentgroup> </fragment> <fragment> <directoryref id="dirfbc2981ad00f77a864b229d586a8ff4a"> <directory id="dir3b79d62cb22dde06acabfe4c349dc3d5" name="fce98f84-d42f-4849-abac-40b8c0681cca" /> </directoryref> </fragment> <fragment> <directoryref id="dir3b79d62cb22dde06acabfe4c349dc3d5"> <directory id="dir3f8aa07072f01f9de0d4eccecd604ef4" name="resources" /> </directoryref> </fragment> </wix>
i haven't used tool in ages, perhaps try:
heat.exe dir "c:\builds\5\agile\enhancements\sources" -gg -sfrag -out "c:\builds\5\agile\enhancements\sources\installer\installerfiles\pluginsautogenerated.wxs"
i added -sfrag
suppress generation of fragments directories , components, removed -cg "plugins"
, -dr "installdir"
before shortened input path stop @ "sources"
. difficult right without experimenting on actual folder structure, give go.
i believe people end using -var
flag: wix heat.exe command parameter -var not accept spaces?
just easy access: harvest tool (heat) command line reference.
Comments
Post a Comment