diff --git a/Enable GamesDows Playnite.bat b/Enable GamesDows Playnite.bat index 81a9a16..361c3c5 100644 --- a/Enable GamesDows Playnite.bat +++ b/Enable GamesDows Playnite.bat @@ -46,11 +46,11 @@ echo rem Check if user is logged on echo whoami ^| find /i "%USERNAME%" ^>nul echo if ERRORLEVEL 1 exit echo rem Set Shell back to Explorer -echo REG ADD "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%EXPLORER_PATH%" /f +echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%EXPLORER_PATH%" /f echo timeout /t 20 /nobreak ^>nul -echo start C:\Windows\explorer.exe +echo powershell -WindowStyle Hidden -NoProfile -Command "Start-Process explorer.exe" echo timeout /t 10 /nobreak ^>nul -echo REG ADD "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%PLAYNITE_PATH%" /f +echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%PLAYNITE_PATH%" /f ) > "%SCRIPT_PATH%"