[1.1.34.04] Error creating AutoHotKeyA32_UIA.exce (CryptAcquireContext)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
grosner
Posts: 10
Joined: 11 Sep 2016, 13:08

[1.1.34.04] Error creating AutoHotKeyA32_UIA.exce (CryptAcquireContext)

13 Oct 2022, 12:51

While attempting to update to to AutoHotkey 1.1.34.04, I am presented with the following error:
[1.1.34.04] Error creating AutoHotKeyA32_UIA.exc CryptAcquireContext)
Similar mesages appear for AutoHotKeyU32_UIA and AutoHotkeyU64_UIA.exe

What's happening and how can I fix this?

More Info:
  • No other AutoHotkey scripts are running.
    I tried running installer as administrator.
    I tried installation while in Windows 11 safe mode.
    Autohotkey files did install in the c:\program files\AutoHotKey folder
lexikos
Posts: 9635
Joined: 30 Sep 2013, 04:07
Contact:

Re: [1.1.34.04] Error creating AutoHotKeyA32_UIA.exce (CryptAcquireContext)

13 Oct 2022, 23:14

The installer attempts to acquire or create a self-signed digital certificate for use signing the UIA.exe (which is required for "Run with UI access"). The error means that the installer failed to either open or create the key container ("AutoHotkey"). At a guess, it might be caused by corruption of cryptographic keys in your user profile or a change of login password.

Fully uninstalling AutoHotkey should remove the "AutoHotkey" key container, which should resolve the issue. Alternatively, you can try the following, which I have not tested (but the uninstaller makes this same call):

Code: Select all

EnableUIAccess_DeleteCertAndKey("AutoHotkey")
ExitApp
#include C:\Program Files\AutoHotkey\Installer.ahk
This must be run as admin.

If you don't use the "Run with UI access" context menu option (or the UIA files), you could just delete the UIA files and uncheck the corresponding option during installation.
grosner
Posts: 10
Joined: 11 Sep 2016, 13:08

Re: [1.1.34.04] Error creating AutoHotKeyA32_UIA.exce (CryptAcquireContext)

14 Oct 2022, 16:24

After running the code snippet as admin, the install is working.
Thank you VERY much!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], HiSoKa and 196 guests