I'd recommend using a portable solution like the EPKL program, since that won't mess up your OS. But I can't quite say that with a whole heart since I do use a MSKLC install as well for using the Windows Sublayer for Linux, since EPKL (or any low-level keyboard hook program) doesn't work so nicely there in my experience.
]]>If that's not an option, I've written a script that should hopefully fix it.
Try running PowerShell as an administrator, and then paste the following code:
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacRemove('Colemak2.dll')
$publish.GacRemove('C:\Windows\System32\Colemak2.dll')
$publish.GacRemove('C:\Windows\SysWOW64\Colemak2.dll')
if (Test-Path 'C:\Windows\System32\Colemak2.dll') {
Remove-Item 'C:\Windows\System32\Colemak2.dll'
}
if (Test-Path 'C:\Windows\SysWOW64\Colemak2.dll') {
Remove-Item 'C:\Windows\SysWOW64\Colemak2.dll'
}
If that doesn't work, try cleaning the registry first by creating a file (e.g. colemak_cleanup.reg), and then running it and then rebooting.
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\996E6C14CED75BF4C85D351129A710B2]
[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-3206044441-2106535309-3877874486-1001\Components]
[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-3206044441-2106535309-3877874486-1001\Products]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\SharedDLLs]
"C:\\Windows\\system32\\Colemak2.dll"=-
[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{D73971CA-7176-4A20-8113-6B9ADADBCE5D}]
[HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\SharedDlls]
"C:\\Windows\\system32\\Colemak2.dll"=-
There's no uninstall.exe anymore, I've updated the documentation.
]]>Thanks.
]]>