我都是安装模式。
EXEC pecmd DEVI $$d:\WINRAR\WinRAR.inf
“d:\WINRAR\WinRAR.inf”这行代码是你winrar.inf的存放目录,改成你实际的就行。 要求winrar.inf必须放在winrar目录。winrar.inf内容如下:
- [Version]
- Signature="$Windows NT[ DISCUZ_CODE_0 ]quot;
- Provider="http://txm100308.blog.163.com"
- [DefaultInstall]
- AddReg=WinRAR_AddReg
- [WinRAR_DelReg]
- [WinRAR_AddReg]
- hklm,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe",,,"%01%\WinRAR.exe"
- hklm,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe","Path",,"%01%"
- hkcr,"*\shellex\ContextMenuHandlers\WinRAR",,,"{B41DB860-64E4-11D2-9906-E49FADC173CA}"
- hkcr,"*\shellex\ContextMenuHandlers\WinRAR32",,,"{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
- hkcr,".ace",,,"WinRAR"
- hkcr,".arj",,,"WinRAR"
- hkcr,".bz",,,"WinRAR"
- hkcr,".bz2",,,"WinRAR"
- hkcr,".cab",,,"WinRAR"
- hkcr,".gz",,,"WinRAR"
- hkcr,".jar",,,"WinRAR"
- hkcr,".lha",,,"WinRAR"
- hkcr,".lzh",,,"WinRAR"
- hkcr,".r00",,,"WinRAR"
- hkcr,".r01",,,"WinRAR"
- hkcr,".r02",,,"WinRAR"
- hkcr,".r03",,,"WinRAR"
- hkcr,".r04",,,"WinRAR"
- hkcr,".r05",,,"WinRAR"
- hkcr,".r06",,,"WinRAR"
- hkcr,".r07",,,"WinRAR"
- hkcr,".r08",,,"WinRAR"
- hkcr,".r09",,,"WinRAR"
- hkcr,".r10",,,"WinRAR"
- hkcr,".r11",,,"WinRAR"
- hkcr,".r12",,,"WinRAR"
- hkcr,".r13",,,"WinRAR"
- hkcr,".r14",,,"WinRAR"
- hkcr,".r15",,,"WinRAR"
- hkcr,".r16",,,"WinRAR"
- hkcr,".r17",,,"WinRAR"
- hkcr,".r18",,,"WinRAR"
- hkcr,".r19",,,"WinRAR"
- hkcr,".r20",,,"WinRAR"
- hkcr,".r21",,,"WinRAR"
- hkcr,".r22",,,"WinRAR"
- hkcr,".r23",,,"WinRAR"
- hkcr,".r24",,,"WinRAR"
- hkcr,".r25",,,"WinRAR"
- hkcr,".r26",,,"WinRAR"
- hkcr,".r27",,,"WinRAR"
- hkcr,".r28",,,"WinRAR"
- hkcr,".r29",,,"WinRAR"
- hkcr,".rar",,,"WinRAR"
- hkcr,".rev",,,"WinRAR.REV"
- hkcr,".tar",,,"WinRAR"
- hkcr,".taz",,,"WinRAR"
- hkcr,".tbz",,,"WinRAR"
- hkcr,".tbz2",,,"WinRAR"
- hkcr,".tgz",,,"WinRAR"
- hkcr,".txz",,,"WinRAR"
- hkcr,".uu",,,"WinRAR"
- hkcr,".uue",,,"WinRAR"
- hkcr,".xxe",,,"WinRAR"
- hkcr,".xz",,,"WinRAR"
- hkcr,".z",,,"WinRAR"
- hkcr,".zip",,,"WinRAR.ZIP"
- hkcr,"CLSID\{B41DB860-64E4-11D2-9906-E49FADC173CA}",,,"WinRAR"
- hkcr,"CLSID\{B41DB860-64E4-11D2-9906-E49FADC173CA}\InProcServer32",,,"%01%\rarext.dll"
- hkcr,"CLSID\{B41DB860-64E4-11D2-9906-E49FADC173CA}\InProcServer32","ThreadingModel",,"Apartment"
- hkcr,"Drive\shellex\DragDropHandlers\WinRAR",,,"{B41DB860-64E4-11D2-9906-E49FADC173CA}"
- hkcr,"Drive\shellex\DragDropHandlers\WinRAR32",,,"{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
- hkcr,"exefile\shellex\PropertySheetHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"exefile\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"Folder\shellex\ContextMenuHandlers\WinRAR",,,"{B41DB860-64E4-11D2-9906-E49FADC173CA}"
- hkcr,"Folder\shellex\ContextMenuHandlers\WinRAR32",,,"{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
- hkcr,"Folder\shellex\DragDropHandlers\WinRAR",,,"{B41DB860-64E4-11D2-9906-E49FADC173CA}"
- hkcr,"Folder\shellex\DragDropHandlers\WinRAR32",,,"{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
- hkcr,"WinRAR",,,"RAR 压缩文件"
- hkcr,"WinRAR\DefaultIcon",,,"%01%\WinRAR.exe,0"
- hkcr,"WinRAR\shell\open\command",,,"""%01%\WinRAR.exe"" ""%%1"""
- hkcr,"WinRAR\shellex\ContextMenuHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"WinRAR\shellex\ContextMenuHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"WinRAR\shellex\DropHandler",,,"{B41DB860-64E4-11D2-9906-E49FADC173CA}"
- hkcr,"WinRAR\shellex\PropertySheetHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"WinRAR\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"WinRAR.REV",,,"RAR 恢复卷"
- hkcr,"WinRAR.REV\DefaultIcon",,,"%01%\WinRAR.exe,1"
- hkcr,"WinRAR.REV\shell\open\command",,,"""%01%\WinRAR.exe"" ""%%1"""
- hkcr,"WinRAR.ZIP",,,"ZIP 压缩文件"
- hkcr,"WinRAR.ZIP\DefaultIcon",,,"%01%\WinRAR.exe,0"
- hkcr,"WinRAR.ZIP\shell\open\command",,,"""%01%\WinRAR.exe"" ""%%1"""
- hkcr,"WinRAR.ZIP\shellex\ContextMenuHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"WinRAR.ZIP\shellex\ContextMenuHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"WinRAR.ZIP\shellex\DropHandler",,,"{B41DB860-64E4-11D2-9906-E49FADC173CA}"
- hkcr,"WinRAR.ZIP\shellex\PropertySheetHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"WinRAR.ZIP\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}",,,""
- hkcr,"Wow6432Node\CLSID\{B41DB860-8EE4-11D2-9906-E49FADC173CA}",,,"WinRAR"
- hkcr,"Wow6432Node\CLSID\{B41DB860-8EE4-11D2-9906-E49FADC173CA}\InProcServer32",,,"%01%\rarext32.dll"
- hkcr,"Wow6432Node\CLSID\{B41DB860-8EE4-11D2-9906-E49FADC173CA}\InProcServer32","ThreadingModel",,"Apartment"
- hklm,"SOFTWARE\RegisteredApplications","WinRAR",,"Software\WinRAR\Capabilities"
- hkcu,"Software\WinRAR\Setup","CascadedMenu",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.ace","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.ace","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.ace","Type",,""
- hkcu,"Software\WinRAR\Setup\.ace","Content",,""
- hkcu,"Software\WinRAR\Setup\.ace","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.arj","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.arj","Exist",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.arj","Type",,""
- hkcu,"Software\WinRAR\Setup\.arj","Content",,""
- hkcu,"Software\WinRAR\Setup\.arj","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.bz","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.bz","Type",,""
- hkcu,"Software\WinRAR\Setup\.bz","Content",,""
- hkcu,"Software\WinRAR\Setup\.bz","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.bz2","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.bz2","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.bz2","Type",,""
- hkcu,"Software\WinRAR\Setup\.bz2","Content",,""
- hkcu,"Software\WinRAR\Setup\.bz2","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.cab","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.cab","Exist",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.cab","Type",,"CABFolder"
- hkcu,"Software\WinRAR\Setup\.cab","Content",,""
- hkcu,"Software\WinRAR\Setup\.cab","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.gz","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.gz","Exist",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.gz","Type",,""
- hkcu,"Software\WinRAR\Setup\.gz","Content",,"application/x-gzip"
- hkcu,"Software\WinRAR\Setup\.gz","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.jar","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.jar","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.jar","Type",,""
- hkcu,"Software\WinRAR\Setup\.jar","Content",,""
- hkcu,"Software\WinRAR\Setup\.jar","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.lha","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.lha","Type",,""
- hkcu,"Software\WinRAR\Setup\.lha","Content",,""
- hkcu,"Software\WinRAR\Setup\.lha","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.lzh","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.lzh","Exist",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.lzh","Type",,""
- hkcu,"Software\WinRAR\Setup\.lzh","Content",,""
- hkcu,"Software\WinRAR\Setup\.lzh","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.rar","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.rar","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.rar","Type",,""
- hkcu,"Software\WinRAR\Setup\.rar","Content",,""
- hkcu,"Software\WinRAR\Setup\.tar","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.tar","Exist",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.tar","Type",,""
- hkcu,"Software\WinRAR\Setup\.tar","Content",,"application/x-tar"
- hkcu,"Software\WinRAR\Setup\.tar","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.taz","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.taz","Type",,""
- hkcu,"Software\WinRAR\Setup\.taz","Content",,""
- hkcu,"Software\WinRAR\Setup\.taz","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.tbz","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.tbz","Type",,""
- hkcu,"Software\WinRAR\Setup\.tbz","Content",,""
- hkcu,"Software\WinRAR\Setup\.tbz","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.tbz2","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.tbz2","Type",,""
- hkcu,"Software\WinRAR\Setup\.tbz2","Content",,""
- hkcu,"Software\WinRAR\Setup\.tbz2","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.tgz","Exist",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.tgz","Type",,""
- hkcu,"Software\WinRAR\Setup\.tgz","Content",,"application/x-compressed"
- hkcu,"Software\WinRAR\Setup\.tgz","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.txz","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.txz","Type",,""
- hkcu,"Software\WinRAR\Setup\.txz","Content",,""
- hkcu,"Software\WinRAR\Setup\.txz","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.uu","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.uu","Type",,""
- hkcu,"Software\WinRAR\Setup\.uu","Content",,""
- hkcu,"Software\WinRAR\Setup\.uu","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.uue","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.uue","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.uue","Type",,""
- hkcu,"Software\WinRAR\Setup\.uue","Content",,""
- hkcu,"Software\WinRAR\Setup\.uue","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.xxe","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.xxe","Type",,""
- hkcu,"Software\WinRAR\Setup\.xxe","Content",,""
- hkcu,"Software\WinRAR\Setup\.xxe","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.xz","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.xz","Exist",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\.xz","Type",,""
- hkcu,"Software\WinRAR\Setup\.xz","Content",,""
- hkcu,"Software\WinRAR\Setup\.xz","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.z","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.z","Exist",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.z","Type",,""
- hkcu,"Software\WinRAR\Setup\.z","Content",,"application/x-compress"
- hkcu,"Software\WinRAR\Setup\.z","ShellNew",,""
- hkcu,"Software\WinRAR\Setup\.zip","Set",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.zip","Exist",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\.zip","Type",,"CompressedFolder"
- hkcu,"Software\WinRAR\Setup\.zip","Content",,"application/x-zip-compressed"
- hkcu,"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.zip\UserChoice","Hash",,"BsFGZ0PFUo8="
- hkcu,"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.zip\UserChoice","ProgId",,"WinRAR.ZIP"
- hkcu,"Software\WinRAR\Setup\Links","Desktop",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\Links","StartMenu",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\Links","Programs",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","ExtrTo",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","ExtrHere",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","Extr",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","ExtrSep",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","OpenSFX",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","OpenArc",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","AddTo",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","AddArc",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","EmailArc",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","EmailOpt",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","Test",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","Convert",0x10001,00,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","SFXLocal",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","SFXNetwork",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","SFXOther",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","DragAdd",0x10001,01,00,00,00
- hkcu,"Software\WinRAR\Setup\MenuItems","DragExtr",0x10001,01,00,00,00
复制代码
|