I too had problems upgrading from 1.5 to 1.6.2 with the upgrade script, error message stated something along the lines of DUPLICATE_KEY PREV_SOMETHING.....
To resolve this I simply ran the uninstall script from 1.5 and then the install script from 1.6.2.
Hope that's helped somebody!
Bookmarks