PDA

View Full Version : Windows users: where do you put Arduino?



PaulStoffregen
12-05-2013, 11:17 PM
I'm working on making the Teensyduino installer a little smarter about looking for Arduino and automatically initializing the file choice page if it's found.

So my question for everyone using Windows, is where do you put Arduino on your hard driver.

Arduino's installer defaults to C:\Program Files (x86)\Arduino, so that's the first place I'm checking. Where else should the installer look, if it's not found there?

el_supremo
12-05-2013, 11:38 PM
I put the Arduino installation in, for example, C:\arduino-1.0.5

Pete

Nantonos
12-06-2013, 01:02 AM
I'm aware that Windows seems to encourage people to put content in C:\Users\Username\My Little Pony (ok not the last bit, but My Pictures, My Documents and noddy names like that). I don't, because that seems like a dumb place to put stuff if you have more than a hundred files and also puts your data at risk if Windows gets hosed. Also, since the advent of SSD its common for drive C: to be fairly small and fast, while data goes on some other (spinning rust) drive. Mine is in D:/Arduino/

Also, putting programs in C:\Program Files (x86)\Arduino (or C:\Program Files\Arduino if 64-bit) is fine but the data that goes with it, in particular libraries and sketches, should not go there due to the need for Admin-level access to write to those directories (unless changed), Windows also has a defence mechanism that catches what it thinks are changes to executables (Program Activation Protection? something like that) which can also give problems. There is some wierd mechanism in Win7 and above where writing there creates a virrtual filesystem in some place I can never find, so the user data files appear to be there but are actually not there when you navigate to the directory.

All problems that I avoid with D:\Arduino\ which then has sketches, arduino-1.0.5 and so on directories all in the one place.
I'm aware this may not be typical practice however.

potatotron
12-06-2013, 01:06 AM
My XP VM has it in C:\Program Files\Arduino, I would at least check "Program Files" in addition to "Program Files (x86)" for older installs.

You might also look at the Registry, it looks like "HKEY_CLASSES_ROOT\Arduino file" has paths to the arduino.exe program in DefaultIcon, shell\edit\command, and shell\open\command. This key is present on both my XP VM and my Win8 laptop.

stevech
12-06-2013, 02:51 AM
I put the Arduino installation in, for example, C:\arduino-1.0.5

Pete

I do the same

Pointy
12-06-2013, 06:59 AM
Just check the following reg keys...

HKLM/Software/Arduino/Install_Dir
HKLM/Software/WOw64Node/Arduino/Install_Dir

Regards,

Les

PaulStoffregen
12-06-2013, 09:08 AM
I've added "C:\arduino-1.0.5" to the installer's list of places to look.

Regarding registry keys, I tested on a clean Windows 7 install. I downloaded the zip file from arduino.cc, extracted it and ran the application. I did not find "HKLM/Software/Arduino/Install_Dir" in the registry afterward. I believe that key is being added by the installer but isn't necessarily created by only extracting the zip file.

I did find HKEY_CLASSES_ROOT/Arduino.document/shell/open/command. Does anyone knowledgeable about Windows Registry stuff know what this one means?

el_supremo
12-06-2013, 01:20 PM
FYI:

HKLM/Software/Arduino/
does not exist in my Win7 Pro x64.
Nor does this one HKLM/Software/WOw64Node/Arduino/Install_Dir
but it is in
HKLM/Software/WOw6432Node/Arduino/Install_Dir
and points to C:\Arduino-1.0.5

Pete

Pointy
12-06-2013, 04:40 PM
Regarding registry keys, I tested on a clean Windows 7 install. I downloaded the zip file from arduino.cc, extracted it and ran the application. I did not find "HKLM/Software/Arduino/Install_Dir" in the registry afterward. I believe that key is being added by the installer but isn't necessarily created by only extracting the zip file.?

DOH! Bang goes that idea then


I did find HKEY_CLASSES_ROOT/Arduino.document/shell/open/command. Does anyone knowledgeable about Windows Registry stuff know what this one means?

That's probably for the file association, for when the user double clicks on .ino file. I don't have that key but have 'KEY_CLASSES_ROOT\Arduino file\shell\open\command'. Again that may only be added by the installer though.

Regards,

Les

PaulStoffregen
12-06-2013, 04:56 PM
I've published a third 1.17 release candidate (http://forum.pjrc.com/threads/24616-Teensyduino-1-17-Release-Candidate-3-Available-%28Windows-Only%29) that tries to look for the several locations where Arduino might commonly be found.

Please, if you're using Windows, I would really appreciate your help with testing. Windows is always the hardest system for me to support. I really want to improve the install experience on Windows.

farleysynth
12-06-2013, 07:17 PM
Installed it on a Lenovo U310 w/Windows 8.1. Never have installed Arduino or Teensyduino on this computer. First, I installed Arduino in C:\Arduino. Then I installed Teensyduino 1.17R3. The select Arduino Folder dialog drop-down was set to C:/Users/myname/Documents/. But I selected C:\Arduino and the installation was successful, as was building the blink example.

Interesting, the Arduino install created a C:/Users/myname/Documents/Arduino folder with a Libraries folder containing readme.txt ("For information on installing libraries, see: http://arduino.cc/en/Guide/Libraries")...and that's all.

I've been in hand-to-hand combat with this computer and W8.1 for days trying to find my way around and do a Ubuntu dual boot without hosing the show.

Good luck. Great stuff you do Paul. Thanks !

PaulStoffregen
12-06-2013, 11:14 PM
Thanks for testing on Windows 8.1. :-)

tetsuo
12-06-2013, 11:26 PM
I've been in hand-to-hand combat with this computer and W8.1 for days trying to find my way around and do a Ubuntu dual boot without hosing the show.



OT (sorry Paul!) The wubi installer is, IMO, still the easiest/safest way to set up ubuntu on an already-running windows system. Not sure if it works w/ W8.x, but it's worth checking out if you haven't done so.


Crap.. should have googled before making a reccomendation.. especially since I was going off-topic :(
http://askubuntu.com/questions/168608/how-to-boot-wubi-installed-ubuntu-within-windows-8

windows 8.x is a no-go for wubi unless you're on a MBR-based boot disk.

Teensy++2.0_user
12-15-2013, 01:15 AM
Hello all,
actually I am really happy to have found this topic as it covers the questions I have trying to use Teensduino.
Wherever i put the Arduino software, Teensduino won't set the 'Next' button active, so that i cant install it.

What did I do?
- First I placed Arduino in C:\Documents and Settings\Horst\My Documents\ and left the name untouched. It reads 'arduino-1.0.5'.
But the button stayed inactive.
- After some trying i just copied the whole folder into C:\.
Same here, installation impossible due to the inactive button

I already intalled Teensduino on both, Windows and Ububtu, several times, i had this problem some other times already, trying to help friends to get their stuff running.

Software involved:
Windows XP
Arduino-1.0.5
Teensduino 1.17

Thank you

PaulStoffregen
12-15-2013, 02:42 AM
Please download a fresh copy of Arduino 1.0.5. Delete the old copy before you extract the zip file. If your copy is modified or corrupted somehow, simply extracting the zip file "on top of" the bad copy is not necessarily enough to fix it. Completely delete that copy, or just extract the zip file to a new, empty location, and then point the installer at that fresh 1.0.5.

If the installer still won't recognize that, please reply here and I'll put XP onto my Windows test partition (currently has Win 7) and give it a try here.

Teensy++2.0_user
12-15-2013, 03:34 PM
Hello Paul,
thank you for your reply.

Meanwhile I installed both, Arduino 1.0.5 and Teensduino 1.7 on a WinXP inside of a VM-Ware without any problems as described in this topic.
Teensyduino recognized the Arduino install location without any issues by its first attempt and got installed properly.
All worked good so far.

Now I am back on my "regular" XP and did as you just mentioned above.
I removed my Arduino 1.0.5 folder from it location on C:\ completely after I saved my libraries and sketchbook.
Then I downloaded Arduino 1.0.5 right away from arduino.cc, watched the proceed bar while installation, and did the same with Teensyduino.
Installation now was easy and and without any complaints.

After starting Arduino the first time, the result is, that there are no more Arduino boards available from the tools menu.

See it yourself.
1209

PaulStoffregen
12-15-2013, 05:22 PM
I just went through this process on a previously unused Windows XP machine. Here is result:

1216

One part that's noticeably different from your screenshot is the official Arduino boards. Your screenshot doesn't have any Arduino boards at all, only the Teensy ones.

My best guess is you've got a boards.txt somewhere in your sketchbook folder. Perhaps the Arduino IDE is using the boards.txt from that location, and ignoring the one within Arduino (the one the Teensyduino installer writes)?

Of course, the one other obvious thing to check is that you're using version 1.17, not 1.17-rc1, 1.17-rc2, or 1.17-rc3.

1214

Just for completeness of screenshots (since I re-imaged my Windows test partition with XP), the installer auto-selected C:\arduino-1.0.5.

1215

Teensy++2.0_user
12-15-2013, 09:23 PM
Your screenshot doesn't have any Arduino boards at all, only the Teensy ones.

My best guess is you've got a boards.txt somewhere in your sketchbook folder.


Yes, you are right, no Arduino boards visible. Thats why i posted this issue. :)

I did a search in my Arduino folder and this is the result:
1218

From the top, the first one holds all the Arduino boards, the second one refers to the Teensy boards.

I am sure to have installed Arduino 1.0.5 and Teensy 1.17.

What can I do now?


Until today I have installed Teensyduino for more than 20 times on WinXP, Win7, Ubuntu and Ubuntu studio, but was able to succeed in one go just 2 or 3 times only.
As someone mentioned before it would be a nice thing-to-have if Teensy could automatically installed with the Arduino software.
Any chance for that in the future?

PaulStoffregen
12-15-2013, 09:40 PM
I'm trying to understand where you're at right now?

Are you saying you've tried installing 20 times on 4 different operating systems, and all 20 have resulted in a wrong result? Or 17 or 18 went wrong?

I'm trying to understand why this isn't working for you, but there's just not enough information available here. Obviously something is very wrong with your setup if you are seeing a Tools > Boards menu without ANY official Arduino boards. I don't even know how that's possible, unless you edit or delete the boards.txt file.

Teensy++2.0_user
12-15-2013, 10:57 PM
Hello Paul,
yes, what i say is that in most cases i experienced diffculties installing Teensyduino.
I dont want to say anything bad or complain or such. I just want to express the issues I have.

Ok, again.
WinXP SP3, Arduino 1.0.5 and Teensyduino are involved.
Windows is a quite "used" or "older" installation.
Today I downloaded Arduino 1.0.5 and Teensyduino to ensure to get the recommended versions and did everything as it has to be done.
But it doesnt worked because Teensyduino didnt see the Arduino 1.0.5 software and therefore the 'Next' button was greyed out.

After that I followed your latest recommendation to just delete everything and did it again.
The result is shown in the picture of my previeous post.

I am familiar with Windows since 1997 and think I can say "to know a bit", but I cant help myself in this case.

Pointy
01-25-2014, 08:45 AM
I just downloaded 1.18 RC1 and personally I don't like the way I am forced to install in the Arduino folder on Windows. While automatically finding the correct folder is good and makes installation easier, forcing the install location is not always a good idea.

I have added custom Joysticks for both the Teensy 3 and the Teensy++ 2.0, some of those additions would be overwritten by a new installation. I just wanted to install somewhere else then manually merge stuff. (This actually is another problem because with your installer, the file dates are the installation dates for both date created and date modified. Is there a list of what actual files have changed in each release?)

In the end I just copied the Arduino folder somewhere else and deleted the teensy folders, so not a major biggy.

Just my thoughts anyway.

Regards,

Les

humanoftheforest
10-04-2014, 10:01 PM
Hello friends,
I'm trying to get my Teensy 3.1 on my new 64-bit Windows 8.1 PC, but have encountered the same problem with Teensyduino install not recognizing the Arduino install location. After finding this thread, I definitely tried to install using fresh builds (arduino-1.0.6 and teensduino 1.19) to no avail as the 'next' button is still grayed out when I navigated to C:/ProgramFiles (x86)/Arduino. I did not get any error messages about failing to install arduino driver because of Missing Digital Signature. Naturally, Arduino Tools-->Board menu doesn't show any Teensy items. I have tried these steps multiple times.

Deep thanks in advance.
Vin

PaulStoffregen
10-04-2014, 10:24 PM
Try the latest 1.20-rc5

http://forum.pjrc.com/threads/26727-Teensyduino-1-20-Release-Candidate-5-Available

One of the many improvements is a new help button within the installer, which can tell you why it's not enabling the Next button.

humanoftheforest
10-06-2014, 10:50 PM
Thanks! Teensyduino 1.20 recognized the folder first time. No opportunity to use the help. :)
I appreciate the help!
Vin

Teensy++2.0_user
10-14-2014, 12:14 AM
Thank you, Paul

With this latest version, Teensyduino 1.20, I was able to get all my stuff running on my Ubuntu running with its first attempt.
And this also with "No opportunity to use the help". :)
I am so happy now.

Also, for the first time the "PlaySythMusic" sketch compiled without error messeges.
I love it.

Thank you.