Hello,
I too am having issues getting this to work on a computer I don't have admin privileges on. I have an old version of AHK that does run scripts but I can't get any newer version to run.
I don't see the program and assume when you wrote
(first option, first tab)
it meant the program was running? I can't get the program to run so maybe this is the first step to do for me?
I may not compile any more releases unless requested since AHK v2 works perfectly with AHK v1 compiler. Just make sure you save the .bin files in the AHK v2 compiler folder.
Is this suggesting getting the bin files from the v1 version? I don't believe I have this file anywhere.
I tried these steps:
- created this base folder: H:\Documents\AutoHotKey (h is remote server but mapped to h)
- put versions into this base folder
- downloaded the v2 alpha vers over and unzipped it into H:\Documents\AutoHotKey\AutoHotkey 2.0-a123-e5801ee8
(was confused on this part since the documentation says to separate version and name with space but unzipped the folder has an underscore). Removed underscore and left space
ie. H:\Documents\AutoHotKey\AutoHotkey 2.0-a123-e5801ee8
- unzipped the ahk-pi-master.zip into a folder and renamed it AHK Portable Installer (assumed main script meant the AHK Portable Installer.ahk and so did that)
- Step said
If you are running this script uncompiled, grab the latest copy of AHK v2 alpha, copy the desired version of AutoHotkey.exe into the script dir and rename it to AHK Portable Installer.exe. Run this EXE file to launch the script.
So I grabbed "H:\Documents\AutoHotKey\AutoHotkey 2.0-a123-e5801ee8\AutoHotkeyU32.exe" and moved it to the scriptfolder and renamed it. looks like this now: "H:\Documents\AutoHotKey\AHK Portable Installer\AHK Portable Installer.exe"
But when I open a cmd prompt and run "H:\Documents\AutoHotKey\AHK Portable Installer\AHK Portable Installer.exe" "H:\Documents\AutoHotKey\AHK Portable Installer\AHK Portable Installer.ahk", I get an access denied.
I also read this
If you run this as a script (not compiled), simply copy the latest AHK v2 binary to the script directory and rename it to AHK Portable Installer.exe. Then always run the script with this EXE. You can still set any AHK version as the base install for the system with the uncompiled script.
so also tried to copy the bin file over and renamed it to : "H:\Documents\AutoHotKey\AHK Portable Installer\AHK Portable Installer.exe" but that didn't work as well (access denied).
The closest I got to making it work was to use the old version of autohotkey.exe with the AHK Portable Installer.ahk but I get a
Code: Select all
---------------------------
AHK Portable Installer.ahk
---------------------------
Error: Parameter #1 invalid.
Specifically: "Input"
Line#
---> 002: SendMode,"Input"
The program will exit.
---------------------------
OK
---------------------------
if I comment out that line I get another error. I may be going down the wrong path though and thought I ask for help!
Thanks for any input you can give. I appreciate it!
Update: 2/4/21
I was able to get to a computer with admin privileges and went to
thenickmay link and saw that I could run with the U64 version. I copied that into the AHK Portable Installer folder and was able to the installer to pop up.
However when setting the base AHK folder to H:\Documents\AutoHotKey\AutoHotkey 2.0-a123-e5801ee8 and selecting either the 32 or 64 bit version and pressing activate I get an access denied prompt again. After 3 acks I see this error
Code: Select all
---------------------------
AHK Portable Installer.ahk
---------------------------
Error: (5) Access is denied.
Line#
460: MsgBox(reg.reason "
" reg.cmd)
461: if reg.add("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.ahk\ShellNew","FileName","Template.ahk")
462: MsgBox(reg.reason "
" reg.cmd)
465: if !FileExist(A_WinDir "\ShellNew")
466: DirCreate(A_WinDir "\ShellNew")
467: Try
467: FileDelete(A_WinDir "\ShellNew\Template.ahk")
---> 468: FileAppend(templateText, A_WinDir "\ShellNew\Template.ahk")
470: reg.delete("HKEY_LOCAL_MACHINE\Software\AutoHotkey")
472: Sleep(350)
475: root := "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AutoHotkeyScript\Shell" (Settings["CascadeMenu"] ? "\AutoHotkey\Shell" : "")
476: if reg.add("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AutoHotkeyScript","","AutoHotkey Script v" majorVer)
477: MsgBox(reg.reason "
" reg.cmd)
484: if reg.add("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AutoHotkeyScript\DefaultIcon","",Chr(34) exeFullPath Chr(34) ",1")
485: MsgBox(reg.reason "
" reg.cmd)
Try to continue anyway?
---------------------------
Yes No
---------------------------
Tre