Batch and Command files

Sample script to install Epicor on our Windows 7 machines at this client. Kicks off several legacy installscript exes/, with answer files recorded. As well as a config msi that I created. In addition, registers some dlls, elevates rights via icacls and more.

the config msi does this:

puts reg key for lpt pringer mapping in run command, under hklm
puts stub in for active setup to copy to data to a b drive
creates two folders
puts in registry for odbc settings.

——————————–
@echo off

msiexec /i %~dp0CrystalReportsRuntime.msi /qn /l*v “C:\Util\Packages\Logs\Crystal Reports Runtime.log”

%~dp0Client\Setup.exe /s /f1%~dp0Client\SetupMain.iss /f2″C:\Util\Packages\Logs\Epicor Financials 7.4.log” /SMS

%~dp0SP4\Setup.exe /s /f1%~dp0SP4\SetupSP.iss /f2″C:\Util\Packages\Logs\Epicor Financials 7.4 SP4.log” /SMS

%~dp01099\Setup.exe /s /f1%~dp01099\1099.iss /f2″C:\Util\Packages\Logs\Epicor 1099.log” /SMS

msiexec /i %~dp0Epicor74Config.msi /qn /l*v “C:\Util\Packages\Logs\Epicor 7.4 Config.log”

mkdir “C:\Program Files\Epicor\Enterprise\7.4\Client\Custom”
xcopy “C:\Util\Packages\Epicore Config\apcstrpt.ODD” “C:\Program Files\Epicor\Enterprise\7.4\Client\Custom” /y /i /q
icacls “C:\Program Files\Epicor\Enterprise\7.4” /T /C /grant[:r] INTERACTIVE:(M)

regsvr32 “C:\Windows\SysWOW64\vsflex6.ocx” /s

%~dp0PCL5\Install.exe /smLPT1 /n”TROY3015″ /m”HP LaserJet P3010 REM Series” /q /nd /npf /h

%~dp0Windows6.1-KB917607-x64.msu /quiet
exit /b 3010
———————————–

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s