Skip to content

NSIS uninstaller does not remove $INSTDIR #9180

@chroberino

Description

@chroberino

I'm using electron-builder (version 24.13.3) with NSIS configuration in package.json as follows:

"nsis": {
  "oneClick": true,
  "perMachine": true,
  "allowElevation": true,
  "allowToChangeInstallationDirectory": false,
  "createDesktopShortcut": true,
  "createStartMenuShortcut": true,
  "shortcutName": "MyApp",
  "menuCategory": "My App Category",
  "artifactName": "MyApp ${version} Setup.exe"
}

The uninstaller removes all the contents of $INSTDIR, but the empty $INSTDIR itself (e.g. C:\Program Files\MyApp) remains after uninstall.

Expected Behavior:
The uninstaller should not just remove all contents of $INSTDIR but also the $INSTDIR folder itself.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions