Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
fix: delete the uninstall registry key (#136)
Browse files Browse the repository at this point in the history
Otherwise, Windows will still think it's installed after running the
uninstaller.
  • Loading branch information
rizzlesauce authored Dec 2, 2020
1 parent c0a444e commit 0949b0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/pack/win.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Section "Uninstall"
RMDir /r "$INSTDIR"
RMDir /r "$LOCALAPPDATA\\${config.dirname}"
DeleteRegKey /ifempty HKCU "Software\\${config.dirname}"
DeleteRegKey HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${config.dirname}"
SectionEnd
!define Environ 'HKCU "Environment"'
Expand Down

0 comments on commit 0949b0d

Please sign in to comment.