+ Post New Thread
Results 1 to 13 of 13
How do you do....it? Thread, Playing with BAT files again.... in Technical; Right want to silently install a small exe for a microscope the science teacher has bought. I've got a bat ...
  1. #1

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,554
    Thank Post
    2,414
    Thanked 798 Times in 481 Posts
    Blog Entries
    2
    Rep Power
    552

    Playing with BAT files again....

    Right want to silently install a small exe for a microscope the science teacher has bought.

    I've got a bat that so far says

    Code:
    echo "Install exploroscope"
    
    \\server\apps\Exploroscope\setup.exe
    lol which obviously evokes the setup.exe.

    But how do i make it silent! lol

    Also is there a way of getting it to check if its installed and if it to not run the setup as that uninstalls it?

    Thanks

  2. #2
    jamesreedersmith's Avatar
    Join Date
    Sep 2009
    Location
    Ruskington
    Posts
    1,193
    Thank Post
    81
    Thanked 262 Times in 234 Posts
    Rep Power
    79
    put -silent after the command

    eg \\server\apps\Exploroscope\setup.exe -silent

  3. Thanks to jamesreedersmith from:

    Little-Miss (14th October 2010)

  4. #3
    TheLibrarian
    Guest
    That's going to depend entirely on how the setup was written.

    First off run the setup with a /? to see if there are any command line switches (that is will tell you about).

    If it's a well written installer you should be able to do an administative install then use that in your .BAT file to install silently.

    Some administrative installs still need an .MST to install silently, those can be created quite easily but we can go in to that if it's necessary.

  5. Thanks to TheLibrarian from:

    Little-Miss (14th October 2010)

  6. #4
    TheLibrarian
    Guest
    As for checking use the "if NOT exist [filename] \\server\apps\Exploroscope\setup.exe" to check for a file that is installed by the app and run setup if it is not found.

  7. Thanks to TheLibrarian from:

    Little-Miss (14th October 2010)

  8. #5
    tosh74's Avatar
    Join Date
    Dec 2006
    Location
    Scotland
    Posts
    136
    Thank Post
    27
    Thanked 43 Times in 27 Posts
    Rep Power
    24
    Use 7zip to extract any files from the Setup.exe. With any luck there will be a msi in there

  9. Thanks to tosh74 from:

    Little-Miss (14th October 2010)

  10. #6
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,540
    Thank Post
    112
    Thanked 89 Times in 75 Posts
    Blog Entries
    47
    Rep Power
    41
    depends what installer wrapper it uses depends on what switches it needs for instance

    AdobeAIRInstaller.exe -silent -eulaAccepted
    Quicktime.msi /passive
    jre-6u21-windows-i586-s.exe /s /v /qn IEXPLORER=1 ADDLOCAL=ALL UPDATE=1

    some exe files when run create an msi in the temp folder.

    possible installers you can google the switches for are "installshield" and "wise"
    Last edited by browolf; 14th October 2010 at 02:41 PM.

  11. #7

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,554
    Thank Post
    2,414
    Thanked 798 Times in 481 Posts
    Blog Entries
    2
    Rep Power
    552
    I've looked for an MSI but couldn't see one...

  12. #8
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    112
    I would create your own MSI using AppDeploy Repackager - Dell KACE™

    Turn off AV, then using the packager run through the install manually. Once finished it will spit out an MSI

    You can deploy this with group policy or using a bat file.

    start filename.msi /qb-

  13. Thanks to somabc from:

    busby (14th October 2010)

  14. #9
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,540
    Thank Post
    112
    Thanked 89 Times in 75 Posts
    Blog Entries
    47
    Rep Power
    41
    Quote Originally Posted by Little-Miss View Post
    I've looked for an MSI but couldn't see one...
    ok so when you run the setup on some screen before it actually does it, it should say who the installer is made by

  15. #10

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,554
    Thank Post
    2,414
    Thanked 798 Times in 481 Posts
    Blog Entries
    2
    Rep Power
    552
    Hmm Macrovision or Installshield...lol

  16. #11
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,540
    Thank Post
    112
    Thanked 89 Times in 75 Posts
    Blog Entries
    47
    Rep Power
    41

  17. Thanks to browolf from:

    Little-Miss (14th October 2010)

  18. #12

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,554
    Thank Post
    2,414
    Thanked 798 Times in 481 Posts
    Blog Entries
    2
    Rep Power
    552
    Excellent!

    So does the above mentioned bit work for getting it to abort if its already installed?

  19. #13
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,540
    Thank Post
    112
    Thanked 89 Times in 75 Posts
    Blog Entries
    47
    Rep Power
    41
    Quote Originally Posted by Little-Miss View Post
    Excellent!

    So does the above mentioned bit work for getting it to abort if its already installed?
    what you can do is find the main installed exe file for it and then have you batch script be

    if not exist "c:\program files\folder\prog.exe" \\server\apps\Exploroscope\setup.exe .....

    if its something you might have to update I do

    if not exist c:\progname+version.log \\server\apps\Exploroscope\setup.exe ..... && echo hello > c:\progname+version.log
    Last edited by browolf; 14th October 2010 at 03:52 PM.



SHARE:
+ Post New Thread

Similar Threads

  1. Preventing Bat and vbs files
    By BSOD in forum Windows Server 2000/2003
    Replies: 7
    Last Post: 28th January 2010, 07:18 PM
  2. .bat file clear old files
    By T_Noble in forum Coding
    Replies: 3
    Last Post: 20th January 2010, 01:03 PM
  3. Client's Are using .bat files.
    By Lesley_tech in forum General Chat
    Replies: 2
    Last Post: 13th June 2008, 05:09 PM
  4. How to block .bat and .exe files
    By z4ydi in forum Network and Classroom Management
    Replies: 6
    Last Post: 12th February 2008, 03:36 PM
  5. Playing Avi Files
    By lee_sri in forum Windows
    Replies: 11
    Last Post: 10th February 2006, 03:34 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •