We currently are using custom tables and CAs in order to register files after they have been installed on the target machine. This is OK, but we would prefer to be able to insert the registration information directly into the msi itself thus not having the overhead of streaming out file registration dlls and having to handle it at runtime.
So as a test we are manually using heat.exe to get registration information and inserting the data into our wix component files. This was working well so today I began extending wix with a custom File attribute that would do the following: 1. use the System.Diagnostics.Process class to call heat.exe and create a temp.wxs file with the file registration information in it. 2. load that file into an XmlDocument 3. Parse the File and Component elements looking for any elements related to file registration (Class, ProgID, TypeLib, etc.) 4. Then use those elements to create new rows. For step 4, I found the Parse<ClassName>Element methods of the Compiler class that do exactly what I need, but they are private. So I'm most likely going to have to copy those functions into my CompilerExtension class and modify them as needed. Before I do that though, I wanted to throw this out there as I've got to believe that this could be usable by others as well. A simple attribute in a File element (which is how we'd planned on doing it) could flag wix to generate file registration data at build time for that file (file can be found from the Source attribute). Does this sound like something that could be added to WiX? Or is there a better way to auto-generate file registration information at build time? -- View this message in context: http://www.nabble.com/auto-generation-of-file-registration-data-%28heat-%29-tf2268364.html#a6295690 Sent from the wix-users forum at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users