We're trying to push out the latest and greatest AHK, 2.0.2, via our deployment software Microsoft Endpoint Configuration Manager (aka CM / ConfigMgr / Configuration Manager / SCCM / MECM / et.al) and we're running into a minor hiccup. I'm not sure if it is relevant or not, but we also run Windows Defender Application Control (WDAC) on the network, although no logs are captured by WDAC during the failing install. Our users have no admin rights and so, for software to be installed, this is the only way.
After failing with the setup.exe I moved to using the zip file. This method failed as well though.
The install code I'm using is this...
Code: Select all
start "" "%~dp0AutoHotkey32.exe" "%~dp0UX\install.ahk" /to "C:\Program Files\AutoHotkey" /silent
Code: Select all
Error: File or manifest not found
Specifically: v2\AutoHotkey32_UIA.exe
---- C:\Windows\ccmcache\c4\UX\inc\EnableUIAccess.ahk
033: xml.setProperty("SelectionNamespaces" , "xmlns:v1='urn:schemas-microsoft-com:asm.v1' " . "xmlns:v3='urn:schemas-microsoft-com:asm.v3'")
036: If !xml.load("res://" ExePath "/#24/#1")
▶ 037: Throw Error("File or manifest not found",, ExePath)
039: node := xml.selectSingleNode("/v1:assembly/v3:trustInfo/v3:security" . "/v3:requestedPrivileges/v3:requestedExecutionLevel")
041: If !node
The current thread will exit.
Call stack:
C:\Windows\ccmcache\c4\UX\inc\EnableUIAccess.ahk (37) : [EnableUIAccess_SetManifest] Throw Error("File or manifest not found",, ExePath)
C:\Windows\ccmcache\c4\UX\inc\EnableUIAccess.ahk (24) : [EnableUIAccess] EnableUIAccess_SetManifest(ExePath)
C:\Windows\ccmcache\c4\UX\install.ahk (887) : [Installation.Prototype.MakeUIA] EnableUIAccess(newPath)
C:\Windows\ccmcache\c4\UX\install.ahk (180) : [Installation.Prototype.Apply] item(this)
C:\Windows\ccmcache\c4\UX\install.ahk (266) : [Installation.Prototype.InstallFull] this.Apply()
C:\Windows\ccmcache\c4\UX\install.ahk (45) : [Install_Main] inst.%method%(params*)
C:\Windows\ccmcache\c4\UX\install.ahk (16) : [] Install_Main()
> Auto-execute
- C:\Program Files\AutoHotkey\WindowSpy.ahk
- C:\Program Files\AutoHotkey\UX\installed-files.csv
- C:\Program Files\AutoHotkey\v2\AutoHotkey.exe (the symlink)
- C:\Program Files\AutoHotkey\v2\AutoHotkey32_UIA.exe
- C:\Program Files\AutoHotkey\v2\AutoHotkey64_UIA.exe
If you want any more information, just ask.
Kind regards,
Daniel.