mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 18:08: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 "FileFunc.nsh"
|
||||||
!include "LogicLib.nsh"
|
!include "LogicLib.nsh"
|
||||||
!include "Sections.nsh"
|
!include "Sections.nsh"
|
||||||
!include "AccessControl.nsh"
|
|
||||||
!include "x64.nsh"
|
|
||||||
|
|
||||||
;Settings
|
;Settings
|
||||||
Name "Looking Glass (IDD)"
|
Name "Looking Glass (IDD)"
|
||||||
@@ -123,32 +121,6 @@ FunctionEnd
|
|||||||
${EndIf}
|
${EndIf}
|
||||||
!macroend
|
!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
|
;Install
|
||||||
!ifdef IVSHMEM
|
!ifdef IVSHMEM
|
||||||
Section "IVSHMEM Driver" Section0
|
Section "IVSHMEM Driver" Section0
|
||||||
@@ -218,7 +190,6 @@ Section "!Indirect Display Driver (IDD)" Section1
|
|||||||
!insertmacro StopLGIddHelper
|
!insertmacro StopLGIddHelper
|
||||||
|
|
||||||
DetailPrint "Installing IDD"
|
DetailPrint "Installing IDD"
|
||||||
!insertmacro CreateDriverRegKey
|
|
||||||
nsExec::ExecToLog '"$INSTDIR\LGIddInstall.exe" install'
|
nsExec::ExecToLog '"$INSTDIR\LGIddInstall.exe" install'
|
||||||
|
|
||||||
Pop $0
|
Pop $0
|
||||||
@@ -235,7 +206,6 @@ Section "Uninstall" Section6
|
|||||||
|
|
||||||
DetailPrint "Uninstalling IDD"
|
DetailPrint "Uninstalling IDD"
|
||||||
nsExec::ExecToLog '"$INSTDIR\LGIddInstall.exe" uninstall'
|
nsExec::ExecToLog '"$INSTDIR\LGIddInstall.exe" uninstall'
|
||||||
!insertmacro RemoveDriverRegKey
|
|
||||||
|
|
||||||
DetailPrint "Clean up helper service"
|
DetailPrint "Clean up helper service"
|
||||||
nsExec::Exec 'sc.exe delete LGIddHelper'
|
nsExec::Exec 'sc.exe delete LGIddHelper'
|
||||||
|
Reference in New Issue
Block a user