Results 1 to 9 of 9

Thread: Reboot and In-Use File

  1. #1

    Default Reboot and In-Use File

    I know I can check whether a single file is in use before installing
    the files. Unfortunately, there are hundreds of files that are to be
    installed, and the list is constantly varying. It's not feasible to
    check for them individually.

    Is there anyway to predetermine if ANY of the soon to be installed
    files are in use before beginning the installation?

    Mike Hanson
    www.boxsoft.net

  2. #2

    Default Re: Reboot and In-Use File

    > Is there anyway to predetermine if ANY of the soon to be installed
    > files are in use before beginning the installation?

    Hi Mike,

    I've always found that the best way it to check if your app is running and
    force the user to shut it down before the install proceeds.

    That way the "files in use - must reboot" is generally a non-issue.

    Charles


    --
    -------------------------------------------------------------------------------------------------------
    Charles Edmonds

    cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)

    www.learnh5fast.com - Master building web and mobile apps with Clarion H5!
    www.clarionproseries.com - ProDocument, ImageEx, ProScan, ProImage, ProPath
    and other Clarion developer tools!
    www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
    xDataBackup Manager and more!
    www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
    www.setupcast.com - "A revolutionary new publishing system for software
    developers - enhanced for SetupBuilder users!"
    www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
    and Forms - Now with PNG support!
    www.fotokiss.com - "World's Best Auction Photo Editor"
    www.lansrad.com - "Intelligent Solutions for Universal Problems"
    -------------------------------------------------------------------------------------------------------

  3. #3

    Default Re: Reboot and In-Use File

    I'm already doing that, with a marker file that all the programs watch
    for, and automatically exit when signalled. However, that doesn't seem
    to have been enough. I'm trying to determine why, but our system is a
    bit of a monster, with many cooks, and no "recipe" in dependable use.

    What I may do is try to scan the entire directory of files, and see if
    any are in use (except for the installer itself). If so, then refuse
    to proceed.

    Mike Hanson
    www.boxsoft.net

  4. #4

    Default Re: Reboot and In-Use File

    Mike,

    > bit of a monster, with many cooks, and no "recipe" in dependable use.

    If it's the one I'm familiar with that's an understatement!<g>

    If not, then shame on ya!!!!<g>

    In either case, GOOD LUCK!

    --
    Lee White

    RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
    Report Faxing.....: http://www.cwaddons.com/products/afe/
    ---Enroll Today---: http://CWaddons.com

    Creative Reporting: http://www.CreativeReporting.com

    Product Release & Update Notices
    http://twitter.com/DeveloperPLUS

  5. #5

    Default Re: Reboot and In-Use File

    Hi Mike,

    My app checks for update availability and then if they choose to download
    and run it, after downloading the SB installer, I use CHAIN() to run it
    which will exit the app. I created my own update mechanism so that I could
    have total control.

    Then, at the very start of the installation before it does anything, I
    display this message above the wizard loop:

    "Do NOT click OK until you have verified that Naviteer is NOT
    running.

    The installation cannot be run if the system it is updating is in use.

    If you see a message at the end of the installation telling you
    your computer needs to be restarted, select CANCEL.

    This usually means you did not exit Naviteer."

    This has been working very well for over a year for 50+ users with updates
    getting rolled out regularly.

    Greg Berthume

  6. #6

    Default Re: Reboot and In-Use File

    Thanks, Greg. I've suggested we just delete the EXEs. We haven't
    implemented that yet, though.

    Mike Hanson
    www.boxsoft.net

  7. #7

    Default Re: Reboot and In-Use File

    I'm still struggling with this.

    I implemented the "Check In-use Folder Tree", to warn them if any of
    the binaries in the folder were in-use by anyone on the network.
    Unfortunately, this check was often taking a long time (5 minutes with
    no screen refreshes), which was freaking everyone out. Unsurprisingly,
    I've been asked to remove this check.

    Now I'm back to figuring out why there are files in use. I already
    have a facility that should kick everyone out of all programs in the
    system: Each program is supposed to regularly check for a flag file,
    then exit in a coordinated fashion. Perhaps it's not working as
    expected, or perhaps there's another program that I didn't managed to
    enhance with this awareness. (There are many programs, with no
    definitive list of what's in use.)

    WIth that in mind, I would like to show which files need to be
    replaced after the reboot. I'm hoping that extra information will help
    me to move forward on this.

    So is there any way to see that list of files that will be replaced
    after reboot?

    Mike Hanson
    www.boxsoft.net

  8. #8

    Default Re: Reboot and In-Use File

    Hi Mike,

    you can use "Get Pending File Operations..." to retrieve the list of
    'PendingRenameFiles' items. You can then display the list of files that
    will be replaced after reboot.

    Does this help?

    Friedrich

  9. #9

    Default Re: Reboot and In-Use File

    Yes, I think that will work. Thanks for the heads up.

    Mike Hanson
    www.boxsoft.net

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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