adamshields
asked on
Batch Scripting McAfee antivirus install
I have a packaged McAfee install that I can install using the following:
I would like to place this in a batch script but when I run it prompt with an invalid syntax
I have also tried the following which installs but again the script does not.
Any tips on getting this package installed?
C:\Documents and Settings\User\Desktop\Patches>VSE87wP3.EXE /q
I would like to place this in a batch script but when I run it prompt with an invalid syntax
@echo off
set CD="%userprofile%\Desktop\Patches"
cmd /c "%CD%\VSE87wP3.EXE /Q"
I have also tried the following which installs but again the script does not.
C:\Documents and Settings\User\Desktop\Patches\VSE87wP3>msiexec /i vse870.msi /qn
@echo off
set CD="%userprofile%\Desktop\Patches"
msiexec /i "%CD%\VSE87wP3\SetupVSE.msi /qn"
Any tips on getting this package installed?
Are you on a domain? I would suggest using group policies to to install .msi packages.
What is the specific error message? Also, if you remove the "@echo off" you will know the line that's giving the error.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I believe using quotes when setting the variable was causing a problem.