• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

Loading WinUSB for Microchip Starter Kit II

Started by jorgeuriarte, November 18, 2010, 11:51:50 pm

Previous topic - Next topic

jorgeuriarte

I am using your sample usbosrkitdemo to load WinUSB for Microchip USB Starter Kit II board. on nrUSB1 for Idproduct:0 and Idvendor:0. For nrUSBDriver1 entered IDProduct: 1240, IdVendor: 82.
Run the file and selected "Microchip WinUSB Device". So far, all looks good. Pressed [Install Driver], windows shows and select Yes to install Driver. Then this error pops up:
"Project usbosrkitdemo.exe raised exeption class Exception with message 'Driver Installation failed. Access is denied'. Step and run to continue."

Please anybody that went through similar; How do you resolve it?
Thank you
Jorge

Roman Novgorodov

Hello

Thank you for your information.

Please check that application is run as administrator.

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

jorgeuriarte

I enter at  C: \Windows\System32> net user administrator /active:yes.  reply: The command completed succsessfully.
Yes I am the administrtor of windows, but I am still getting 'Driver installation failed.Access is denied.'

I am using Delphi7 on Windows 7 (64).

Please advice
Thank you
Jorge

jorgeuriarte

After restarting the PC the Install Driver feature is finally loading WinUSB...

Thank you!
Jorge

Roman Novgorodov

Hello

Thank you for your information.

If you will get error again, please download following debug demo:
http://deepsoftware.com/nrcomm/usbosrkitdemo_debug.zip

After start application, check "Show all devices" and select yours.
Click "Install driver"

If error appears please find LOG file in the same folder where EXE is placed.
Send this LOG file to us.

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

jorgeuriarte

So when I distribute my Delphi7 software, what worries me is that my customers will have run as administrators? What can I do to avoid this ugly installation step?

Please advice

Thank you
Jorge

Roman Novgorodov

Hello

Driver installation requires Admin rights always.
But driver installation is one-time process.
Your application can work with usb device without admin rights.

Possible you will separate drive install into standalone application that can be run by admin or something else.

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.