Looking To Learn How To Install Software Using .Bat Files


  1. Posts : 53
    Windows 7 64 bit
       #1

    Looking To Learn How To Install Software Using .Bat Files


    Hey Guys,

    I've been doing help desk for awhile, and the company I recently started working for had been using .bat files to do silent installations and make life easier. I've been responsible for the installs lately, and some of the files are outdated or I need to create new ones. i've never created them, and would like to learn how. Doing a google search gave me a bunch of different ones that kind of confused me more. If anybody has a solid link to a good how to for beginners or can help, feel free to let me know, as I'm looking to learn. Thanks for your time.
      My Computer


  2. Posts : 5,915
    Windows 10 Pro X64
       #2
      My Computer


  3. Posts : 53
    Windows 7 64 bit
    Thread Starter
       #3

    Thank Dude, I'll definitely check that out now, much appreciated.
      My Computer


  4. Posts : 53
    Windows 7 64 bit
    Thread Starter
       #4

    Seems like more basic commads and creating menus, any more suggestions? I'd really appreciate it, thanks!
      My Computer


  5. Posts : 53,365
    Windows 10 Home x64
       #5

    If you want to use a program, have a look at Silent Install Builder

    Silent Install Builder

    You can also look into AutoIt - AutoItScript , they have lots of sample scripts and a forum.

    A Guy
      My Computer


  6. Posts : 1
    Windows 10
       #6

    I would recommend creating a folder for your installer and files before doing this.
    Once you've done that, try this code:
    Code:
     @echo off
    echo This will install (insert program name here)
    pause
    cls
    echo Installing...
    mkdir "folder the files will be installed in"
    copy "insert file you want to copy here" "insert destination folder (the one that you specified earlier) here" /h /q /s
    rem Copy and paste the "copy" command for each file you want to install.
    echo All done!
    pause
    Here are some useful arguments you can use for your copy command:
    Code:
    /g - Show the percentage of files being copied
    /h - Copy hidden files.
    /p - Asks the user for confirmation before installing files.
    /q - Quiet mode.
    /s - Include subdirectories.
    /v - Verify files.
    I hope this helps you!
      My Computer


  7. Posts : 3,788
    win 8 32 bit
       #7

    As suggested autoitis one of the best as you can build a stand alone exe with bat files they can be read/altered the other thing with autoit is there is a recorder so you can record what you want to do and it will write the script for you. It has so many functions you cant run with just a batch file
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:31.
Find Us