summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2020-06-17 16:16:12 +0100
committerbreadcat2020-06-17 16:16:12 +0100
commit3331fd0916110a3eeb98fe9ffe5fd14801658e26 (patch)
tree164b11a317670ad90e2eeb7407dd6b0ab219bb29
parent6fc303326b7206fe8bcccdbe525609047bd3bfbf (diff)
downloadwin10-prep-3331fd0916110a3eeb98fe9ffe5fd14801658e26.tar.gz
win10-prep-3331fd0916110a3eeb98fe9ffe5fd14801658e26.tar.bz2
win10-prep-3331fd0916110a3eeb98fe9ffe5fd14801658e26.zip
Loop image viewer associations instead
-rw-r--r--3-registry.bat8
1 files changed, 1 insertions, 7 deletions
diff --git a/3-registry.bat b/3-registry.bat
index 4453cf1..dda1fe1 100644
--- a/3-registry.bat
+++ b/3-registry.bat
@@ -33,13 +33,7 @@ reg add "HKCR\Applications\photoviewer.dll\shell\open\command" /ve /t REG_EXPAND
reg add "HKCR\Applications\photoviewer.dll\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
reg add "HKCR\Applications\photoviewer.dll\shell\print\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
reg add "HKCR\Applications\photoviewer.dll\shell\print\DropTarget" /v "Clsid" /t REG_SZ /d "{60fd46de-f830-4894-a628-6fa81bc0190d}" /f
-reg add "HKCU\Software\Classes\.bmp" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
-reg add "HKCU\Software\Classes\.gif" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
-reg add "HKCU\Software\Classes\.ico" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
-reg add "HKCU\Software\Classes\.jpeg" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
-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
+for %%x in (bmp gif ico jpeg jpg png tiff) do reg add "HKCU\Software\Classes\.%%x" /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