DaveT1 wrote: ↑21 Sep 2022, 04:26
2) Do you happen to have admin permissions on your account? You shouldn't need it,, but it depends on how you use ahk and what you are trying to do.
Yes I do. Using
install in AHK PI requires you to be administrator. And this works fine as long as I remember to launch your script as admin.
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.
DaveT1 wrote: ↑21 Sep 2022, 04:26
Lastly, aside from context menu entries, are you able to use the ahk extension normally?
Really sorry, but I'm not sure what you mean. I can open ahk files in vscode (my prefered IDE) and run and debug in there. But the vscode extensions I use explicitely point to locations on my c drive that have the ahk executables. What has changed is that double clicking an ahk file no longer runs it, but opens it in Scite4AHK, and I have no ahk 'entries' in my context menu.
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.
Regarding install / uninstall for AHK Portable Installer...
The
Install button simply writes registry entries. The
Uninstall button, removes them. AHK PI "management" functions don't use the registry at all. All settings are saved locally so one doesn't "install" or "uninstall" AHK PI. This script is only a manager to apply/remove the
.ahk extension to/from the system. I hope that makes sense. AHK PI is basically self contained.
So, you should not need to scour the registry manually anyways. Try the following steps first.
- Click the Uninstall button in AHK PI. This will only remove all the registry data related to AHK and Ahk2Exe.
- Restart your computer.
- Click the Install button in AHK PI. This will re apply the registry settings. Don't forget to set your desired text editor for use with the context menus to edit scripts.
If the above steps don't work, then here are the registry keys to check:
- HKEY_CURRENT_USER\SOFTWARE\AutoHotkey
- HKEY_CURRENT_USER\SOFTWARE\Classes\AutoHotkeyScript
- HKEY_CURRENT_USER\SOFTWARE\Classes\.ahk
If you are using default settings then everything should be in the
HKEY_CURRENT_USER hive. Otherwise look in the
HKEY_LOCAL_MACHINE hive (same paths, different root).
If any of these keys are still remaining after you have clicked uninstall, then something is fishy.
Please let me know what result you get.