summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2020-06-17 16:15:49 +0100
committerbreadcat2020-06-17 16:15:49 +0100
commit6fc303326b7206fe8bcccdbe525609047bd3bfbf (patch)
tree8946773141c4516a0a9d8d9ed430f77df7892472
parent139ea722290bab2fefa20a5c80e63a41fdda6036 (diff)
downloadwin10-prep-6fc303326b7206fe8bcccdbe525609047bd3bfbf.tar.gz
win10-prep-6fc303326b7206fe8bcccdbe525609047bd3bfbf.tar.bz2
win10-prep-6fc303326b7206fe8bcccdbe525609047bd3bfbf.zip
Add support for win32calc, if found
-rw-r--r--3-registry.bat3
1 files changed, 3 insertions, 0 deletions
diff --git a/3-registry.bat b/3-registry.bat
index 2811b2b..4453cf1 100644
--- a/3-registry.bat
+++ b/3-registry.bat
@@ -40,6 +40,9 @@ reg add "HKCU\Software\Classes\.jpeg" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Ti
reg add "HKCU\Software\Classes\.jpg" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Classes\.png" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
reg add "HKCU\Software\Classes\.tiff" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
+rem support win32calc if exists
+if exist %windir%\System32\win32calc.exe reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\calc.exe" /v "Debugger" /t REG_SZ /d "\"%SystemRoot%\System32\win32calc.exe\"" /f
+if exist %windir%\System32\win32calc.exe reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\calc.exe" /v "Debugger" /t REG_SZ /d "\"%SystemRoot%\System32\win32calc.exe\"" /f
rem notepad file associations
for %%x in (cfg conf cpp cue go json md nfo nfo-orig patch php sh srt toml yml) do reg add "HKCR\.%%x" /ve /t REG_SZ /d "txtfile" /f
rem disable various services