Permalink
Browse files

Initial commit with vbs script

  • Loading branch information...
smeggysmeg committed Jul 2, 2018
1 parent 4679fee commit a132474e60fbbbe677e65ac825b5a1746decba5c
Showing with 42 additions and 0 deletions.
  1. +32 −0 Fix LinkIt.vbs
  2. +10 −0 README.md
View
@@ -0,0 +1,32 @@
' By Smeggysmeg / 2018-06-26 '
' Kills LinkIt, tells them to unplug/replug PIN pad, wait for Welcome, then starts LinkIt when OK is clicked '
option explicit
Dim objShell : Set objShell = CreateObject("WScript.Shell")
' Kill LinkIt '
objShell.Run "taskkill /im LinkIt.exe /F", , True
Msgbox("Unplug PIN pad and plug it back in. When it says 'Welcome', click OK")
function Determine64BitMode
dim Shell, Is64BitOs
set Shell = CreateObject("WScript.Shell")
on error resume next
Shell.RegRead "HKLM\Software\Microsoft\Windows\CurrentVersion\ProgramFilesDir (x86)"
Is64BitOs = Err.Number = 0
on error goto 0
if Is64BitOs then
Determine64BitMode = InStr(Shell.RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\ProgramFilesDir"), "(x86)") = 0
else
Determine64BitMode = false
end if
end function
dim ExecutingIn64BitMode
ExecutingIn64BitMode = Determine64BitMode
if ExecutingIn64BitMode then
objShell.Run """C:\Program Files (x86)\Demoteller\LinkIt\LinkIt.exe""", , True
else
objShell.Run """C:\Program Files\Demoteller\LinkIt\LinkIt.exe""", , True
end if
View
@@ -1,2 +1,12 @@
# FixLinkIt
Quick Fix Script for LinkIt from HID TRISM
The LinkIt application packaged by HID for connecting a PIN pad into TRISM and/or your customer onboarding application can sometimes lose its connectivity to the PIN pad. When it does, you may receive one of the following errors:
- PIN block
- Unable to Connect to Interface
- Your onboarding application freezes when you try to retrieve the PIN
This script is something to be placed on the user desktop that ends the LinkIt process, instructs the user to disconnect and reconnect the PIN pad then wait for the Welcome message, and when they click OK it will re-start the LinkIt application.
It runs on both 32-bit and 64-bit Windows and runs LinkIt from the default installation directory in the Demoteller folder. No local administrator rights should be required, as long as the drivers for the PIN pad are already installed.

0 comments on commit a132474

Please sign in to comment.