Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    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

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    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...


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    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.

  4. #4
    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.

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts