I dunno how you are calling it, but here is the latest ver...

Many of the variables here aren't declared here, but you should be able to figure them out.

code:
  
;******************************* remove hotbar ****************************
$hotbar=0
if keyexist("$HKLMSMWCV\Uninstall\hotbar")
$hotbar=readvalue("$HKLMSMWCV\Uninstall\hotbar","UninstallString")
endif
if keyexist("$HKLMSMWCV\Uninstall\hotbar uninstall")
$hotbar=readvalue("$HKLMSMWCV\Uninstall\hotbar uninstall","UninstallString")
endif

if $hotbar
$=findproc(@wksta,"iexplore.exe",1)
$=findproc(@wksta,"explorer.exe",1)
$=findproc(@wksta,"outlook.exe",1)
sleep 5
run '$setup\Apps\Hotbar\HotbarUninstall.exe'

sleep 3
$=setfocus("Hotbar Uninstall")
$=sendkeys("{tab}{tab}{enter}")

sleep 3
$=setfocus("Hotbar Uninstall")
$=sendkeys("{enter}")

sleep 3
$=findproc(@wksta,"iexplore.exe",1)

if not exist("c:\progra~1\hotbar\bin\4.1.8.0\Hbinst.exe")
$=delkey("$HKLMSMWCV\Uninstall\hotbar")
$=delkey("$HKLMSMWCV\Uninstall\hotbar uninstall")
$runonce='HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce'
$=writevalue($runonce,"hotbarremove","cmd /c RD c:\progra~1\hotbar /s /q",Reg_SZ)
endif
endif

_________________________
How to ask questions the smart way <-----------> Before you ask