<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I've got a strange problem at
some clients where ShellExecute fails to run. In this particular
curcumstance, the ShellExecute is being run just before my program terminates,
but I don't see why that has anything to do with it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is used to update the program by running a
silent install, which then re-loads the program afterwards.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This works fine here 100% of the time on my fast
development PC, though I have seen the problem on a slow test PC once or
twice. The other clients affected also have slow PC's. The program
terminates but the install doesn't run. All are Windows XP.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is the exact code.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>ShellExecute(0,'open',pChar(OpenDialog.Filename),'/SILENT
/NOCANCEL',nil,SW_NORMAL);<BR>Application.Terminate;<BR></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT color=#000000>The install process is visible
on the screen when it runs, yet it doesn't show at all on these other PC's, as
if the ShellExecute was totally ignored.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>Does anyone have any clues?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV><FONT face=Arial size=2><FONT color=#000000>Regards,</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT color=#000000>Ross.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>