摘要 |
An executable file can be constructed that contains different driver installer code for use in different environments. A first executable file contains first program code that performs driver installation operations in a first environment, and that also checks to determine which environment the first program code is running in. If the first program code is running in the first environment, then the driver installation operations proceed using the first program code. If the first program code is running in a second environment, then second program code, which performs the driver installation operations in a second environment, is extracted from a resource in the first executable file. The second program code is copied into a second executable file. The second executable file is then invoked to perform the driver installation operations in the second environment.
|