|
用以下方法可以把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
请问如何修改注册表?谢谢! |
|