So Adobe Reader 11 is a pretty simple application, so let’s have a look and get it configured with MyInstall.
First create an Adobe Reader 11 directory. I place mine under DeploymentShare\Applications\Standard\Adobe Reader 11.
If you don’t have Adobe Reader 11 downloaded, go ahead and get a copy from http://get.adobe.com/reader/enterprise/
Place the Install EXE in a Source subdirectory. This helps keep the install separate from the Admin files. Next place URL link to your download in the Adobe Reader 11 directory. This will keep you from having to look it up later, and also it is a good practice to have some marker in here so you know (or anyone else) where the file came from.
A fresh copy of MyInstall.vbs should go in here as well.
Now before you get too far ahead of yourself, let’s find out what switches for installation we will need. We can get this by adding a /? to most installs.
No go ahead and run MyInstall.vbs. Don’t worry, it won’t install anything at this point. You will notice it will make 4 files and prompt you that it will be opening the MyInstall.config file. Just press OK
Great, so now we have MyInstall.config file open. One thing you will always need to remember is that the MyInstall.config is not just any text file, it is a VBS file, and like any VBS file, you have to adhere to strict formatting rules. So if there are quotes in a line, keep your entry between the quotes. If you have a line with True, then you can either have True or False, nothing else, not even blank.
So understanding the rules, let’s go ahead and put in our installation switches since we have that up already. The line we are modifying should read like this:
'====== Setup Switches ================================================= cSetupSwitches = "/sPB /rs /l"
Now let’s put our Setup File Information.
'====== Setup File Information ========================================= cSetupFile = "Source\AdbeRdr11010_en_US.exe" cSetupx86 = "" cSetupx64 = ""
Remember that we put the EXE in a Source subdirectory. the cSetupFile must be in relation to the MyInstall.vbs script, so if you put the EXE in the same directory as the script, then leave off the Source\
Now lets make sure that this installation is compatible with our Operating Systems. We know that this version of Adobe Reader won’t work on Windows XP, so let’s change that to False
'====== Operating System Compatibility ================================= cOSWindowsXP = False cOSWindowsVista = True cOSWindows7 = True cOSWindows8 = True cOSWindows81 = True cOSWindows10 = True
Go ahead and save the MyInstall.config file (don’t close it) and now open MyInstall.vbs with Command Prompt (don’t worry, MyInstall has the Safety on by default).
If you have UAC enabled, you should get a prompt for Elevation
And the next thing that will open is a Confirmation Prompt. This will tell us the command line that will be used, as well as some other helpful information to know. Just press OK.
You will get a second prompt letting you know the install has completed. Again, press OK.
If you have log files properly registered with CMTrace (or Trace32) you can open the shortcut and read all about how the install is interpreted. You will also see that it is by default in Simulation Mode (safety).
If you are happy with the way things look, you can remove the Safety by changing cSimulation to False, and cConfirm to False.
'====== MyInstall Script Properties ==================================== cSimulation = False cConfirm = False cElevate = True
Now you can import the Application into MDT and use cscript MyInstall.vbs as the command line.
Enjoy. Full MyInstall.config below
'// This config file is in VBScript format '====== MyInstall Script Properties ==================================== cSimulation = False cConfirm = False cElevate = True '====== Setup File Information ========================================= cSetupFile = "Source\AdbeRdr11010_en_US.exe" cSetupx86 = "" cSetupx64 = "" '====== Setup Switches ================================================= cSetupSwitches = "/sPB /rs /l" '====== Local Path ===================================================== cLocalPath = "" '====== Running Processes ============================================== cWaitForProcess = "" '====== Reboot Action ================================================== cRebootWithMDT = False '====== Operating System Compatibility ================================= cOSWindowsXP = False cOSWindowsVista = False cOSWindows7 = True cOSWindows8 = True cOSWindows81 = False cOSWindows10 = False '====== Hardware Compatibility ========================================= cComputerManufacturer = "" cComputerModel = "" cComputerPNPID = "" '====== BIOS Compatibility ============================================= cComputerBIOSVerMin = "" cComputerBIOSVerMax = "" '====== Shortcut Creation ============================================== cShortcut1Location = "" cShortcut1TargetPath = "" cShortcut1WorkingDir = "" '=============================================================== cShortcut2Location = "" cShortcut2TargetPath = "" cShortcut2WorkingDir = "" '=============================================================== cShortcut3Location = "" cShortcut3TargetPath = "" cShortcut3WorkingDir = "" '====== Script Information (No changes should be made below) =========== cScriptVersion = 20150624 '====== About ========================================================== '// MyInstall.vbs Configuration File '// MyInstall.config Last Updated 20150624 '// '// David Segura '// https://winpeguy.wordpress.com/2015/06/24/reference-myinstall-config/ '// '// Supported Extensions for this script are *.*/BAT/CMD/EXE/MSI/MSP/MSU/INF/VBS