I got an assignment which I don't even know how to start, I have a path to a driver & its name (Argv) and I need to create a code that will install this driver automatically.

If anyone even has an idea how to make this code generic I would be thankful!

*I dont know what driver I need to install it will be according to the path & name that will be recived.

Recommended Answers

Drivers are installed under the Windows OS using INF files. Thus, one possible option would be to develop a console utility that would modify the INF file such as change the appropriate directories etc.prior to implementing the INF file. After you modified your INF file, you would execute Rundll32 in …

Jump to Post

All 3 Replies

Drivers are installed under the Windows OS using INF files. Thus, one possible option would be to develop a console utility that would modify the INF file such as change the appropriate directories etc.prior to implementing the INF file. After you modified your INF file, you would execute Rundll32 in CreateProcess function call to implement your INF file.

.

Thanks, but isn't there an easier way to do this using the Reg commands in WINAPI?

Thanks, but isn't there an easier way to do this using the Reg commands in WINAPI?

Take a look at this link for driver install via the registry

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.