MefhigosetH / pinguino-nsi-installer

NSI installer for the Pinguino Project on Windows platforms.
http://www.pinguino.cc
The Unlicense
12 stars 6 forks source link

Behavior while install device drivers #31

Open MefhigosetH opened 10 years ago

MefhigosetH commented 10 years ago

@rblanchot, @YeisonEng, @WagnerDeQueiroz, @gtcbreizh This question is about the pinguino-installer behavior while installing the device drivers on the system. I'm thinking basically in the logic. After all the Python deps and PinguinoIDE files are in the right place, the installer maybe can ask to the user:

Now execute the PinguinoIDE, compile and upload your code. It's ok ? I don't found another way of configure correclty the device driver on the system for the user automatically. What do you think ?

rblanchot commented 10 years ago

Hi guys, No idea how it works under Windows ... Must the board be present to install a driver ? Is it not possible to copy the driver at the right place to avoid any Wizard ? I will read a bit more about Windows driver.

BTW : I installed the IDE on Windows XP, it took a very long time to download. FYI, the linux installer is only 2.5 KB (OK it is also very basic, ;-) ) and downloads only the files needed (so only the SDCC compiler for ex. if the user only want it) and only if the file is new. So the first installation can be long but the updates are very fast.

2014-06-27 7:30 GMT+02:00 Victor Villarreal notifications@github.com:

@rblanchot https://github.com/rblanchot, @YeisonEng https://github.com/YeisonEng, @WagnerDeQueiroz https://github.com/WagnerDeQueiroz, @gtcbreizh https://github.com/gtcbreizh This question is about the pinguino-installer behavior while installing the device drivers on the system. I'm thinking basically in the logic. After all the Python deps and PinguinoIDE files are in the right place, the installer maybe can ask to the user:

  • "Do you want install Pinguino Board device drivers now?"
  • If Yes, the installer pre-install de device drivers and say: "Now, connect your board and follow the Device Driver Wizzard. When donde, press "next".
  • The user need to fisically connect the board to some USB port.
  • Now, the system detect the new device and the device driver wizzard apears. Next, next, next, and the device driver it's installed on your system.
  • The user press "next" button.
  • The installer proceed to execute the LibUSB v1.2.6.0 installer.
  • The user press next, next, next, and last press "finish" button.
  • Now, the Device Filter Wizzard apears. Select the Pinguino device and press "Install".
  • Done!

Now execute the PinguinoIDE, compile and upload your code. It's ok ? I don't found another way of configure correclty the device driver on the system for the user automatically. What do you think ?

— Reply to this email directly or view it on GitHub https://github.com/MefhigosetH/PinguinoIDE-Win-Installer/issues/31.

WagnerDeQueiroz commented 10 years ago

Dear People, I love the installer how it made now, because make no asking to user.

We have newbies, very very very poor newbies here in Brazil, No ask, no doubt. Maybe we can make theses questions on custom install mode.

Maybe in future, we need recognize the python or libusb or another dependencies installed in anoter folders, because on Brazillian computers I installed the python on folder with longname, like:

"C:\Arquivos de Programas\Python\" instead "C:\Python\"

When we install any program on Windows, the ControlPanel has data where any program is installed, Theses informations resides on Windows Registry. but I don't remember where theses data are saved. I need more researches to do this on WindowsXP, Windows7 and Windows8

But now, the Beta makes the job. Its a great program for now.

2014-06-27 7:07 GMT-03:00 regis notifications@github.com:

Hi guys, No idea how it works under Windows ... Must the board be present to install a driver ? Is it not possible to copy the driver at the right place to avoid any Wizard ? I will read a bit more about Windows driver.

BTW : I installed the IDE on Windows XP, it took a very long time to download. FYI, the linux installer is only 2.5 KB (OK it is also very basic, ;-) ) and downloads only the files needed (so only the SDCC compiler for ex. if the user only want it) and only if the file is new. So the first installation can be long but the updates are very fast.

2014-06-27 7:30 GMT+02:00 Victor Villarreal notifications@github.com:

@rblanchot https://github.com/rblanchot, @YeisonEng https://github.com/YeisonEng, @WagnerDeQueiroz https://github.com/WagnerDeQueiroz, @gtcbreizh https://github.com/gtcbreizh This question is about the pinguino-installer behavior while installing the device drivers on the system. I'm thinking basically in the logic. After all the Python deps and PinguinoIDE files are in the right place, the installer maybe can ask to the user:

  • "Do you want install Pinguino Board device drivers now?"
  • If Yes, the installer pre-install de device drivers and say: "Now, connect your board and follow the Device Driver Wizzard. When donde, press "next".
  • The user need to fisically connect the board to some USB port.
  • Now, the system detect the new device and the device driver wizzard apears. Next, next, next, and the device driver it's installed on your system.
  • The user press "next" button.
  • The installer proceed to execute the LibUSB v1.2.6.0 installer.
  • The user press next, next, next, and last press "finish" button.
  • Now, the Device Filter Wizzard apears. Select the Pinguino device and press "Install".
  • Done!

Now execute the PinguinoIDE, compile and upload your code. It's ok ? I don't found another way of configure correclty the device driver on the system for the user automatically. What do you think ?

— Reply to this email directly or view it on GitHub https://github.com/MefhigosetH/PinguinoIDE-Win-Installer/issues/31.

— Reply to this email directly or view it on GitHub https://github.com/MefhigosetH/PinguinoIDE-Win-Installer/issues/31#issuecomment-47327725 .

Wagner de Queiroz Be free with Linux

MefhigosetH commented 10 years ago

@rblanchot Hi ! Thanks for your quick feedback. In response about your question, no. It's possible pre-install the device driver in the system without the precense of the device. When the user plug the device the first time, the system search at the driver catalog and install it. No need to input a search folder, etc. This pre-install has allready been implemented on the installer and this part works fine.

But, its necesary some user interaction to install the LibUSB. If the device driver it's installed in the right way, BUT the LibUSB not, then Pinguino-IDE would not capable to upload the compiled code to the PIC. After the device has been plug and device driver is installed, it's mandatory to configure a "filter" in the LibUSB before you can use the LibUSB to communicate to the PIC.

More info at http://sourceforge.net/p/libusb-win32/wiki/Home/

BTW: The previous version of the installer only has 1Mb of size and detect and download all the needed software from Internet. But at this point of the Pinguino project history, there aren't available compiler or libraries packages separated by arch (8 or 32-bits, 32 or 64-bits) so it took a long time to download it, depending your Internet connection speed. Now there are available these packages at SourceForge.

The actual version of the installer, only have the compilers and libraries for the Windows 32-bits version inside it. Maybe I can delete the PIC32 related stuff (and leave only PIC8-bits stuff build-in) and ask at install time to the user if you need download and install the PIC32 version of the compiler and libraries too. If not, only 8-bit stuff are installed on the system.


@WagnerDeQueiroz Thanks for your feedback. It's true. Actually, the only mechanism that has the installer to detect the presence of any software on the system is based on the existence of certain files or folder in a fixed path style. In a future, maybe we can search at the System Registry for the precense of certain software, instead of the actual logic.

We'll add this feature to the wishlist ;-)

MefhigosetH commented 10 years ago

@WagnerDeQueiroz Hi!

I have a new beta release, working on Micro$oft Windows XP. Please, could you translate three new string, when you have a time? After your pull request, the v1.1.0-beta2 will be released for testing.

This is the new behavior inside InstallDrivers() function:

If you want, lookup the libusbtest-win.exe at C:\pinguino-ide\drivers\LibUSB\ folder and test it.

libusb-install-filter1

If you see something like this image,then you can now upload your programs to pinguino trougth the IDE. I've tested it on XP SP2 Pro Spanish, PIC18F2550 and Bootloader v4.

Cheers.