Solved

Batch Scripting McAfee antivirus install

Posted on 2010-09-21
4
1,021 Views
Last Modified: 2012-06-21
I have a packaged McAfee install that I can install using the following:

C:\Documents and Settings\User\Desktop\Patches>VSE87wP3.EXE /q

Open in new window


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"

Open in new window


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

Open in new window


@echo off 
set CD="%userprofile%\Desktop\Patches"
msiexec /i "%CD%\VSE87wP3\SetupVSE.msi /qn"

Open in new window


Any tips on getting this package installed?
0
Comment
Question by:adamshields
4 Comments
 
LVL 5

Expert Comment

by:jhill777
ID: 33728061
Are you on a domain?  I would suggest using group policies to to install .msi packages.
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 33728878
What is the specific error message?  Also, if you remove the "@echo off" you will know the line that's giving the error.
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 33730483
Hi, have you tried just this in your batch file
"%userprofile%\Desktop\Patches\VSE87wP3.EXE" /q

or
msiexec /i /qn "%userprofile%\Desktop\Patches\VSE87wP3\vse870.msi"

Regards,

Rob.
0
 
LVL 3

Author Closing Comment

by:adamshields
ID: 33731077
I believe using quotes when setting the variable was causing a problem.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now