Wednesday, 28 November 2012

How to Install/Uninstall android apk with Batch file

Lets see how we can install Android Apk by creating Batch File


Apk Installation via Batch File:-
  1. Make sure you have set the system’s PATH variable
  2. Open a notepad
  3. Type command   adb install
  4. Now save file
  5. Right Click the file and rename it to Install.cmd
  6. Now connect your device to PC
  7. Double click on install.cmd batch file,you can see that the apk installation process in initiated and then completed
  8. In order to use it regularly, you will have to maintain the same name and path of your apk.If you change the name or path of your apk,it will not work.
Apk Un-Installation via Batch File:-
  1. Make sure you have set the system’s PATH variable
  2. Open a notepad
  3. Type command   adb Uninstall e.g adb uninstall com.adobe.reader
  4. Now save file
  5. Right Click the file and rename it to uninstall.cmd
  6. Now connect your device to PC
  7. Double click on uninstall.cmd batch file,you can see that the already installed app on your device is getting uninstalled

No comments:

Post a Comment