The user can very easily stop, or prevent this type of script from working correctly. You would probably be better off creating your own uninstaller that removes the data and registry entries on your own that way a user could not easily stop it.