You have 2 IF but only 1 ENDIF.

As I already told you, you cannot just blindly SendKey() without using SetFocus() to the screen you need to send the [enter] key to.

When you SHELL out to the uninstaller, does the KiX script wait for the uninstall to complete before moving to the next line? If it does, then the SendKey() cannot send the [enter] to the uninstaller!

If it doesn't wait, then you SendKey() the [enter] too soon!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.