Fix install/delete order.

Reported by: az