Revert idd reg changes due to missing nsis support

This commit is contained in:
Geoffrey McRae
2025-09-13 11:20:37 +10:00
parent e6b3b7fa76
commit 2d28d27e90

View File

@@ -25,8 +25,6 @@
!include "FileFunc.nsh"
!include "LogicLib.nsh"
!include "Sections.nsh"
!include "AccessControl.nsh"
!include "x64.nsh"
;Settings
Name "Looking Glass (IDD)"
@@ -123,32 +121,6 @@ FunctionEnd
${EndIf}
!macroend
!macro CreateDriverRegKey
${If} ${RunningX64} == 1
SetRegView 64
${EndIf}
; Create just the key
WriteRegStr HKLM "Software\\LookingGlass\\IDD" "" ""
; Grant FullAccess to SYSTEM (SID S-1-5-18)
AccessControl::GrantOnRegKey HKLM "Software\\LookingGlass\\IDD" "(S-1-5-18)" "FullAccess"
Pop $R0
!macroend
!macro RemoveDriverRegKey
${If} ${RunningX64} == 1
SetRegView 64
${EndIf}
; Remove the entire key
DeleteRegKey HKLM "Software\\LookingGlass"
!macroend
;Install
!ifdef IVSHMEM
Section "IVSHMEM Driver" Section0
@@ -218,7 +190,6 @@ Section "!Indirect Display Driver (IDD)" Section1
!insertmacro StopLGIddHelper
DetailPrint "Installing IDD"
!insertmacro CreateDriverRegKey
nsExec::ExecToLog '"$INSTDIR\LGIddInstall.exe" install'
Pop $0
@@ -235,7 +206,6 @@ Section "Uninstall" Section6
DetailPrint "Uninstalling IDD"
nsExec::ExecToLog '"$INSTDIR\LGIddInstall.exe" uninstall'
!insertmacro RemoveDriverRegKey
DetailPrint "Clean up helper service"
nsExec::Exec 'sc.exe delete LGIddHelper'