Author Topic: Loading WinUSB for Microchip Starter Kit II  (Read 2759 times)

jorgeuriarte

  • Newbie
  • *
  • Posts: 10
    • View Profile
Loading WinUSB for Microchip Starter Kit II
« on: November 19, 2010, 01:51:50 am »
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

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Loading WinUSB for Microchip Starter Kit II
« Reply #1 on: November 19, 2010, 02:51:11 pm »
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

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Loading WinUSB for Microchip Starter Kit II
« Reply #2 on: November 21, 2010, 03:02:22 am »
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

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Loading WinUSB for Microchip Starter Kit II
« Reply #3 on: November 21, 2010, 03:40:38 am »
After restarting the PC the Install Driver feature is finally loading WinUSB...

Thank you!
Jorge

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Loading WinUSB for Microchip Starter Kit II
« Reply #4 on: November 21, 2010, 01:19:08 pm »
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

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Loading WinUSB for Microchip Starter Kit II
« Reply #5 on: November 21, 2010, 02:40:19 pm »
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

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Loading WinUSB for Microchip Starter Kit II
« Reply #6 on: November 21, 2010, 03:19:38 pm »
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.