Transform Heat generated .wxs with XSLT (add RegistryValue and edit some values)
问题 This is my desired output: <Component Id="C_SOMEFILE" Guid="some-guid-here"> <File Id="File_SOMEFILE" Source="$(var.Source)\SOMEFILE" KeyPath="no" /> <RegistryValue Root="HKCU" Key="Software\Product" Name="installed" Type="integer" Value="1" KeyPath="yes" /> </Component> This is my XSLT file: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wix="http://schemas.microsoft.com/wix/2006/wi" xmlns="http://schemas.microsoft.com/wix/2006/wi" exclude-result