PDA

View Full Version : Reboot and In-Use File



NewsArchive
09-24-2018, 01:54 PM
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

NewsArchive
09-24-2018, 01:55 PM
> 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"
-------------------------------------------------------------------------------------------------------

NewsArchive
09-24-2018, 01:55 PM
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

NewsArchive
09-24-2018, 01:56 PM
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

NewsArchive
09-26-2018, 04:10 AM
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

NewsArchive
10-10-2018, 09:27 AM
Thanks, Greg. I've suggested we just delete the EXEs. We haven't
implemented that yet, though.

Mike Hanson
www.boxsoft.net

NewsArchive
01-25-2019, 09:24 AM
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

NewsArchive
01-25-2019, 09:25 AM
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

NewsArchive
02-01-2019, 02:10 AM
Yes, I think that will work. Thanks for the heads up.

Mike Hanson
www.boxsoft.net