假設為 PCI\VEN_8086&DEV_1C02&CC_0106 , install.cmd & IMSM_PRE.inf 要和 IASTOR.SYS 放在一起, 直接执行install.cmd, 谁成功就说一下
install.cmd- rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 %~dp0imsm_pre.inf
複製代碼 IMSM_PRE.inf- [Version]
- Signature="$Chicago$"
- [DefaultInstall]
- AddReg=iaStorCritical.Reg, iaStorSvc.Reg
- CopyFiles=iaStor_Driver_File
- [DefaultUninstall]
- DelReg=iaStorCritical.DelReg, iaStorSvc.DelReg
- [DestinationDirs]
- DefaultDestDir = 12 ; DIRID_DRIVERS
- [iaStor_Driver_File]
- iaStor.sys,,,0x00000010
- [iaStorCritical.Reg]
- HKLM,System\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&DEV_1C02&CC_0106,Service,%REG_SZ%,%IASTOR_SVC%
- HKLM,System\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&DEV_1C02&CC_0106,ClassGUID,%REG_SZ%,"{4D36E96A-E325-11CE-BFC1-08002BE10318}"
- [iaStorCritical.DelReg]
- HKLM,System\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_8086&DEV_1C02&CC_0106
- ;============================================================================================================
- ; Storage Service - Parameter Set (ICH8M)
- ;============================================================================================================
- [iaStorSvc.Reg]
- HKLM,System\CurrentControlSet\Services\iastor,ErrorControl,%REG_DWORD%,1
- HKLM,System\CurrentControlSet\Services\iastor,Group,%REG_SZ%,"SCSI miniport"
- HKLM,System\CurrentControlSet\Services\iastor,Start,%REG_DWORD%,0
- HKLM,System\CurrentControlSet\Services\iastor,Type,%REG_DWORD%,1
- HKLM,System\CurrentControlSet\Services\iastor,DisplayName,%REG_SZ%,%*PNP0600.DeviceDesc%
- HKLM,System\CurrentControlSet\Services\iastor,ImagePath,%REG_SZ%,"System32\Drivers\iaStor.sys"
- HKLM,System\CurrentControlSet\Services\iastor,Tag,%REG_DWORD%,25
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port0,%AN%,%REG_DWORD%,0
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port0,%LPM%,%REG_DWORD%,1
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port0,%LPMSTATE%,%REG_DWORD%,0
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port0,%LPMDSTATE%,%REG_DWORD%,1
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port0,%GTF%,%REG_DWORD%,1
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port0,%DIPM%,%REG_DWORD%,1
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port2,%AN%,%REG_DWORD%,0
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port2,%LPM%,%REG_DWORD%,1
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port2,%LPMSTATE%,%REG_DWORD%,0
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port2,%LPMDSTATE%,%REG_DWORD%,1
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port2,%GTF%,%REG_DWORD%,1
- HKLM,System\CurrentControlSet\Services\iastor\Parameters\Port2,%DIPM%,%REG_DWORD%,1
- [iaStorSvc.DelReg]
- HKLM,System\CurrentControlSet\Services\iastor
- [SourceDisksNames]
- 1=%ProdName%,,
- [SourceDisksFiles]
- imsm_pre.inf=1
- iaStor.sys=1
- [Strings]
- ProdName="IMSM Critical Database Preparation for Windows 2000/XP"
- ProdVersion="1.0"
- IASTOR_SVC="iaStor"
- *PNP0600.DeviceDesc="Intel AHCI Controller"
- INTEL="Intel"
- AN="AN"
- LPM="LPM"
- LPMSTATE="LPMSTATE"
- LPMDSTATE="LPMDSTATE"
- GTF="GTF"
- DIPM="DIPM"
- ;*******************************************
- ;Handy macro substitutions (non-localizable)
- SPSVCINST_ASSOCSERVICE = 0x00000002
- SERVICE_KERNEL_DRIVER = 1
- SERVICE_BOOT_START = 0
- SERVICE_ERROR_NORMAL = 1
- REG_SZ = 0x00000000
- REG_EXPAND_SZ = 0x00020000
- REG_DWORD = 0x00010001
複製代碼 |