Software Deployment : Silent install of “HP Hotkey Support”

Hi guys, i had to deploy this piece of junk garbage software through many deployment systems.

Symptomes:

 The hotkey utility is installed from Empirum(SW distribution system like SCCM), after restart when the user logs in,
the hotkey ‘device’ is recognized and admin password requested.

 The registry key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\{A87C2E0F-9A46-46b8-8EC4-E33355FBE1F7}\KeyboardFilter\5&3a7b2914&0&01]  -> “ConfigFlags”=dword:00000000
this key prevents hotkey from bringing the admin password dialog up for the user,
and the method i used installs the key after reboot but before the user logs on
However in most cases the hotkey utility is not working, but the service is installed and running, the device is present in device manager, and the utility itself is installed as a program.

The only working solution i found was this:

-Install the software silent (setup.exe /s /v”/qn REBOOT=REALLYSUPPRESS”)

-run a small script that schedules a script for running after restart:
schtasks /create /tn “HPHKFIX” /tr “c:\temp\startfix.cmd” /sc ONSTART /ru “System” >>c:\temp\hkfix.log 2>&1

-in that script, (patch the registry with the few keys i found to be responsible, delete the task of running again, and waiting a bit):
REG IMPORT hkfix.reg >>c:\temp\hkfix.log
schtasks /delete /tn “HPHKFIX” /f >>c:\temp\hkfix.log 2>&1
ping 127.0.0.1 -n 60

-the contents of the regfile hkfix.reg:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\{A87C2E0F-9A46-46b8-8EC4-E33355FBE1F7}\KeyboardFilter\5&3a7b2914&0&01]
“ConfigFlags”=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_HPHOTKEYMONITOR\0000\Control]
“*NewlyCreated*”=-
“ActiveService”=”hpHotkeyMonitor”

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WDF01000\0000]
“Service”=”Wdf01000”
“Legacy”=dword:00000001
“ConfigFlags”=dword:00000000
“Class”=”LegacyDriver”
“ClassGUID”=”{8ECC055D-047F-11D1-A537-0000F8753ED1}”
“DeviceDesc”=”Kernel Mode Driver Frameworks service”
“Capabilities”=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WDF01000\0000\Control]
“*NewlyCreated*”=-
“ActiveService”=”Wdf01000”

-MOST IMPORTANT !!!!!! the hotkey will ONLY work after 2 REBOOTS! (first to instert/erase the keys, second to activate them)

Maybe the first key is enough, who knows, it was in the previous version of the software, but i spent too much time trying to fix this, so i just post what works, and you figure out the rest…

Also, my real scripts do time and other logging too, and not located in c:\temp… but i omitted those for shortness sake…

I hope this helps!

Csaba