|
本帖最后由 永远的大象 于 2023-6-6 01:40 编辑
以下内容保存为INF文件,右键安装。即可在打开方式找到。
- [Version]
- Signature="$CHICAGO[ DISCUZ_CODE_0 ]quot;
- [DefaultInstall]
- AddReg=PhotoViewer
- [PhotoViewer]
- HKCU,"Software\Classes\.jpg",,%REG_SZ%,"PhotoViewer.FileAssoc.Tiff"
- HKCU,"Software\Classes\.jpeg",,%REG_SZ%,"PhotoViewer.FileAssoc.Tiff"
- HKCU,"Software\Classes\.gif",,%REG_SZ%,"PhotoViewer.FileAssoc.Tiff"
- HKCU,"Software\Classes\.png",,%REG_SZ%,"PhotoViewer.FileAssoc.Tiff"
- HKCU,"Software\Classes\.bmp",,%REG_SZ%,"PhotoViewer.FileAssoc.Tiff"
- HKCU,"Software\Classes\.tiff",,%REG_SZ%,"PhotoViewer.FileAssoc.Tiff"
- HKCU,"Software\Classes\.ico",,%REG_SZ%,"PhotoViewer.FileAssoc.Tiff"
- [Strings]
- REG_SZ = 0x00000000
- REG_BINARY = 0x00000001
- REG_MULTI_SZ = 0x00010000
- REG_DWORD = 0x00010001
- REG_EXPAND_SZ = 0x00020000
复制代码
以下内容保存为 bat 或 cmd 文件,运行,即可在打开方式里面找到。
- @echo off
- title 找回 Windows Photo Viewer
- ::请求UAC
- fltmc >nul 2>&1 || (
- echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\GetAdmin.vbs"
- echo UAC.ShellExecute "%~f0", "", "", "runas", 1 >> "%temp%\GetAdmin.vbs"
- "%temp%\GetAdmin.vbs"
- del /f /q "%temp%\GetAdmin.vbs" >nul 2>&1
- exit
- )
- pushd "%~dp0"
- ::JPG文件
- REG ADD "HKCU\Software\Classes\.jpg" /ve /d "PhotoViewer.FileAssoc.Tiff"
- ::JPEG文件
- REG ADD "HKCU\Software\Classes\.jpeg" /ve /d "PhotoViewer.FileAssoc.Tiff"
- ::GIF文件
- REG ADD "HKCU\Software\Classes\.gif" /ve /d "PhotoViewer.FileAssoc.Tiff"
- ::png文件
- REG ADD "HKCU\Software\Classes\.png" /ve /d "PhotoViewer.FileAssoc.Tiff"
- ::bmp文件
- REG ADD "HKCU\Software\Classes\.bmp" /ve /d "PhotoViewer.FileAssoc.Tiff"
- ::tiff文件
- ::ico文件
- REG ADD "HKCU\Software\Classes\.ico" /ve /d "PhotoViewer.FileAssoc.Tiff"
复制代码 |
评分
-
查看全部评分
|