Support install/uninstall

See #661