<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Webdings;
panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
h4
{margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:0cm;
page-break-after:avoid;
font-size:14.0pt;
font-family:"Times New Roman";
font-weight:bold;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
p.Style1, li.Style1, div.Style1
{margin-top:3.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:0cm;
text-align:justify;
page-break-after:avoid;
font-size:10.0pt;
font-family:Arial;}
span.EmailStyle18
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=FR link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Hi again for another question…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I would like to install a package only if a specific
process is not running.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I read <a
href="http://wpkg.org/Script_for_checking_if_a_process_is_already_running">http://wpkg.org/Script_for_checking_if_a_process_is_already_running</a>
but it is explained for win2000 OS.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I want to try it on XP and Seven.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I tried to add this line in my package.xml file.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><install cmd='%COMSPEC% /c
%SystemRoot%\system32\tasklist.exe /FI "IMAGENAME eq firefox.exe"
2>NUL | %SystemRoot%\system32\find.exe /I /N "firefox.exe"
>NUL'/><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>But it always return 1<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>This command line works in a shell but not in wpkg.
Does anyone of you have an idea of what is wrong ? (maybe the pipe is not
possible, nor the redirection (>) ?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Thanks<o:p></o:p></span></font></p>
<p><b><font size=2 color=navy face="Times New Roman"><span lang=EN-GB
style='font-size:10.0pt;color:navy;font-weight:bold'>Laplaud François</span></font></b><span
lang=EN-GB><o:p></o:p></span></p>
<p style='margin:0cm;margin-bottom:.0001pt'><b><font size=1 color=navy
face="Times New Roman"><span lang=EN-GB style='font-size:7.5pt;color:navy;
font-weight:bold'>S</span></font></b><font size=1 color=navy><span lang=EN-GB
style='font-size:7.5pt;color:navy'>ervice<b><span style='font-weight:bold'> I</span></b>nformatique<b><span
style='font-weight:bold'> </span></b>&<b><span style='font-weight:bold'> T</span></b>ransmission</span></font><b><font
size=2 color=navy><span lang=EN-GB style='font-size:10.0pt;color:navy;
font-weight:bold'><o:p></o:p></span></font></b></p>
<p style='margin:0cm;margin-bottom:.0001pt'><b><font size=1 color=navy
face="Times New Roman"><span lang=EN-GB style='font-size:7.5pt;color:navy;
font-weight:bold'>S</span></font></b><font size=1 color=navy><span lang=EN-GB
style='font-size:7.5pt;color:navy'>ervice <b><span style='font-weight:bold'>D</span></b>épartemental
</span></font><font size=1 color=navy><span style='font-size:7.5pt;color:navy'>d'<b><span
style='font-weight:bold'>I</span></b>ncendie et de <b><span style='font-weight:
bold'>S</span></b>ecours de <U1:PERSONNAME style="BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x; BACKGROUND-POSITION: left bottom" tabIndex="0" u2:st="on" ProductID="la Sarthe">la
<st1:place w:st="on">Sarthe</U1:PERSONNAME></st1:place><o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt'><font size=1 color=navy
face="Times New Roman"><span style='font-size:7.5pt;color:navy'>13, Boulevard
Saint Michel<o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt'><font size=1 color=navy
face="Times New Roman"><span style='font-size:7.5pt;color:navy'>72190 Coulaines
BP 35<o:p></o:p></span></font></p>
<p style='margin:0cm;margin-bottom:.0001pt'><b><font size=1 color=navy
face="Times New Roman"><span style='font-size:7.5pt;color:navy;font-weight:
bold'>Tel : 02.43.54.66.06</span></font></b><o:p></o:p></p>
<p style='margin:0cm;margin-bottom:.0001pt'><b><font size=1 color=navy
face="Times New Roman"><span style='font-size:7.5pt;color:navy;font-weight:
bold'>Fax:</span></font></b><font size=1 color=navy><span style='font-size:
7.5pt;color:navy'> <U3:PERSONNAME u4:st="on">02.43.74.37.61</U3:PERSONNAME><o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><strong><b><font
size=2 color=green face=Webdings><span style='font-size:11.0pt;font-family:
Webdings;color:green'>P</span></font></b></strong><strong><b><font size=2
color=navy face="Times New Roman"><span style='font-size:11.0pt;color:navy'> </span></font></b></strong><strong><b><font
size=1 color=green face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:green'>Je pense ENVIRONNEMENT: ai-je vraiment besoin d'imprimer ce
message ?</span></font></b></strong><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>