MyInstall: Application with Local Copy and Process Monitoring Requirements


Ok this is a challenge.  For starters this is CCM Client, so I need to configure my cSetupFile and my cSetupSwitches.

I then decide that I want it copied locally, so I configure my cLocalPath to copy to C:\Windows\Local.

CCM Client will actually continue to the next Step in the MDT Task Sequence before it is really completed for some strange reason, so I need to configure cWaitForProcess to make sure that ccmsetup.exe is actually done running before exiting.

6-23-2015 3-12-25 PM

A quick Confirmation before I remove the safety features and put this into production.

6-23-2015 3-12-43 PM

Full code

'// This config file is in VBScript format

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

'====== Setup File Information =========================================
 cSetupFile = "Source\ccmsetup.exe"
 cSetupx86 = ""
 cSetupx64 = ""

'====== Setup Switches =================================================
 cSetupSwitches = "SMSSITECODE=DRS DNSSUFFIX=ent.segura.org FSP=david.ent.segura.org SMSSLP=david.ent.segura.org RESETKEYINFORMATION=TRUE CCMLOGMAXHISTORY=3 CCMLOGMAXSIZE=1000000 SMSCACHESIZE=20480"

'====== Local Path =====================================================
 cLocalPath = "C:\Windows\Local"

'====== Running Processes ==============================================
 cWaitForProcess = "ccmsetup.exe"

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

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

'====== 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

Advertisements