Hey Girls & Guys
I tried to create an scipt part (like the fist part) that includes RegWrite commands and Send Commands to write a registry key (just one).
After part 1 would come part 2/3/4/5 (all just install-parts with RUN that i already wrote)
Can someone help me, what is wrong in my Part1 script?
Here the script:
; Folder: 01. Enable\Optimierung.reg - Registry key add part
#RequireAdmin ; Admin priviledge
$regFile = @TempDir & '\01. Enable\Optimierung.reg'
RunWait("Regedit " & $regFile)
; Key check
RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLinkedConnections")
; Key write
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLinkedConnections", "REG_DWORD", "00000001")
Sleep(4000)
If WinActive("Registrierungs-Editor", "") Then
Send("{ENTER}")
EndIf