×
Menu
Index

Examples

 
Installing a Windows driver with COPY INF (any version)
 
The COPY INF command can be used to install a Windows driver to an inactive (not running) Windows installation by mounting the partition from TBOSDT, opening the system hive file, and then running COPY INF. The INF file and its associated driver files (typically a SYS file and a CAT file) must be in the same directory. Note that while the COPY INF command will install the drivers and allow the system to boot, it will be necessary to use the additional ADD INF command to automate completion of the driver installation. See example 2 in the TBOST Application Examples section for additional information on installing a Windows driver.
 
MOUNT 0: 0 1
mount partition with ID =1 on drive HD0
OPEN REG 0 0:\windows\system32\config\system
open the system registry hive
COPY INF vmscsi.inf 0:\windows c:\windows 0 /i /b
Install the driver, /b indicates driver isrequired for boot
CLOSE REG 0
close the system registry hive
UMOUNT 0:
unmount the partition
 
Using ADD INF to complete a Windows driver installation (Windows version only)
 
The ADD INF command will add an INF and associated files to the Windows operating system. You must supply the full path to the INF file. A practical use of this command is to aid in the automated completion of a new driver installation after a COPY INF command has been executed for the same driver. This example assumes the full set of driver files is located in c:\drivers\intel
 
ADD INF c:\drivers\intel\iaahci.inf c:\drivers\intel
add the driver files (if necessary)