|
7#
楼主 |
发表于 2012-11-21 17:45:32
|
只看该作者
回复 #4 2010khmsoft 的帖子
谢谢大神指点,是这样:将以下文本保存为:WCS.INF,
建立一批处理文件:
wcscmd内容:
@echo off
rundll32 setupapi.dll,InstallHinfSection DefaultInstall 128 .\wcs.inf
====================================
或者这样:
或者在WIN7PE系统下右键安装即可,或者拷贝到INF目录中让系统安装
WCS.INF内容:
[Version]
Signature="$CHICAGO$"
Provider=khmsoft1@163.com, 2012
[DefaultInstall]
; DelReg=wcs_DelReg
AddReg=wcs_AddReg
[wcs_DelReg]
[wcs_AddReg]
hkcr,"inifile\DefaultIcon",,,"imageres.dll,-69"
hkcr,"inifile\shell\用 pecmd 载入","icon",,"pecmd.exe,1"
hkcr,"inifile\shell\用 pecmd 载入\command",,,"pecmd load ""%%1"""
hkcr,".wcs",,,"wcsfile"
hkcr,"wcsfile",,,"WCS 脚本文件"
hkcr,"wcsfile\DefaultIcon",,,"X:\WINDOWS\SYSTEM32\PECMD.EXE,0"
hkcr,"wcsfile\shell\open\command",,,"X:\WINDOWS\SYSTEM32\PECMD.EXE LOAD ""%%L"""
[Strings]
=========================
是这2种方法吧??? |
|