Yes, The system probably has more than one copy of the files osql.exe on it. Search for the file and remove any instance of that file other than the one in the SQL installation location. Then you will need to attempt the install again. Make sure that you are using the correct user (sa) and password for that user.
Are you getting this error “Installer User Interface Mode Not Supported. The installer cannot run in this UI mode. To specify the interface mode, use the -i command-line option, followed by the UI mode identifier. The value UI mode identifiers...
The below trick might come handy when you have to add a new node to a cluster but you don't have or is unsure of the security password for the publisher. This procedure has been around for ages.
1) Login into the CLI of the Publisher.