diff --git a/electron-builder.json b/electron-builder.json index 4eb03248..262dea15 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -180,6 +180,9 @@ "uninstallDisplayName": "${productName}", "include": "scripts/installer.nsh" }, + "msi": { + "additionalWixArgs": ["-ext", "WixUtilExtension"] + }, "rpm": { "fpm": ["--rpm-rpmbuild-define", "_build_id_links none"] } diff --git a/patches/app-builder-lib+24.13.3.patch b/patches/app-builder-lib+24.13.3.patch index db4590e3..6eb18929 100644 --- a/patches/app-builder-lib+24.13.3.patch +++ b/patches/app-builder-lib+24.13.3.patch @@ -1,20 +1,46 @@ diff --git a/node_modules/app-builder-lib/templates/msi/template.xml b/node_modules/app-builder-lib/templates/msi/template.xml -index 2d5cd3c..04ed672 100644 +index 2d5cd3c..92a0556 100644 --- a/node_modules/app-builder-lib/templates/msi/template.xml +++ b/node_modules/app-builder-lib/templates/msi/template.xml -@@ -26,6 +26,11 @@ +@@ -1,5 +1,8 @@ + +- ++ + + + +@@ -26,6 +29,27 @@ {{ } -}} -+ ++ ++ + -+ ++ ++ ++ + + {{ if (isRunAfterFinish) { }} {{ if (!isAssisted) { }} -@@ -42,6 +47,7 @@ +@@ -42,6 +66,7 @@ {{ } -}} @@ -22,7 +48,7 @@ index 2d5cd3c..04ed672 100644 {{ if (isAssisted) { }} -@@ -80,6 +86,7 @@ +@@ -80,6 +105,7 @@ {{ } -}} @@ -30,7 +56,7 @@ index 2d5cd3c..04ed672 100644 {{ if (menuCategory) { }} -@@ -110,6 +117,10 @@ +@@ -110,6 +136,10 @@ {{-dirs}}