Fixed installer/uninstaller return code when an error happen.

In some case, the installer and the uninstaller can return 0 (no error) when an error happen.