• 0

C# / RunOnce run program before add new hardware wizard


Question

I'm working on a small app in C# that we're including in one of our products, but have a little issue that I'm hoping someone might be able to help with.

Manufacturing, in all their wisdom, decided to use two different types of USB hubs in our product, and we have no way of knowing if a customer has one or the other. We're issuing a software dvd to upgrade the computer system, and in it will be my app that detects what USB hub they have, and then launches an MSI file that installs proper drivers for USB-> serial adapters, and reassigns com ports to what they should be. The problem is, is that the New Hardware wizard is running before my app (currently have it set to run using the RunOnce section of the registry) and it pops up the screen asking for the drivers for the usb-serial convertors.

is there a different section that we can put a call to my program so that it runs before windows detects the unknown usb to serial convertors?

RunOnce is running it too late.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I can see a couple of issues with what you are doing.

Firstly, you are setting your DVD update application to be run via RunOnce. Why is this? Surely it should only be run when the user has placed the media into the drive?

Secondly, you could suppress the New Hardware Wizard via the registry, but this would affect all hardware.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.