Can AutoIt3 (plus it's special version of SciTE that comes with it) be run from a USB drive? I have searched the forums, found 3 requests for info on this but no definitive answers.
New: OneLoupe (May 1, 2025), Platform 30.0.2 (Mar 27, 2025)
1,100+ portable packages, 1.2 billion downloads
Ad Free! Please donate today
Can AutoIt3 (plus it's special version of SciTE that comes with it) be run from a USB drive? I have searched the forums, found 3 requests for info on this but no definitive answers.
it's already portable, as is autohotkey ...
Check out portablefreeware.com for instructions on how to portableize
Insert original signature here with Greasemonkey Script.
It's hard to say. AutoIt itself is portable. I don't know for sure about Scite, but it runs off a USB stick. I don't know where it saves its settings though. If you don't care about settings it will run from a USB stick though. Just use the zip files that AI supplies.
cowsay Moo
cowthink 'Dude, why are you staring at me.'
It is like 98% portable out of the box. AutoIt leaves two reg entries behind (I don't know why) -
HKCU\Software\Hiddensoft
HKLM\Software\Hiddensoft
SciTE is portable except for the settings files which it saves in your profile directory. But you can get around this by the launcher creating a temporary environment variable called
SciTE_HOME
and pointing it anywhere you want to store the settings files.
However AutoIt3 is freeware, so cannot be repackaged.
SciTE4AutoIt3 is mostly OpenSource. There are a few utilities like Tidy and Obfuscator which are not, and I don't know what license it is under, so it also cannot be (entirely) repackaged.
As for portability, there are some settings changes that need to be made in the properties files to change from static to relative paths, and SciteConfig.exe needs to be recompiled with relative instead of static paths. Tidy and Obfuscator are closed source (to my knowledge) and I don't know how to portabalize them yet (I have a question in their forum about that).
So yes, it can be done (I've done it), but it's a bit of work, and cannot be fully packaged
wraithdu, Thanks very much for the detail in the above. I had a search for your posts in the AutoIt forum, wow...respect! If I had known you were an AutoIt expert too I would have included you in the subject of the OP. Your apps in Dev Test Releases list aren't under your wraithdu moniker but your real name. Had to do some detective work!
A few questions on your post:
1. Have you created a launcher for SciTE yourself which handles the reg entries?
2. If yes, can you share it?
3. If not, how do you get the SciTE launcher to create a temp env var?
4. Have you had a satisfactory reply in their forum to your question?
TIA, Roger
Thanks for the compliment! Ha, but I'm no expert, I muddle through
Here's my launcher for SciTE. It's in NSIS, handles the environment variable, but does not delete the reg keys. That's becuase I just wrote a simple launcher, not a wrapper. I run a cleanup script when I'm done with all my apps that cleans those entries. But I'll throw in a modified version at the end if you want to wrap the whole thing.
If you want to wrap the whole thing (launcher stays running) -
Put the launcher in the same directory as SciTE. You'll need to Registry plugin to compile this script, and an icon called SciTEPortable.ico (custom, or extracted from the SciTE executable). Or just comment out the icon line to use the default NSIS icon.
Obfuscator has been updated by the dev to search for AutoIt relative to its own directory first, instead of trying to read the registry like it did before. When he releases that update it will work just fine portably (hopefully soon).
SciteConfig.exe, to my knowledge, has not been updated yet. But the source is included, so can be recompiled. Here are my changes in line 23 -
and line 48 -
and recompile it.
I'm going to request the author update SciteConfig.exe similarly to Obfuscator.
wraithdu, thanks very much indeed for this. I'm going to study it later when I have built up some more Brownie points with my wife. She is complaining I'm spending too much time on portableapps.com and not getting the honey-do jobs done. Anyway hope I can ask some more questions later...
No problem. I hear the same stuff from my girl too
Anyway, here's the beta site where the dev posts interim builds of stuff (has the Obfuscator fix) -
http://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/
The new beta of SciteConfig.exe is up. I tested it and got the path code tweaked so it's portable ready now. Same site as above.