Fixed installer to support elasticsearch upgrade with data keeping.