Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Re: Trouble installing V2

$
0
0
I would suggest running the following to confirm that the private key (which setup was failing to open or create) does not already exist. If you are unable to run .ahk files by double-clicking, you can drag-drop the file onto a copy of AutoHotkey.exe (v2).

CODE:

#Requires AutoHotkey v2
if !DllCall("Advapi32\CryptAcquireContext", "ptr*", 0, "str", "AutoHotkey"
, "ptr", 0, "uint", 1, "uint", 16) ; PROV_RSA_FULL=1, CRYPT_DELETEKEYSET=16
throw OSError()
else
MsgBox "Deleted"

Statistics: Posted by lexikos — 43 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles