Patent ID: 8132187

Claim:
A method of installing a driver that is stored in a package, the method comprising: receiving a first file that comprises: (a) first code that implements a driver installer that is usable in a first environment, and (b) a resource that comprises second code that implements said driver installer, said second code being usable in a second environment; invoking execution of said first file; determining that said first code is executing in said second environment; based on said determining, copying said second code into a second file and invoking execution of said second file; doing at least one of: (a) installing the driver, and (b) communicating or displaying at least one of (b1) an indication of a device to which the driver relates, or (b2) information indicating a lack of match between the driver and said device; obtaining, from the package, a first identifier associated with the driver; comparing said first identifier with a second identifier that distinguishes the device; determining that said second identifier is not identical to said first identifier; based on having determined that said second identifier is not identical with said first identifier, subsequently comparing said first identifier with a third identifier that does not distinguish said device but that identifies a hardware feature of said device; and based on the subsequent comparing of said first identifier with said third identifier, determining whether the device matches the driver.