无忧启动论坛
标题:
请问如何修改win2003的注册表文件
[打印本页]
作者:
hbby
时间:
2011-7-1 00:03
标题:
请问如何修改win2003的注册表文件
用以下方法可以把vboot的xp驱动加入到xp系统
copy vbootdsk.sys c:\windows\system32\drivers
reg load hklm\111 "c:\windows\system32\config\system"
reg add HKLM\111\ControlSet001\Control\CriticalDeviceDatabase\gen_scsiadapter
reg add HKLM\111\ControlSet001\Control\CriticalDeviceDatabase\gen_scsiadapter /v Service /t REG_SZ /d vbootdsk
reg add HKLM\111\ControlSet001\Control\CriticalDeviceDatabase\gen_scsiadapter /v ClassGUID /t REG_SZ /d {4D36E97B-E325-11CE-BFC1-08002BE10318}
reg add HKLM\111\ControlSet001\Control\CriticalDeviceDatabase\gen_scsitest /v Type /t REG_dword /d 1
reg add HKLM\111\ControlSet001\Services\vbootdsk
reg add HKLM\111\ControlSet001\Services\vbootdsk /v Type /t REG_dword /d 1
reg add HKLM\111\ControlSet001\Services\vbootdsk /v Start /t REG_dword /d 0
reg add HKLM\111\ControlSet001\Services\vbootdsk /v ErrorControl /t REG_dword /d 1
reg add HKLM\111\ControlSet001\Services\vbootdsk /v ImagePath /t REG_SZ /d "system32\drivers\vbootdsk.sys"
echo y | reg delete HKLM\111\MountedDevices
reg unload hklm\111
但是win2003的vboot内文件是vbootsmp.sys,inf配置是
;---------------------------------------------------------------------------
---
; vbootsmp.inf
; INF file to install the VMLite VBoot virtual disk adapter
; Copyright (C) VMLite 2010
;---------------------------------------------------------------------------
---
[Version]
Signature = "$Windows NT$"
Provider = "VMLite Inc."
Class = SCSIAdapter
ClassGUID = {4D36E97B-E325-11CE-BFC1-08002BE10318} ; scsi adapter
class guid
CatalogFile = vbootsmp.cat
DriverVer=05/15/2011,3.2.6.28941
[DestinationDirs]
DefaultDestDir = 12
[Manufacturer]
"VMLite" = Models, NTamd64 ; x86, x64 supported
[Models]
%ADAPTERNAME% = vbootsmp, root\vbootsmp
[Models.NTamd64]
%ADAPTERNAME% = vbootsmp, root\vbootsmp
[vbootsmp]
CopyFiles = @vbootsmp.sys
AddReg = vbootsmp.Registry
[vbootsmp.Registry]
HKR, , LocationInformationOverride,,Virtual
[vbootsmp.Services]
AddService = vbootsmp, 2, Service
[Service]
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_BOOT_START%
ErrorControl = %SERVICE_ERROR_IGNORE%
;LoadOrderGroup = SCSI Miniport
ServiceBinary = %12%\vbootsmp.sys
AddReg = Registry
[Registry]
HKR, "Parameters\Device", "DriverParameter", 0x00000000, "c:\vbootsmp.vhd" ;
virtual disk filename
[SourceDisksFiles]
vbootsmp.sys = 1
[SourceDisksNames.x86]
1 = %DISKNAME%,,, ; 32-bit
[SourceDisksNames.amd64]
1 = %DISKNAME%,,, ; amd64
[Strings]
;
; Localizable Strings
;
DISKNAME = "Install Disk"
ADAPTERNAME = "VMLite VBoot Virtual Disk SCSI Storport Adapter"
;
; Non-Localizable Strings
;
REG_DWORD = 0x00010001
SERVICE_KERNEL_DRIVER = 1
SERVICE_BOOT_START = 0
SERVICE_DEMAND_START = 3
SERVICE_ERROR_IGNORE = 0
请问如何修改注册表?谢谢!
作者:
2010ttt
时间:
2011-7-16 16:32
为什么要改注册表?
直接右击INF,点安装就行了
作者:
hbby
时间:
2011-7-16 17:59
标题:
回复 #2 2010ttt 的帖子
我是想通过PE中修改VHD的注册表
欢迎光临 无忧启动论坛 (http://wuyou.net/)
Powered by Discuz! X3.3