mark installed only if successful