chipKIT32 / chipKIT-core

Downloadable chipKIT core for use with Arduino 1.6 - 1.8+ IDE, PlatformIO, and UECIDE
http://chipkit.net/
Apache License 2.0
59 stars 53 forks source link

chipKIT Windows Stk500 Driver #281

Open JacobChrist opened 7 years ago

JacobChrist commented 7 years ago

The chipKIT Windows installer is built using .NET 3.5. Windows 8+ computers do not have this installed by default (but do have 1.0 ,20 and 4.0). It would be nice to rebuild using either an older or newer version of .NET.

majenkotech commented 7 years ago

Alternatively re-write the whole thing as a Nullsoft installer script.

You can create a single installer that is compatible with Windows 95, Windows 98, Windows ME, Windows NT, Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows Sever 2008, Windows 7, Windows Server 2008R2, Windows 8, Windows Server 2012, Windows 8.1 and Windows Server 2012R2

(I guess the web page hasn't been updated since 10 was released)

JacobChrist commented 7 years ago

Schmalz created the last exe, and its signed. If its easy for him to update then that would be nice. If not this maybe an alternative. Also, to get around the issue we just install from the inf, however the chipKIT wiki says to use the installer which doesn't work on Windows 8 without installing .NET 3.5.

JacobChrist commented 7 years ago

I'm in no need of this, just thought its an issue that might affect others.

majenkotech commented 7 years ago

Since I have some minor experience with NSIS through using it for UECIDE maybe I could take a look at revamping the installer... From what I read though installing drivers is different from Vista onwards and NSIS doesn't directly support it, so calling an external (standard windows) binary to do the job is needed. Not sure how to make that decision in NSIS though...

EmbeddedMan commented 7 years ago

Jacob,

Unfortunately, we get that installer straight from Microchip. I don't know much about how to recompile it with different dependencies. Maybe if somebody has more Windows .Net programming experience this would be a trivial thing to change.

It would be great if we could do it as a Nullsoft script - that's how we do the EggBot installer, and it works great. (Again, I didn't write it, but the guy who did isn't a Windows programmer either.)

*Brian

On Mon, Oct 24, 2016 at 2:26 PM, Majenko Technologies < notifications@github.com> wrote:

Alternatively re-write the whole thing as a Nullsoft installer script.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chipKIT32/chipKIT-core/issues/281#issuecomment-255839998, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbeCBGkwrbS6Kx5Gl1fUhV-fxtu59oeks5q3QZJgaJpZM4KfLi4 .

EmbeddedMan commented 7 years ago

Yeah, Microchip has a nice word document that explains how to take the .inf file, modify it for your own uses, then wrap it up with their installer exe and sign the whole thing with your own cert so that it won't trigger warnings on Windows 8/10. So that's all I did - I bought the cert (which I just renewed) and followed their instruction. I didn't have anything to do with how their installer is compiled though.

On Mon, Oct 24, 2016 at 5:26 PM, Jacob Christ notifications@github.com wrote:

I'm in no need of this, just thought its an issue that might affect others.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chipKIT32/chipKIT-core/issues/281#issuecomment-255884094, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbeCB9i2p8y_Z8l40OI5yTj8aPWd1AYks5q3TCjgaJpZM4KfLi4 .

JacobChrist commented 7 years ago

If the code is available I can rebuild for 4.0.

Jacob

On Oct 25, 2016 11:14 AM, "Brian Schmalz" notifications@github.com wrote:

Yeah, Microchip has a nice word document that explains how to take the .inf file, modify it for your own uses, then wrap it up with their installer exe and sign the whole thing with your own cert so that it won't trigger warnings on Windows 8/10. So that's all I did - I bought the cert (which I just renewed) and followed their instruction. I didn't have anything to do with how their installer is compiled though.

On Mon, Oct 24, 2016 at 5:26 PM, Jacob Christ notifications@github.com wrote:

I'm in no need of this, just thought its an issue that might affect others.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chipKIT32/chipKIT-core/issues/281# issuecomment-255884094, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbeCB9i2p8y_ Z8l40OI5yTj8aPWd1AYks5q3TCjgaJpZM4KfLi4 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chipKIT32/chipKIT-core/issues/281#issuecomment-256116628, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMGa2BZCIamFZmv9v_Q0nVfFJdEBhRlks5q3kcMgaJpZM4KfLi4 .

majenkotech commented 7 years ago

So Windows has a program called "dpinst.exe" that installs drivers for you. Someone else has used that, along with nsis, to make an installer for their driver (MIT licensed script :) ).

I have taken that script and associated dpinst files and made a pair of installers for the chipKIT drivers (a 32-bit and a 64-bit installer).

I suggest someone with admin privs makes a new "chipKIT Drivers" repo on here that we can work in. Then I will post this test version there for us to play with.

EmbeddedMan commented 7 years ago

You mean something like this? https://github.com/chipKIT32/chipKIT-drivers

*Brian

On Fri, Oct 28, 2016 at 3:16 PM, Majenko Technologies < notifications@github.com> wrote:

So Windows has a program called "dpinst.exe" that installs drivers for you. Someone else has used that, along with nsis, to make an installer for their driver (MIT licensed script :) ).

I have taken that script and associated dpinst files and made a pair of installers for the chipKIT drivers (a 32-bit and a 64-bit installer).

I suggest someone with admin privs makes a new "chipKIT Drivers" repo on here that we can work in. Then I will post this test version there for us to play with.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chipKIT32/chipKIT-core/issues/281#issuecomment-257017680, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbeCMOALF3lgksEV3d10oefBUw9fkP6ks5q4lgGgaJpZM4KfLi4 .

majenkotech commented 7 years ago

Yes, something exactly like that.

majenkotech commented 7 years ago

Ok PR on the other repo made. One thing that may now want changing with the script is to make it get the driver files from the existing structure rather than having its own internal copy.