Skip to content

Commit 40b380b

Browse files
committed
fix(nv context menu): enable path, silent fix
1 parent 51454e6 commit 40b380b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Context Menu/Add Container Context Menu.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ reg add "HKCR\DesktopBackground\Shell\NVIDIAContainer" /v "Position" /t REG_SZ /
2929
reg add "HKCR\DesktopBackground\Shell\NVIDIAContainer" /v "SubCommands" /t REG_SZ /d "" /f > nul
3030
reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer001" /v "HasLUAShield" /t REG_SZ /d "" /f > nul
3131
reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer001" /v "MUIVerb" /t REG_SZ /d "Enable NVIDIA Display Container LS" /f > nul
32-
reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer001\command" /ve /t REG_SZ /d "\"%windir%\AtlasDesktop\6. Advanced Configuration\Services\NVIDIA Display Container\Enable NVIDIA Display Container LS.cmd (default)"" /f > nul
32+
reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer001\command" /ve /t REG_SZ /d "\"%windir%\AtlasDesktop\6. Advanced Configuration\Services\NVIDIA Display Container\Enable NVIDIA Display Container LS (default).cmd"" /f > nul
3333
reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer002" /v "HasLUAShield" /t REG_SZ /d "" /f > nul
3434
reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer002" /v "MUIVerb" /t REG_SZ /d "Disable NVIDIA Display Container LS" /f > nul
3535
reg add "HKCR\DesktopBackground\shell\NVIDIAContainer\shell\NVIDIAContainer002\command" /ve /t REG_SZ /d "\"%windir%\AtlasDesktop\6. Advanced Configuration\Services\NVIDIA Display Container\Disable NVIDIA Display Container LS.cmd"" /f > nul

src/playbook/Executables/AtlasDesktop/6. Advanced Configuration/Services/NVIDIA Display Container/Context Menu/Remove Container Context Menu (default).cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ fltmc > nul 2>&1 || (
1313
exit /b
1414
)
1515

16-
:main
1716
:: check if the service exists
1817
reg query "HKCR\DesktopBackground\shell\NVIDIAContainer" > nul 2>&1 || (
19-
if "%~1"=="/silent" exit /b
2018
echo The context menu does not exist, thus you cannot continue.
19+
if "%~1"=="/silent" exit /b
2120
echo]
2221
pause
2322
exit /b 1
@@ -26,6 +25,7 @@ reg query "HKCR\DesktopBackground\shell\NVIDIAContainer" > nul 2>&1 || (
2625
echo Explorer will be restarted to ensure that the context menu is removed.
2726
pause
2827

28+
:main
2929
reg delete "HKCR\DesktopBackground\Shell\NVIDIAContainer" /f > nul 2>&1
3030

3131
:: delete icon exe

0 commit comments

Comments
 (0)