[prev in list] [next in list] [prev in thread] [next in thread] 

List:       patchmanagement
Subject:    RE: [patchmanagement] deploy Adobe reader but exclude if Adobe Standard or Adobe Pro is already inst
From:       David McSpadden <davidm () imcu ! com>
Date:       2017-04-25 19:43:29
Message-ID: 803E204A17ED3A4A9BB4A58FF7C0F0030128E96AE7 () 081013VMEXCHB1 ! imcu ! local
[Download RAW message or body]

Going with this:
@echo on
cls
echo --------------------------------------------------------
echo .
echo . Installing Adobe Reader v2015.006.30306 - Please Wait
echo . (This window will close once installed)
REM Installs Chrome Adobe Reader v2015.006.30306
echo .
echo --------------------------------------------------------
echo PROCESSOR_ARCHITECTURE var:
echo %PROCESSOR_ARCHITECTURE% | find /i "x86" > nul
if %errorlevel%==0 (
    goto:32bit
) else (
    goto:64bit
)

> 32bit
> > Check for Adobe Standard first
if exist "c:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe" goto :end
> > Install Adobe Reader v2015.006.30306
"%~dp0Setup.exe"
goto :end

> 64bit
> > Check for Adobe Standard first
if exist "c:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe" goto :end
> > Install Adobe Reader v2015.006.30306
"%~dp0Setup.exe"

> end

> > Return exit code to SCCM
exit /B %EXIT_CODE%

From: Job Cacka [mailto:job@ccbox.com]
Sent: Tuesday, April 25, 2017 11:45 AM
To: Patch Management Mailing List <patchmanagement@listserv.patchmanagement.org>
Subject: RE: [patchmanagement] deploy Adobe reader but exclude if Adobe Standard or \
Adobe Pro is already installed

Notice:  This email is from an outside source.  Please do not open any attachments, \
click on any hyperlinks, or respond without first confirming the authenticity of the \
email.



I have not done this for Adobe reader but something like the following could be used \
in a batch file. It could also be nested.

if exist "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" (
    rem file exists do this
) else (
    rem file doesn't exist do this
)


Job


From: David McSpadden [mailto:davidm@imcu.com]
Sent: Tuesday, April 25, 2017 7:59 AM
To: Patch Management Mailing List
Subject: [patchmanagement] deploy Adobe reader but exclude if Adobe Standard or Adobe \
Pro is already installed

I have a good Application for Adobe Reader.
I would like to not deploy reader to those machines that have Standard or \
Professional already installed. Currently my script dependency is on an registry key. \
If is equals a value. How do I get it to look for the Standard or Professional \
version and just bypass? Outside of doing this through software based collections.  \
Which I can do but would rather not.


This e-mail and any files transmitted with it are property of Indiana Members Credit \
Union, are confidential, and are intended solely for the use of the individual or \
entity to whom this e-mail is addressed. If you are not one of the named recipient(s) \
or otherwise have reason to believe that you have received this message in error, \
please notify the sender and delete this message immediately from your computer. Any \
other use, retention, dissemination, forwarding, printing, or copying of this email \
is strictly prohibited.


Please consider the environment before printing this email.
This e-mail and any files transmitted with it are property of Indiana Members Credit \
Union, are confidential, and are intended solely for the use of the individual or \
entity to whom this e-mail is addressed. If you are not one of the named recipient(s) \
or otherwise have reason to believe that you have received this message in error, \
please notify the sender and delete this message immediately from your computer. Any \
other use, retention, dissemination, forwarding, printing, or copying of this email \
is strictly prohibited.

Please consider the environment before printing this email.

---
PatchManagement.org is hosted by Shavlik

The content on the email list is intended for assisting administrators.  If you would \
like to use any of this content in a blog or media publication, please contact the \
owners of the list for approval.

To unsubscribe send a blank email to leave-patchmanagement@patchmanagement.org
If you are unable to unsubscribe via this email address, please email
owner-patchmanagement@patchmanagement.org


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
code
	{mso-style-priority:99;
	font-family:"Courier New";}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Courier New";}
span.EmailStyle21
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EmailStyle22
	{mso-style-type:personal;
	font-family:"Courier New";
	color:#1F497D;}
span.EmailStyle23
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Going with \
this:<o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">@echo \
on<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">cls<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">echo \
--------------------------------------------------------<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">echo .<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">echo . Installing Adobe Reader \
v2015.006.30306 - Please Wait<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">echo . (This window will close once \
installed)<o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">REM \
Installs Chrome Adobe Reader v2015.006.30306<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">echo .<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">echo \
--------------------------------------------------------<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">echo PROCESSOR_ARCHITECTURE \
var:<o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">echo \
%PROCESSOR_ARCHITECTURE% | find /i &quot;x86&quot; &gt; nul<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">if %errorlevel%==0 \
(<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&nbsp;&nbsp;&nbsp; goto:32bit<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">) else (<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; \
goto:64bit<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">)<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">:32bit<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">::Check for Adobe Standard first<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">if exist &quot;c:\Program \
Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe&quot; goto :end<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">:: Install Adobe Reader \
v2015.006.30306<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&quot;%~dp0Setup.exe&quot;<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">goto :end<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">:64bit<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">::Check for Adobe Standard \
first<o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">if exist \
&quot;c:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe&quot; goto \
:end<o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">:: \
Install Adobe Reader v2015.006.30306<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&quot;%~dp0Setup.exe&quot;<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">:end<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span style="color:#1F497D">:: Return exit code to \
SCCM<o:p></o:p></span></p> <p class="MsoNormal"><span style="color:#1F497D">exit /B \
%EXIT_CODE%<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Job Cacka [mailto:job@ccbox.com] <br>
<b>Sent:</b> Tuesday, April 25, 2017 11:45 AM<br>
<b>To:</b> Patch Management Mailing List \
&lt;patchmanagement@listserv.patchmanagement.org&gt;<br> <b>Subject:</b> RE: \
[patchmanagement] deploy Adobe reader but exclude if Adobe Standard or Adobe Pro is \
already installed<o:p></o:p></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span \
style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,serif;color:red">Notice: &nbsp;This email is from an outside source. \
&nbsp;Please do not open any attachments, click on any hyperlinks, or respond without \
first  confirming the authenticity of the email.<br>
<br>
<br>
<br>
</span><span style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,serif"><o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier New&quot;;color:#1F497D">I have not done this for \
Adobe reader but something like the following could be used in a batch file. It could \
also be nested.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier \
New&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Courier New&quot;">if exist \
&#8220;C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe&#8221; \
(<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; rem \
file exists do this<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Courier New&quot;">) else \
(<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp; rem \
file doesn't exist do this<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Courier New&quot;">)<o:p></o:p></span></p> \
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier \
New&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier New&quot;;color:#1F497D">Job<o:p></o:p></span></p> \
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Courier \
New&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p> <div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif"> David McSpadden \
[mailto:davidm@imcu.com] <br>
<b>Sent:</b> Tuesday, April 25, 2017 7:59 AM<br>
<b>To:</b> Patch Management Mailing List<br>
<b>Subject:</b> [patchmanagement] deploy Adobe reader but exclude if Adobe Standard \
or Adobe Pro is already installed<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I have a good Application for Adobe Reader.<o:p></o:p></p>
<p class="MsoNormal">I would like to not deploy reader to those machines that have \
Standard or Professional already installed.<o:p></o:p></p> <p \
class="MsoNormal">Currently my script dependency is on an registry key.&nbsp; If is \
equals a value.<o:p></o:p></p> <p class="MsoNormal">How do I get it to look for the \
Standard or Professional version and just bypass?<o:p></o:p></p> <p \
class="MsoNormal">Outside of doing this through software based collections.&nbsp; \
Which I can do but would rather not.<o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p>This e-mail and any files transmitted with \
it are property of Indiana Members Credit Union, are confidential, and are intended \
solely for the use of the individual or entity to whom this e-mail is addressed. If \
you are not one of the named recipient(s) or  otherwise have reason to believe that \
you have received this message in error, please notify the sender and delete this \
message immediately from your computer. Any other use, retention, dissemination, \
forwarding, printing, or copying of this email is strictly  \
prohibited.<o:p></o:p></p> <p class="MsoNormal"><span \
style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,serif"><o:p>&nbsp;</o:p></span></p> <p>Please consider the environment \
before printing this email.<o:p></o:p></p> </div>
<p>This e-mail and any files transmitted with it are property of Indiana Members \
Credit Union, are confidential, and are intended solely for the use of the individual \
or entity to whom this e-mail is addressed. If you are not one of the named \
recipient(s) or otherwise have reason to believe that you have received this message \
in error, please notify the sender and delete this message immediately from your \
computer. Any other use, retention, dissemination, forwarding, printing, or copying \
of this email is strictly prohibited.</p><br> <p>Please consider the environment \
before printing this email.</p></body> </html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic