mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix windows installer when app directory removed manually
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
1e96c5a2d4
commit
1a90f8b7b3
12
build/installer.nsh
Normal file
12
build/installer.nsh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
!macro customInit
|
||||||
|
; Workaround for installer handing when the app directory is removed manually
|
||||||
|
${ifNot} ${FileExists} "$INSTDIR"
|
||||||
|
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\{${UNINSTALL_APP_KEY}}"
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
|
; Workaround for the old-format uninstall registry key (some people report it causes hangups, too)
|
||||||
|
ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_APP_KEY}" "QuietUninstallString"
|
||||||
|
StrCmp $0 "" proceed 0
|
||||||
|
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${UNINSTALL_APP_KEY}"
|
||||||
|
proceed:
|
||||||
|
!macroend
|
||||||
@ -128,6 +128,9 @@
|
|||||||
"target": [
|
"target": [
|
||||||
"nsis"
|
"nsis"
|
||||||
],
|
],
|
||||||
|
"nsis": {
|
||||||
|
"include": "build/installer.nsh"
|
||||||
|
},
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
"from": "binaries/client/windows/x64/kubectl.exe",
|
"from": "binaries/client/windows/x64/kubectl.exe",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user