mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-10 09:28:08 +00:00
Revert idd reg changes due to missing nsis support
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user