Could you please be more clear on what happened? From what I can tell: Your computer was installing a program or app automatically and to stop this from happening you removed the battery? It would have been better to let it install and then just uninstall it BTW. What exactly do you mean by your laptop is going "on and off"?