hardtailstar Posted June 8, 2015 Posted June 8, 2015 Hi All, I am trying to create a batch file to install four .exe programs instead of manually installing them. I have googled it but having not much luck at the moment. I am a complete newb to it so any help from basics would be great. Thanks in advance
Michael Posted June 8, 2015 Posted June 8, 2015 Sometimes if you run C:\filename.exe /? from a command prompt, it may/may not give you optional settings for installing silently or extracting an MSI for example. 1
Steve21 Posted June 8, 2015 Posted June 8, 2015 It depends how complicated/error checking etc you want to go, whether it's remote installer/shared drives/mapping/remote install etc etc but the basics really are as simple as: Get commands to install manually (e.g. MyExe /silent) Write in notepad and Save as "myname".bat Obviously depends on what you're installing etc so might be worth expanding a bit on it Steve 1
hardtailstar Posted June 8, 2015 Author Posted June 8, 2015 I will be installing Java, Flash, Air and reader from a shared drive.
Michael Posted June 8, 2015 Posted June 8, 2015 Java and Flash both have MSIs, so you can install these either via Group Policy or silently using a batch file if you so wish. Not sure about Air, but wouldn't be surprised if you can extract an MSI out of it. 1
hardtailstar Posted June 8, 2015 Author Posted June 8, 2015 Java and Flash both have MSIs, so you can install these either via Group Policy or silently using a batch file if you so wish. Not sure about Air, but wouldn't be surprised if you can extract an MSI out of it. how would I set up a batch file for it?
Steve21 Posted June 8, 2015 Posted June 8, 2015 Manually or automated/logon script? As you'll need to include things like mapping drives if you need them etc into the script. Steve
hardtailstar Posted June 8, 2015 Author Posted June 8, 2015 Manually or automated/logon script? As you'll need to include things like mapping drives if you need them etc into the script. Steve itll be a manual install so I can run it to update the above. I wont be mapping shared drives. its just to install the programs from a shared drive
Steve21 Posted June 8, 2015 Posted June 8, 2015 Just put the default UNC paths and the command line you want in then and that should be it. e.g. msiexec /i \\FILEHOST\packages$\jre1.8.0_45\jre1.8.0_45.msi /q Put 4 in a row and they'll fire off after eachother. Very basic and not really any logic to it in terms of checks/errors Steve 1
Vasriel Posted June 8, 2015 Posted June 8, 2015 From a shared drive, I use the following line for Adobe Air: "%~dp0Adobe Air\AdobeAIRInstaller.exe" -silent -eulaAccepted 1
Arthur Posted June 8, 2015 Posted June 8, 2015 I will be installing Java, Flash, Air and Reader from a shared drive. All of those programs have MSIs available so deployment will be easy. However most people customize the installers prior to deployment (via MSTs for example) in order to disable automatic updates, EULAs, delete desktop shortcuts etc. Adobe Reader (now Acrobat Reader). Download and install the Customization Wizard then open the MSI and modify the relevant settings. Adobe AIR. Follow the instructions here. Adobe Flash Player. Use an mms.cfg file to disable automatic updates (since standard users won't have the rights to install them). See pages 24 and 31 of the admin guide or search Edugeek for mms.cfg. Java. Check this thread for details on how to extract the MSI and the command-line parameters to use. I can post more detailed instructions if required. 1
Vasriel Posted June 8, 2015 Posted June 8, 2015 (edited) I used these webpages to customize my deployment of Adobe Reader using Adobe Customization Wizard: https://forums.adobe.com/message/5073496 and http://blogs.adobe.com/acrolaw/2013/02/acrobat-xi-deployment-guide-for-large-firms/ Edit: ach, only saw Athur's post just after I posted. Edited June 8, 2015 by Vasriel 1
fantazma Posted March 15, 2016 Posted March 15, 2016 To complete silent install third party like Java, Adobe with msi use this comand : @echo install Google Chrome start /wait msiexec /i "%~dp0%googlechromestandaloneenterprise.msi%" /qn /l* Copy the command on the notepad file and save like "install.cmd". Rename application.msi with your msi name file. Copy the msi file and install.cmd into 1 folder. Run As administrator and Done. In this site you can learn more information about silent install command.
mowgli82 Posted March 16, 2016 Posted March 16, 2016 Java and Flash both have MSIs, so you can install these either via Group Policy or silently using a batch file if you so wish. Not sure about Air, but wouldn't be surprised if you can extract an MSI out of it. You can extract the msi from air using 7zip or winrar
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now