modify install script for copy array special code cin
bug fixed on hang after switching im in integrated mode