|
制作PE出现一些问题,请大大们,帮忙解决一下,谢谢
1.PDF阅读器无法打开PDF文件,可关联PDF文件
附关联CMD文件
REM 这个 REGDOC.CMD 是用来设置外挂程序与其文档的关联,如果没有实现关联,可以手动运行这个批处理。
PUSHD %~dp0
SET TP=%CD%
PATH "%WINDIR%\SYSTEM32"
rem 关联pdf
reg add "HKCR\.pdf" /f /ve /t REG_SZ /d "FoxitReader.Document"
reg add "HKCR\.pdf" /f /v "Content Type" /t REG_SZ /d "application/pdf"
reg add "HKCR\FoxitReader.Document\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\FOXITREADER.EXE"
reg add "HKCR\FoxitReader.Document\shell\open\command" /f /ve /t REG_SZ /d "%TP%\FOXITREADER.EXE %%1"
:END
EXIT
2.无法关联WORD,EXCEL文件,用的是ATLANTIS和SPREAD32
附关联文件
REM 这个 REGDOC.CMD 是用来设置外挂程序与其文档的关联,如果没有实现关联,可以手动运行这个批处理。
PUSHD %~dp0
SET TP=%CD%
PATH "%WINDIR%\SYSTEM32"
rem 关联office
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Accepted Documents" /f /v "*" /d "application/msword">nul
reg add "HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/msword" /f /v "Extension" /d ".doc">nul
reg add "HKEY_CLASSES_ROOT\.rtf" /f /ve /d "Word.RTF.8">nul
reg add "HKEY_CLASSES_ROOT\.rtf" /f /v "Content Type" /d "application/msword">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8" /f /v "EditFlags" /t REG_BINARY /d 00000100>nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8" /f /ve /d "RTF 格式">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\shell" /f /ve /d "Open">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\shell\Open" /f /ve /d "打开(&O)">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\shell\Open\command" /f /ve /d "%TP%\WORD.exe \"%%1\"">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\DefaultIcon" /f /ve /d "%TP%\tm.ico">nul
reg add "HKEY_CLASSES_ROOT\Word.RTF.8\CLSID" /f /ve /d "{00020906-0000-0000-C000-000000000046}">nul
reg add "HKEY_CLASSES_ROOT\.doc" /f /ve /d "Word.Document.8">nul
reg add "HKEY_CLASSES_ROOT\.doc" /f /v "Content Type" /d "application/msword">nul
reg add "HKEY_CLASSES_ROOT\.doc\Word.Document.8\ShellNew" /f /v "FileName" /d "winword8.doc">nul
reg add "HKEY_CLASSES_ROOT\.docx" /f /ve /d "Word.Document.8">nul
reg add "HKEY_CLASSES_ROOT\.docx" /f /v "Content Type" /d "application/msword">nul
reg add "HKEY_CLASSES_ROOT\.docx\Word.Document.8\ShellNew" /f /v "FileName" /d "winword8.doc">nul
reg add "HKEY_CLASSES_ROOT\Word.Document" /f /ve /d "Microsoft Word 文档">nul
reg add "HKEY_CLASSES_ROOT\Word.Document\CurVer" /f /ve /d "Word.Document.8">nul
reg add "HKEY_CLASSES_ROOT\Word.Document\CLSID" /f /ve /d "{00020906-0000-0000-C000-000000000046}">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8" /f /v "EditFlags" /t REG_BINARY /d 00000100>nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8" /f /ve /d "Microsoft Word 文档">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\shell" /f /ve /d "Open">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\shell\Open" /f /ve /d "打开(&O)">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\shell\Open\command" /f /ve /d "%TP%\WORD.exe \"%%1\"">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\protocol\StdFileEditing\server" /f /ve /d "%TP%\WORD.exe">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\DefaultIcon" /f /ve /d "%TP%\tm.ico">nul
reg add "HKEY_CLASSES_ROOT\Word.Document.8\CLSID" /f /ve /d "{00020906-0000-0000-C000-000000000046}">nul
reg add "HKEY_CLASSES_ROOT\Word.Document\CurVer" /f /ve /d "Word.Document.8">nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\shell" /f /ve /d "open">nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\shell" /f /v "FriendlyCacheCTime" /t REG_BINARY /d 00131BB5B58DBE01>nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\shell" /f /v "FriendlyCache" /d "Microsoft Excel for Windows">nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\shell\open\command" /f /ve /d "%TP%\Excel.exe \"%%1\"">nul
reg add "HKEY_CLASSES_ROOT\Applications\Excel.exe\DefaultIcon" /f /ve /d "%TP%\pm.ico">nul
reg add "HKEY_CLASSES_ROOT\.xls" /f /ve /d "Excel.Chart.8">nul
reg add "HKEY_CLASSES_ROOT\.xls" /f /v "Content Type" /d "application/vnd.ms-excel">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8" /f /v "EditFlags" /t REG_BINARY /d 00000100>nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8" /f /ve /d "Microsoft Excel 工作簿">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8\shell" /f /ve /d "Open">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8\shell\Open" /f /ve /d "打开(&O)">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8\shell\Open\command" /f /ve /d "%TP%\Excel.exe \"%%1\"">nul
reg add "HKEY_CLASSES_ROOT\Excel.Chart.8\DefaultIcon" /f /ve /d "%TP%\pm.ico">nul
:END
EXIT
3.无法进行makecab右键压缩,
已将makecab文件复制到WIN SYS32目录下,也设置了关联,PE右键出现makecab选项,但不能进行压缩操作
附关联文件内容
REM 这个 REGDOC.CMD 是用来设置外挂程序与其文档的关联,如果没有实现关联,可以手动运行这个批处理。
PUSHD %~dp0
SET TP=%CD%
PATH "%WINDIR%\SYSTEM32"
rem 右键MakeCab、Expand
reg add "HKLM\SOFTWARE\Classes\*\shell\Makecab" /f /ve /t REG_SZ /d "Makecab压缩"
reg add "HKLM\SOFTWARE\Classes\*\shell\Makecab\command" /f /ve /t REG_SZ /d "makecab.exe /D CompressionType=LZX /D CompressionMemory=21 /D Cabinet=ON /D Compress=ON \"%%1\""\
:END
EXIT |
|