Oct 4, 2009 at 2:55 PM
Edited Oct 4, 2009 at 3:31 PM
For the benefit of other non-wix-gurus who come across this issue, here's how I managed to use heat.exe to generate the file list for my game:
1) I created a .bat file at the root of the Wix XNA template folder with the following contents:
"C:\Program Files\SharpDevelop\3.0\bin\Tools\Wix\heat.exe" dir "C:\Path\To\My\GameDir" -cg MyGameFilesGroup -gg -out ".\Source\MyGameFiles.wxs" -var var.GameDeployFolder
2) Added the generated MyGameFiles.wxs file to the setup project under the Source folder
3) Edited Setup.wxs and added <ComponentGroupRef Id="MyGameFilesGroup" /> to the list of Components in the default
<Feature /> element
4) Edited the properties of the setup project (MyGame) in SharpDevelop (Preprocessing tab) and added a variable called
GameDeployFolder with the value of C:\Path\To\My\GameDir.
I haven't properly tested all aspects of the resulting msi, but I'll be sure to post back here if there are any problems ;)
Thanks again Cygon for your help.
[EDIT] - Oh damn. I just noticed none of the files in MyGameFilesGroup were installed. Back to the drawing board.
[EDIT] Almost there. I Changed the bat file to this and now all my game files are installed but into a sub directory of "C:\program files\MyGame\":
"C:\Program Files\SharpDevelop\3.0\bin\Tools\Wix\heat.exe" dir "C:\Path\To\My\GameDir" -cg MyGameFilesGroup -dr INSTALLDIR -gg -out ".\Source\MyGameFiles.wxs" -var var.GameDeployFolder