John Hall-9 wrote: > >> I've been reading more about heat, vb6 and vista. I'm now >> starting to get worried that there's a potential difference >> between running Heat on Vista versus XP. And yes, you do >> need to run as Admin, and elevated for Heat to actually >> extract anything. Also, Should I be deleting all the >> registry entries that refer to the VB Virtual Machine Runtime >> DLL...I forget the exact key, but it references >> "c:\windows\system32 ... MSVBRuntime(forgot name).dll. > > I remove the following: > > 1. The VB runtime CLSID: {D5DE8D20-5BB8-11D1-A1E3-00A0C90F2731} > 2. The two VB typelibs: {EA544A21-C82D-11D1-A3E4-00A0C90AEA82} and > {000204EF-0000-0000-C000-000000000046}. > 3. All interfaces that reference either of the typelibs. >
Hi John, To do the above 3 things, would've meant editing about 5000 lines out of my 25000 line file. I'm not an XSL wiz by any standard, but I came up with this solution: * Create XSLT file that processes the above 3 GUIDS and simply removes the element where the attribute value contains or is the GUID in question. * Open it up with Notepadd++ and use the friendly Macro "Remove Blank Lines" for that blank lines that the XSLT processing leaves behind. I downloaded MSXSL command line utility from Microsoft (http://www.microsoft.com/downloads/details.aspx?FamilyID=2FB55371-C94E-4373-B0E9-DB4816552E41&displaylang=en) To use it, in a command prompt: D:\>msxsl Original.wxs Cleanup.xslt -o NiceAndClean.xml I'm including my XSLT file (Cleanup.xslt) in case anybody else wants to use it: Cleanup.xsl ================== <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- stylesheet output --> <xsl:output method="xml" omit-xml-declaration="no" /> <!-- Root template. --> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <!-- Identity copy of all processing-instructions. --> <xsl:template match="comment()|processing-instruction()"> <xsl:copy /> </xsl:template> <!-- Identity copy of all elements. --> <xsl:template match="*"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <!-- Identity copy of all attributes. --> <xsl:template match="@*"> <xsl:copy-of select="."/> </xsl:template> <!-- Remove all the elements that contain the following attributes: --> <xsl:template match="[EMAIL PROTECTED]'{D5DE8D20-5BB8-11D1-A1E3-00A0C90F2731}']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'{000204EF-0000-0000-C000-000000000046}']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'Software\Classes\TypeLib\{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}\6.0\9\win32']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'Software\Classes\TypeLib\{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}\6.0\FLAGS']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'Software\Classes\TypeLib\{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}\6.0\HELPDIR']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'Software\Classes\TypeLib\{EA544A21-C82D-11D1-A3E4-00A0C90AEA82}\6.0']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'Software\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\6.0\9\win32']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'Software\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\6.0\FLAGS']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'Software\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\6.0\HELPDIR']"></xsl:template> <xsl:template match="[EMAIL PROTECTED]'Software\Classes\TypeLib\{000204EF-0000-0000-C000-000000000046}\6.0']"></xsl:template> </xsl:stylesheet> -- View this message in context: http://www.nabble.com/WiX-v3%3A-COM-on-Vista.--I-have-some-success%2C-but-worried-about-heat%27s-erroneous-output.-tf4510373.html#a12890714 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users