We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4c31d0 commit ef48758Copy full SHA for ef48758
src/com/inet/gradle/setup/msi/WxsFileBuilder.java
@@ -113,10 +113,7 @@ class WxsFileBuilder extends XmlFileBuilder<Msi> {
113
*/
114
void build() throws Exception {
115
// Wix node
116
- Element wix = (Element)doc.getFirstChild();
117
- if( !"Wix".equals( wix.getTagName() ) ) {
118
- throw new IllegalArgumentException( "Template does not contains a Wix root: " + wix.getTagName() );
119
- }
+ Element wix = getOrCreateChild( doc, "Wix", true );
120
wix.setAttributeNS( "http://www.w3.org/2000/xmlns/", "xmlns", "http://schemas.microsoft.com/wix/2006/wi" );
121
wix.setAttributeNS( "http://www.w3.org/2000/xmlns/", "xmlns:util", "http://schemas.microsoft.com/wix/UtilExtension" );
122
0 commit comments