Skip to content

Commit e4e5cc7

Browse files
committed
feat(nsis): custom uninstall application icon
Close #1585
1 parent 565740c commit e4e5cc7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/electron-builder/src/targets/nsis.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ export class NsisTarget extends Target {
361361

362362
const uninstallerIcon = await packager.getResource(options.uninstallerIcon, "uninstallerIcon.ico")
363363
if (uninstallerIcon != null) {
364+
// we don't need to copy MUI_UNICON (defaults to app icon), so, we have 2 defines
364365
defines.UNINSTALLER_ICON = uninstallerIcon
366+
defines.MUI_UNICON = uninstallerIcon
365367
}
366368
}
367369

test/out/windows/__snapshots__/portableTest.js.snap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ Object {
1515
exports[`portable 1`] = `
1616
Object {
1717
"win": Array [
18-
Object {
19-
"arch": null,
20-
"file": "latest.yml",
21-
},
2218
Object {
2319
"arch": 1,
2420
"file": "Test App ßW Setup 1.1.0.exe",

0 commit comments

Comments
 (0)