Recommend you stay far away from this... While the script itself seems fairly innocent, it's downloading all the binaries from Mediafire instead of the official sources. There is no telling what has been done to these binaries, recommend a moderator delete this post.
cinst mingw git python pip wget
REM the last two can be uninstalled later but are useful anyways!
REM cuninst pip scons
pip install scons
git clone https://github.com/simtr/The-Powder-Toy.git TPT
mingw-get install mingw32-libbz2 bzip2 mingw32-libz zlib
wget https://dl.dropboxusercontent.com/u/43784416/PowderToy/MingwLibraries.zip -o libraries.zip
unzip libraries.zip -d TPT
rm libraries.zip
Holy crap, you just echoed a visual basic script from a batch file.
How is that a good idea?
And no offense, but based on the quality of some of the other code you have posted (like that lua solution that wasn't even syntactically correct), this is not a script I would advise betting your machine on.
Well, people all think it is unsafe, I'll probably download the original setup and just automatically move your mouse to click things...
Mods: You can now lock this thread, if nobody is going to download it. It took my half an hour just to upload those RAR files, three hours to code it... And broken.
I tried to find all the registry updates made by the original installer.
An explanation to code:
1.It extracts download.vbs to download things from MediaFire. I have tested.
2.You see, I download a unrar.exe(Chinese version) to extract files from .rar
3.I do not see MinGW and Git have any registry edits. It seems to work fine without those.
I already see Python and SCons have registry edits.
4.I do change PATH. I have a coding issue where I cannot use Replace to delete previous PATH setups.
You see, I extract PATH(or something).vbs and run it. It works fine.
I have VM, but there isn't enough space to install these. I have Sandbox on my computer too, but I thought there would be something wrong with PATH, and I could not delete Git path.
I am not good at coding, I never coded successfully without debugging. But with debugging I promise the code works fine.
About VbS: I could have coded VBS installer but the installation, you can see, requires 4 unrar. I do not think using WScript.Shell to run unrar is a good idea.
Haha, nobody told me that it is recogonized as a Trojan/virus. Miraculously.
I do not have Chocolatey so I might put a command line in it to install it. But not everyone have PowerShell! I has to download PowerShell. The same thing will occur again, it will download from MediaFire, which is considered unsafe and gets locked... Not a good idea though.
EDIT: Ah, I've worked out a reliable PowerShell source. http://www.microsoft.com/en-us/download/confirmation.aspx?id=16818 I will develop a Chocolatey system probably.