Always use %~dp0 when calling files from a .bat file, especially when running from the network.
@echo off IF "%ProgramFiles(x86)%"=="C:\Program Files (x86)" goto x64 else goto x86 :x86 ECHO System is x86 msiexec /i "%~dp0SEP_12.1.4013.4013_32bit\Sep.msi" /qn /L*V log.txt SYMREBOOT=Suppress goto exit :x64 ECHO System is x64 msiexec /i "%~dp0SEP_12.1.4013.4013_64bit\Sep64.msi" /qn /L*V log.txt SYMREBOOT=Suppress goto exit :exit Daniel Ratliff From: [email protected] [mailto:[email protected]] On Behalf Of David Landry Sent: Friday, October 17, 2014 1:55 PM To: [email protected] Subject: [MDT-OSD] Can't seem to get Symantec Endpoint Protection to install via MDT 2012 Hi All, I have been having a heck of a time trying to get SEP to install. I have imported the installation files for both 32bit and 64bit (in separate folders) along with a .bat file to run them from MDT. The bat file is: @echo off IF "%ProgramFiles(x86)%"=="C:\Program Files (x86)" goto x64 else goto x86 :x86 ECHO System is x86 msiexec /i SEP_12.1.4013.4013_32bit\Sep.msi /qn /L*V log.txt SYMREBOOT=Suppress goto exit :x64 ECHO System is x64 msiexec /i SEP_12.1.4013.4013_64bit\Sep64.msi /qn /L*V log.txt SYMREBOOT=Suppress goto exit :exit I have tried many different command lines which have all resulted in either a white completion window with no errors or a yellow completion window with a return code: 1. The command I have in there right now is: cmd.exe /c \\"servername"\mdt\applications\Symantec_Endpoint_Protection\sep_install.bat<file:///\\"servername"\mdt\applications\Symantec_Endpoint_Protection\sep_install.bat> I have also copied the install folder to the desktop of a test machine and it ran fine. Does anyone have any ideas? Thanks in advance, Dave The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.
