Portable Installation of AHK

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
User avatar
RaveWolf
Posts: 12
Joined: 02 Mar 2016, 04:03

Portable Installation of AHK

Post by RaveWolf » 19 Mar 2023, 09:06

Hi,

I downloaded AHK 2.0.2 and the Portable option is showing but it's not allowing me to select it. What am I missing?

User avatar
Smile_
Posts: 858
Joined: 03 May 2020, 00:51

Re: Portable Installation of AHK

Post by Smile_ » 19 Mar 2023, 11:40

Can you provide more details ? your question is not clear.

User avatar
RaveWolf
Posts: 12
Joined: 02 Mar 2016, 04:03

Re: Portable Installation of AHK

Post by RaveWolf » 19 Mar 2023, 12:16

image.png
image.png (11.4 KiB) Viewed 5620 times
The Portable option of the installation is not selectable.
I want to install it on a Flash Drive as I can't install it on the system where I need to use it.

User avatar
Smile_
Posts: 858
Joined: 03 May 2020, 00:51

Re: Portable Installation of AHK

Post by Smile_ » 19 Mar 2023, 16:39

You can get the portable version from here: https://www.autohotkey.com/download/

TAC109
Posts: 1111
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Portable Installation of AHK

Post by TAC109 » 19 Mar 2023, 16:41

Change the 'Install to' directory first, then 'Portable' can be selected.

Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe

User avatar
RaveWolf
Posts: 12
Joined: 02 Mar 2016, 04:03

Re: Portable Installation of AHK

Post by RaveWolf » 19 Mar 2023, 18:49

Smile_ wrote:
19 Mar 2023, 16:39
You can get the portable version from here: https://www.autohotkey.com/download/
That is where I downloaded it from.

TAC109 wrote:
19 Mar 2023, 16:41
Change the 'Install to' directory first, then 'Portable' can be selected.
I tried that. I also inserted the Flash drive and selecting it as the download path. Still nothing.
In theory, it shouldn't care where you install it... I work with Portable apps as much as possible even on my PC.

User avatar
Smile_
Posts: 858
Joined: 03 May 2020, 00:51

Re: Portable Installation of AHK

Post by Smile_ » 20 Mar 2023, 05:40

2023-03-20_114015.png
2023-03-20_114015.png (30.47 KiB) Viewed 5565 times
?

User avatar
RaveWolf
Posts: 12
Joined: 02 Mar 2016, 04:03

Re: Portable Installation of AHK

Post by RaveWolf » 20 Mar 2023, 06:18

Smile_ wrote:
20 Mar 2023, 05:40
2023-03-20_114015.png?
I don't know what you are trying to get from me?

As I have already replied, I have downloaded it from that site with that link. I have also tried previous 2.0.x versions in case there is something wrong with the latest version. No matter which 2.0.x version I use it doesn't work. As you can see from my previous screenshot it shows AHK 2.0.2, so I'm a bit confused as to where you are going with this.

These are the others I have tried (From the same site)...
image.png
image.png (102.57 KiB) Viewed 5558 times
  • Using the the option that you highlighted and underlined in red.
  • Ran AutoHotKey 2.0.2
  • Selected C:\... and also tried the Flash drive (D:\).
  • Still no option to select 'Portable'
  • Used Chrome to download
  • On a Windows 10 OS
  • Also tried it on 4 other Laptops and 1 PC
image.png
image.png (15.68 KiB) Viewed 5558 times
If you try it on your side, do you get the same?

User avatar
Smile_
Posts: 858
Joined: 03 May 2020, 00:51

Re: Portable Installation of AHK

Post by Smile_ » 20 Mar 2023, 06:33

It shouldn't be an installer, it should be just a ZIP file where you get to extract it where ever you want.
And yes the portable option didn't work for me too.
Last edited by Smile_ on 20 Mar 2023, 08:42, edited 1 time in total.

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Portable Installation of AHK

Post by swagfag » 20 Mar 2023, 06:55

this option isnt even implemented lol, so its no use pondering why it isnt working
https://github.com/AutoHotkey/AutoHotkeyUX/blob/69d902c72c52b17256e71f0caf4726e90ca29762/ui-setup.ahk#L51

User avatar
RaveWolf
Posts: 12
Joined: 02 Mar 2016, 04:03

Re: Portable Installation of AHK

Post by RaveWolf » 20 Mar 2023, 08:12

Smile_ wrote:
20 Mar 2023, 06:33
It shouldn't be an installer, it should just a ZIP file where you get to extract it where ever you want.
And yes the portable option didn't work for me too.
Thank you, will give that a try. It's just misleading when the installer shows something that's not even implemented. Very misleading. :lol:
swagfag wrote:
20 Mar 2023, 06:55
this option isnt even implemented lol, so its no use pondering why it isnt working
https://github.com/AutoHotkey/AutoHotkeyUX/blob/69d902c72c52b17256e71f0caf4726e90ca29762/ui-setup.ahk#L51
Thank you so much, that answers my question as to why it's not working. :salute:

TheLandYacht
Posts: 30
Joined: 06 Sep 2020, 15:55

Re: Portable Installation of AHK

Post by TheLandYacht » 19 Jun 2023, 00:29

Smile_ wrote:
19 Mar 2023, 16:39
You can get the portable version from here: https://www.autohotkey.com/download/
I tried downloading from that location, and when I unzipped it (AutoHotkey_2.0.2.zip), it didn't seem to include the entire contents... only the following files
AutoHotKey (helpfile)
AutoHotkey32 (neither of these will open, "Script not found")
AutoHotkey64 (neither of these will open, "Script not found")
Install (installer, which I can't use since I'm on a work machine, locked down)
license
WindowSpy (text file)
UX Folder (full of various text files)

I'm on a work-machine, and our Administrator has all permissions locked down hard (and is in another state)...so getting them unlocked is practically impossible.
ANY installation is impossible, as soon as you start the installation process it says "Nope", you don't even get to that window where you get to choose where you want to put it.

neogna2
Posts: 590
Joined: 15 Sep 2016, 15:44

Re: Portable Installation of AHK

Post by neogna2 » 19 Jun 2023, 04:15

@TheLandYacht drag and drop an .ahk script file on the AutoHotkey64.exe to run the script.

User avatar
Smile_
Posts: 858
Joined: 03 May 2020, 00:51

Re: Portable Installation of AHK

Post by Smile_ » 19 Jun 2023, 05:19

AutoHotkey32 (neither of these will open, "Script not found")
AutoHotkey64 (neither of these will open, "Script not found")
When you open "AutoHotkey32.exe", it expects to have your script under the name of "AutoHotkey32.ahk" at the same directory, otherwise you must specify your script path as it is documented here. (Same thing with AutoHotkey64.exe)

lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: Portable Installation of AHK

Post by lexikos » 19 Jun 2023, 21:55

ANY installation is impossible, as soon as you start the installation process it says "Nope",
What says "nope"?

The installer is just a compiled AutoHotkey script. It should not require any special permissions to show the installer GUI.

TheLandYacht
Posts: 30
Joined: 06 Sep 2020, 15:55

Re: Portable Installation of AHK

Post by TheLandYacht » 22 Jun 2023, 23:30

lexikos wrote:
19 Jun 2023, 21:55
ANY installation is impossible, as soon as you start the installation process it says "Nope",
What says "nope"?

The installer is just a compiled AutoHotkey script. It should not require any special permissions to show the installer GUI.
Windows itself (on the work machine) is locked down against any sorts of installations that require access, such as installers.

So...as soon as I start the installer, Windows pops up a message that says "Contact your System administrator for permission"

Basically a great big "NOPE!"

lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: Portable Installation of AHK

Post by lexikos » 23 Jun 2023, 04:39

@TheLandYacht
Many applications create or copy files into directories that the user owns. Many applications write to registry keys under HKEY_CURRENT_USER, such as whenever you change persistent settings in various applications. There can be fundamentally no difference between a user mode installer and an application which does these things. Even explorer.exe does these things (at the behest of the user).

However, I realized that the system may simply be detecting the word "installer" in the file description or "setup" in the name.

There is nothing that you can do with setup.exe that you can't do with AutoHotkey32.exe, because setup.exe is just a compiled script. The installer does not need to be compiled to run it. The non-compiled installer and everything else contained by setup.exe is included in the zip download.

Unless system policy blocks you from executing batch scripts, you can just run Install.cmd from the zip download.

If that is blocked, just drag-drop UX\ui-setup.ahk onto AutoHotkey32.exe. Do not move the file out of the UX sub-directory.

Post Reply

Return to “Ask for Help (v2)”