[Android Software/Hacking General [Developers Only]] Ohmster:
My script? Did I give you a script [MENTION=1951610]Lord fiSh[/MENTION] or do you mean what comes with the tool? So far as I know, Snoop05 created this thread and has submitted the tool for other users.

But, I do have a friend w/out extensive Android and PC experience, here on XDA with the same phone I have, Moto-X Pure Edition, and wants to root it. For that, I used adb and fastboot, with the root and su files to create root. In this post:

[ROOT] Moto X Style - XT1572 BR - Marshmallow

For this method of rooting to work, one really needs adb and fastboot installed and working, with the correct drivers installed for adb. It was not easy for me to get adb working on Windows 7 x64, the Moto drivers really did not get that right and the Google USB files for adb never install on any machine I have seen. So getting adb and fastboot installed for your particular device can be quite challenging. IIRC, I had to take off USB Debugging and cycle through all modes of USB connections on the device, each time "Windows is installing drivers" would pop up, click to see what drivers are installing. adb was one that would not install until I went 'round and 'round on all connection modes for USB (PTP, MTP, Charge Only, etc.) so when I re-enabled USB Debugging, I got the "Windows is installing drivers" and adb did install this time.

So there is a high interest in the 15 second adb installer. I am a bit cautious of losing the PC Path environment but that is over 1024 characters. Mine is not that many, maybe 600-700 or so. I think there was a person with Windows 10 that had an issue where there is a Windows Update patch for Windows 8.1, no patch that I am aware of to install on Windows 10. Your advice, is actually quite good and should help him and other members. Although I do not need this advice, I will give you Thanks for posting it and will keep a copy for myself.

Downloading this "down and dirty" installer too is a problem. The links are shut down or insist you install some BS you do not want in order to download. The download is adb-setup-1.4.3.exe and I do not need or want to run it. So where did you see the script to modify it? Did you extract it from the exe or run the tool and got the script once ran?

If this tool worked perfectly I would throw a lot of support for it out there. But I cannot with inherent problems, recommend this to friends, especially inexperienced ones. Installing the Java SDK, the Google SKD to get platform tools, and getting all drivers installed and working right is very challenging for some people, me with Win 7 x64 on a Moto-X. My adb, fastboot, and platform tools are in and working so I won't mess with it. The links I have to the original method are for Moto-X, each different device will need different instructions, perhaps, but this is more or less what to do if this method fails:

How to install adb and fastboot on Android

Grab Moto X Pure Edition 2015 USB drivers, also works with adb and fastboot

How to Set Up ADB and Fastboot with Android SDK on Windows 7 & Windows 8

Setting up a proper adb and fastboot tool set on your PC, this is "the right way" to do it. This worked for me, albeit took a long time to get done and was frustrating. But once done, installed, and working, is a much better method because you have all you need to do almost anything to your phone, via USB.

The "acid test" is to connect phone with USB Debugging enabled, run a command prompt in Windows, run this command:

adb devices

And see your phone/device show up in Windows Command Prompt with an ID number. Until you get to that point, adb will not work. My device found in Bold Print, Like this:

C:\Users\paul>adb devices

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

TA39400GKB device

C:\Users\paul>

Once you run "adb devices" with phone plugged in, USB Debugging enabled in Developer Tools. If you get your device to show with an ID number as shown above, you are setup properly.

Thank you [MENTION=1951610]Lord fiSh[/MENTION] for the help. I am sure this will help other people. :good:

* Anyone here get adb and fastboot commands installed on Windows 7 x64 or other Windows, please post your method with links if you can.