Can you install a hardware driver, built using WinUSB, along with a C# application deployed using Click-once?
Can you install a hardware driver, built using WinUSB, along with a C# application
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ClickOnce cannot install a driver.
ClickOnce simply copies files from a server location to a client’s profile and keeps them in sync. The main reason people get confused is because Visual Studio does extra stuff when you use it to deploy. It creates both a web page and a bootstrapper for prerequisites. The bootstrapper bundles all your prerequisites into a single package but is totally separate from ClickOnce.
You could include your driver in the bootstrapper, but users are ultimately responsible for deciding whether or not to run the bootstrapper before your ClickOnce app. Another option would be to use ClickOnce to deploy the driver file and then write custom code in your application to install it. This assumes your application is able to start without the driver installed and that the user has enough privilege to install the driver.
If you come up with a working solution, please follow up.