Auto compiling system installer

  • china-richway2
    4th Nov 2013 Member 1 Permalink
    This post has been removed by jacob1: possibly unsafe, do not run
    Edited 2 times by china-richway2. Last: 4th Nov 2013
  • mniip
    4th Nov 2013 Developer 1 Permalink
    automatic scripts are a bad thing
    EDIT: i just looked at the script... what is that shit.... seriously... VB? Rar? manual registry editing?
    Edited 2 times by mniip. Last: 4th Nov 2013
  • kagaku
    4th Nov 2013 Member 1 Permalink

    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. 

  • jacob1
    4th Nov 2013 Developer 0 Permalink
    Yes, I saw it earlier and noticed it was downloading them from mediafire. This looks very unsafe, especially with the registry edits too, you should be using the real installers and not this script. This will leave you with half installed, broken installations, it doesn't edit path either. Also it doesn't work if you don't use C:/ (like me, I have F:/)

    The wiki guide is fine, except for the mingw installation, which is now much more complicated than the original installer. But I doubt this script is much better ...
  • mniip
    4th Nov 2013 Developer 0 Permalink
    @jacob1 (View Post)
    when the guide was written mingw used to have a different installer
  • jacob1
    4th Nov 2013 Developer 0 Permalink
    @mniip (View Post)
    yes, I know. Also I like how you finally insulted something that sort of deserved it, lol
  • boxmein
    4th Nov 2013 Former Staff 0 Permalink
    Anyone feel like running this on a Windows XP VM? My internet sucks...

    Also this entire script could be done far easier with Chocolatey like this:
    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
    Edited 3 times by boxmein. Last: 4th Nov 2013
  • MiningMarsh
    4th Nov 2013 Member 0 Permalink

    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.

  • china-richway2
    5th Nov 2013 Member 0 Permalink

    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.

    @boxmein (View Post)

    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.

    @MiningMarsh (View Post)

    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.

    @boxmein (View Post)

    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.

    Edited 7 times by china-richway2. Last: 5th Nov 2013
Locked by jacob1: lock requested I guess ...