Skip to content
Snippets Groups Projects
Commit 06a5cf4d authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Merge branch 'hotfix-winnoadmin' into 'master'

Hotfix winnoadmin

See merge request !1836
parents 8b70729b 751a5969
No related branches found
No related tags found
1 merge request!1836Hotfix winnoadmin
......@@ -221,7 +221,10 @@ Section "${APP_NAME}" CORE
WriteRegStr HKLM "${UNINSTALL_PATH}" "Publisher" "${PUBLISHER}"
WriteRegStr HKLM "${UNINSTALL_PATH}" "DisplayIcon" "$INSTDIR\${EXE_NAME}"
; Remove "RUNASADMIN" flag for node if it was present
DetailPrint "Try remove runasadmin HKCU"
DeleteRegValue HKCU "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\" "$INSTDIR\${NODE_NAME}.exe"
WriteUninstaller "$INSTDIR\Uninstall.exe"
;${DisableX64FSRedirection}
......@@ -365,7 +368,7 @@ Section "Uninstall"
Delete "$INSTDIR\${NODE_NAME}-config.exe"
DeleteRegKey HKLM "${UNINSTALL_PATH}"
DeleteRegKey HKLM "Software\${APP_NAME}"
DeleteRegKey HKCU "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\$INSTDIR\${NODE_NAME}.exe"
DeleteRegValue HKCU "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\" "$INSTDIR\${NODE_NAME}.exe"
Delete "$INSTDIR\Uninstall.exe"
;RMDir "$INSTDIR"
RMDir /R "$INSTDIR"
SectionEnd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment