You are here

Arduino Legacy Portable 1.8.19 Dev Test 4

29 posts / 0 new
Last post
Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
Arduino Legacy Portable 1.8.19 Dev Test 4

Application: Arduino
Category: Development
Description:

The Arduino IDE.

Features: Arduino is an open-source physical computing platform based on a simple I/O board and a development environment that implements the Processing/Wiring language. Arduino can be used to develop stand-alone interactive objects or can be connected to software on your computer (e.g. Flash, Processing and MaxMSP). The boards can be assembled by hand or purchased preassembled.

Download Arduino Legacy 1.8.19 Portable Development Test 4 [110MB download / 544MB installed]
(MD5: 944dd3c88fd38b242b01e769bcfc43bb)
(SHA256: 6bfbda658d7b79927a245fc56d088c9f74dd03cbbc24f95a3e17a5559d1cb0d9)
(SHA512: c946e37b93174d62de00237d5bb3908f39a12930caaa6b4bf73a46efae294bccd9a2259ad551513e5e1894a36ba9dce63fca2856f27893506b7e6a5865a69c98)
(BLAKE3: 216f6f845260317a1ebeda5ac7933c405e8dd9b6ef01f17e584e0248356634a1)

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
Updated Arduino to 1.8.16 DT 1

Update base app.

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
Updated Arduino to 1.8.19 DT 1

Update base app. Update link in libraries instructions. Lossless compression of image files (.gif, .jpg, .png, etc)

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
What about version 2?

What about version 2?

I'd like to see the currently latest Arduino IDE 2.1.1 in portableapps format.

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
Funny you should mention it...

it's what i've been working on for the past few days. Smile

https://portableapps.com/node/68844

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Storage Efficient purpose

I'd like to use the Java in CommonFiles folder instead.
Symbolic link with mklink /d is effective and non-official but only works on NTFS.
Do you have better ways?

According to https://forum.arduino.cc/t/forcing-java-64-bit-with-arduino/1076759/5
It seems that the Java path is hard-coded.

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
No idea.

This one is a little over my head. Need to learn some stuff before I can weigh in. New with java.

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Bug Report: The PAL:DataDir folder seems to have no purpose

The PAL:DataDir folder seems to have no purpose.
The real data is in the portable folder instead.

There won't be any update to the main app, so it's trivial.
But this seems weird to me.

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Bug Report: Fail to launch on Windows 7

On Windows 7, if java was replaced, for example either with:

Then it won't launch with ArduinoPortable.exe
But it will launch successfully if directly launched with arduino.exe within the App\1.8.19 directory.

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
So...

You're saying that if you modify the package in a way I haven't specified, it doesn't work as intended? Seems like expected behaviour to me.

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
It seems to be fixed at the moment.

With the new Arduino1Portable.exe, I was able to launch it just fine with the currently latest version of Adoptium Temurin JRE 8.0.452+9 x86.

Not sure what was the cause and its fix.

If I guess, it might be because of the use of the latest version of PortableApps.com Launcher.

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
cool

cool cool cool

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Bug Report: Some Tools will fail to open

Some tools will fail to open with ArduinoPortable.exe, but it will successfully open if directly launched with arduino.exe

For example: Guino https://www.instructables.com/Guino-Dashboard-for-your-Arduino/

java.io.IOException: Cannot run program "C:\ArduinoPortable\tools\Guino\tool\guino\GUINO.exe" (in directory "C:\ArduinoPortable\tools\Guino\tool\guino"): CreateProcess error=2, The system cannot find the file specified

It should be C:\ArduinoPortable\App\1.8.19\tools\Guino\tool\guino\GUINO.exe
I think the IDE couldn't detect that the directory has changed because indirectly launched (not by arduino.exe).
What's the solution?

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
Solution

Don't use guino. Wink

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Real proper solution.

I've just found the fix.

Add this line to the Arduino1Portable.ini file:

WorkingDirectory=%PAL:AppDir%\1.8.19

---

Very bad solution from you lol Yahoo

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
Wisdom...

...is getting other people to do it for you.

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
I didn't know back then on what to modify.

I didn't know back then on what to modify.

If I'd known, I would've posted it as a suggestion instead of a bug report.

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
all good.

I keep learning things as I go as well. It's a work of love.

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Suggestion: Launch4j configuration

Beside the portable folder that I've mentioned before.
arduino.l4j.ini and arduino_debug.l4j.ini should also be in the Data folder.

Somtimes we need to increase the -Xmx<maximum heap size> to avoid the error of Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: Java heap space.

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Bug report & Suggestion

With the new update, I think you forgot to rename the file of ArduinoPortable.ini to Arduino1Portable.ini
Otherwise it could not be launched.

---

Based on the format of another PortableApps of legacy apps, such as Mozilla Firefox, Portable Edition Legacy 115. I think the current Name variable is awkward.

it's better to rename it as Arduino IDE Portable (Legacy 1.8.19).
Since the PortableApps.com Platform will strips out the Portable word, it will shows up in the app list nicely as Arduino IDE (Legacy 1.8.19)

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
lol

not super important. i'll get around to it in a bit.

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Hmm

I see that you haven't update the download links for the fixes.

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
there.

Updated now. Smile

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
One last thing

You forget to include this in the .ini file.

WorkingDirectory=%PAL:AppDir%\1.8.19
Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
ok

that should be fixed now too.

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Very good

Everything seems to be perfect now.
Thank you for your work.

Peppernrino
Peppernrino's picture
Offline
Last seen: 2 days 17 hours ago
Joined: 2016-09-05 13:42
Thank you

Could not have done it without your help. Appreciate it.

Unknown123
Offline
Last seen: 6 hours 52 min ago
Joined: 2016-06-23 04:38
Fatal Bugs

https://portableapps.com/manuals/PortableApps.comLauncher/ref/launcher.i...

WaitForEXEN

Value: another_optional_app.exe
Optional.

If the program that you run is a launcher program which launches another executable, and you need to wait for that as well as (or instead of) the original program, specify its file name here, as WaitForEXE1=whatever.exe. If you need more than one, use WaitForEXE2, WaitForEXE3, etc.

Arduino 1.8.19 is a Java based GUI app.
Based on: https://github.com/arduino/Arduino/blob/master/build/windows/launcher/co...
The main arduino.exe launches another executable of javaw.exe

Without WaitForEXEN, the ArduinoLegacyPortable.exe will not wait for the javaw.exe to exit, and the [DirectoriesMove] section will execute prematurely. This will cause data loss for the app.

Please consider to fix the ArduinoLegacyPortable.ini by adding the [Launch] section's entry with the key and value of WaitForEXE1=javaw.exe

[Launch]
ProgramExecutable=1.8.19\arduino.exe
WorkingDirectory=%PAL:AppDir%\1.8.19
DirectoryMoveOK=yes
SupportsUNC=yes
WaitForEXE1=javaw.exe

[DirectoriesMove]
portable=%PAL:AppDir%\1.8.19\portable

---

https://portableapps.com/development/portableapps.com_format

DefaultData is usually used as a container for the default files to be placed within the Data directory. Generally, the launcher, when run, will check if there is a set of files within Data and, if not, will copy them from DefaultData.

Furthermore, the folder structure needs to be proper.
The portable folder should be in the DefaultData folder instead of in the App folder.

And also the default portable folder's content should be empty.

ArduinoLegacyPortable
+ App
  + AppInfo
  + 1.8.19
  + DefaultData
    + portable
+ Data
+ Other
  + Help
    + Images
  + Source

---

Tested and works.

JLim
Offline
Last seen: 17 hours 24 min ago
Joined: 2013-07-17 01:30
Java created a directory in

Java created a directory in "C:\ProgramData\Oracle\Java". You need to handle this too.

[DirectoriesMove]
-=%AllUsersAppData%\Oracle\Java

[DirectoriesCleanupIfEmpty]
1=%AllUsersAppData%\Oracle

Log in or register to post comments