Skip to content

Commit

Permalink
Add reboot to recovery and safemode options to desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Gašper Čefarin committed Feb 15, 2022
1 parent 35dc7cd commit 34da4d0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions RCWM/files/RebootToRecoveryDesktop.reg
@@ -0,0 +1,11 @@
Windows Registry Editor Version 5.00

;stolen and adapted from an unknown source

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Reboot to Recovery]
"Icon"="C:\\Windows\\System32\\imageres.dll,-110"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Reboot to Recovery\command]
@="shutdown.exe -r -o -f -t 0"

;done
Binary file modified RCWM/files/SafeMode.reg
Binary file not shown.
Binary file added RCWM/files/SafeModeDesktop.reg
Binary file not shown.
7 changes: 7 additions & 0 deletions RCWM/install.cmd
Expand Up @@ -241,10 +241,17 @@ color a
choice /C yn /M "* Do you want to add Reboot to Recovery to 'This PC' "
if %errorlevel% == 1 ( start /w regedit /s RebootToRecovery.reg )

color a
choice /C yn /M "* Do you want to add Reboot to Recovery to Desktop "
if %errorlevel% == 1 ( start /w regedit /s RebootToRecoveryDesktop.reg )

color b
choice /C yn /M "* Do you want to add Safe Mode to 'This PC' "
if %errorlevel% == 1 ( start /w regedit /s SafeMode.reg )

choice /C yn /M "* Do you want to add Safe Mode to Desktop "
if %errorlevel% == 1 ( start /w regedit /s SafeModeDesktop.reg )

color c
choice /C yn /M "* Do you want to add Copy To Folder "
if %errorlevel% == 1 ( start /w regedit /s CopyToFolder.reg )
Expand Down

0 comments on commit 34da4d0

Please sign in to comment.