MyInstall: Application with Multi Architecture and Multi Model Requirements


This is not that hard to do with MyInstall.vbs.  Let’s say I need the Dell Feature Enhancement Pack

6-23-2015 2-52-51 PM

And I can see that it is supported on several different Computer Models, and is x64 only.

6-23-2015 2-53-16 PM

Well it is x86, but I need to download that as a separate install as well.  So I download both as separate subdirectories of my Install directory.  I then add the cSetupx86 and the cSetupx64 install files to MyInstall.config.  I can now run one of the installs with a /? to display the Setup Switches so I can add this to the MyInstall.config

6-23-2015 2-57-56 PM

Now that I have my proper configuration done in MyInstall.config, I can run it (still in cSimulation mode)

6-23-2015 2-59-18 PM

And everything looks good so far.

6-23-2015 2-59-36 PM

Now I need to edit the MyInstall.models.txt.sample file and add the Models to this file

6-23-2015 3-04-22 PM

And then rename the file to MyInstall.models.txt

6-23-2015 3-04-34 PM


Now I can test again and see an extremely long Confirmation Prompt which works for me.

6-23-2015 3-04-57 PM

Now time to set cSimulation and cConfirm to False so I can test this on a deployment.  Total time required, less than 10 minutes including download.

'// This config file is in VBScript format

'====== MyInstall Script Properties ====================================
 cSimulation = False
 cConfirm = False
 cElevate = True

'====== Setup File Information =========================================
 cSetupFile = ""
 cSetupx86 = "DV6XM_WN_2.2.1_A00\DFEP_Setup32_2_2_1.exe"
 cSetupx64 = "MHVWP_WN_2.2.1_A00\DFEP_Setup64_2_2_1.exe"

'====== Setup Switches =================================================
 cSetupSwitches = "/S /v/qn"

'====== Local Path =====================================================
 cLocalPath = ""

'====== Running Processes ==============================================
 cWaitForProcess = ""

'====== Reboot Action ==================================================
 cRebootWithMDT = False

'====== Operating System Compatibility =================================
 cOSWindowsXP = False
 cOSWindowsVista = False
 cOSWindows7 = True
 cOSWindows8 = False
 cOSWindows81 = True
 cOSWindows10 = False

'====== Hardware Compatibility =========================================
 cComputerManufacturer = "Dell"
 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
Advertisements