Indigo Rose Software
  #1  
Old 09-05-2008
VJ123 VJ123 is offline
Forum Member
 
Join Date: Sep 2008
Posts: 7
Close Exe during update

Hi,

From the appliation which iinstalled, i launch an exe which has the link to 'Check For Updates'. When i click that, the IIS Server is properly connected nad the patch is getting installed.

But after patch installation, the system is going for a FORCE REBOOT. I believe this may be due to the exe is opened during the patch installation (which also gets updated).

If that is the problem, the i thought i could detect the file in use and based on the boolean value returned, i can close that exe. Is there any function which closes the exe (by terminating the process)?

Thanks,
VJ
Reply With Quote
  #2  
Old 09-05-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by VJ123 View Post
Hi,

From the appliation which iinstalled, i launch an exe which has the link to 'Check For Updates'. When i click that, the IIS Server is properly connected nad the patch is getting installed.

But after patch installation, the system is going for a FORCE REBOOT. I believe this may be due to the exe is opened during the patch installation (which also gets updated).

If that is the problem, the i thought i could detect the file in use and based on the boolean value returned, i can close that exe. Is there any function which closes the exe (by terminating the process)?

Thanks,
VJ

You can use an API or search the forums -- there are a couple of versions of "FindAndCloseByName.lua"

I prefer to just detect that the exe is running and refuse to continue until the exe is closed...
__________________
Reply With Quote
  #3  
Old 09-05-2008
VJ123 VJ123 is offline
Forum Member
 
Join Date: Sep 2008
Posts: 7
Thanks for the suggestion.

I found this of interest- System.TerminateProcess(<processname>) and got it working.

Thanks a lot.
Reply With Quote
  #4  
Old 09-05-2008
VJ123 VJ123 is offline
Forum Member
 
Join Date: Sep 2008
Posts: 7
Thanks for the suggestion.

I found this of interest- System.TerminateProcess(<processname>) and got it working.

Thanks a lot for ur time.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Will True Update Work For Me? NitLions TrueUpdate 2.0 2 09-07-2007 02:35 PM
How can I close an app when an update exists pedro arzac TrueUpdate 2.0 7 11-15-2006 01:27 PM
Web.LoadURL close my project (exe) unidenpr AutoPlay Media Studio 5.0 9 07-07-2005 12:15 AM
Updating the Client Update EXE nickw TrueUpdate 1.0 8 12-10-2003 02:46 PM
INFO: The Difference between the "On Close" and "On Destroy" Events Support AutoPlay Media Studio 4.0 Examples 0 10-03-2002 03:10 PM


All times are GMT -6. The time now is 03:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software