OK, learning lots here - I think I assumed admin rights were needed for any changes to the registry ! But, at least for me, it seems I do need to run AHK PI as an administrator in order to install?TheArkive wrote: ↑21 Sep 2022, 11:08
Just a minor correction. Admin privileges are actually not required, unless you select to install the registry keys into HKEY_LOCAL_MACHINE. The default is HKEY_CURRENT_USER and this requires no admin permissions. Having said that, it's good that you have admin rights, simply because AHK is more flexible with admin rights.
Glad to have answered the Q, even inadvertently .You answer actually answers my question The fact you can't run ahk scripts with a double click indicates the entire ahk association is definitely broken, thus no context menus as well.
OK, so this it what I did and found:Regarding install / uninstall for AHK Portable Installer...
So, when I run AHK PI uninstall, restart my computer and then manually inspect the registry, I found:
- HKEY_CURRENT_USER\SOFTWARE\AutoHotkey absent
- HKEY_CURRENT_USER\SOFTWARE\Classes\AutoHotkeyScript absent
- HKEY_CURRENT_USER\SOFTWARE\Classes\.ahk absent
- HKEY_LOCAL_MACHINE\SOFTWARE\AutoHotkey absent
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AutoHotkeyScript absent
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.ahk absent
I then run AHK PI install, restart my computer and then manually inspect the registry, and I find:
- HKEY_CURRENT_USER\SOFTWARE\AutoHotkey present
- HKEY_CURRENT_USER\SOFTWARE\Classes\AutoHotkeyScript absent
- HKEY_CURRENT_USER\SOFTWARE\Classes\.ahk absent
- HKEY_LOCAL_MACHINE\SOFTWARE\AutoHotkey present
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AutoHotkeyScript present
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.ahk present
Ah, thank you for this point.I have experienced, that at some point Windows might decide the user has already "chosen" a program to handle the .ahk extension. And subsequent attempts to change the handler of the .ahk extension might cause Windows to intervene. Usually you will see intermittent prompts from windows to choose a program to handle .ahk files. They might seem to be somewhat random.
I have actually not experienced this in a while, and I also use admin rights on my computers. So I'm not so sure you are experiencing this kind of issue, but it's something to keep in mind.
So, AHK PI uninstall / install is making changes to the registry, but maybe there is something else going on to make my system screwy?
As ever, very grateful for your time and help.