PDA

View Full Version : Reboot message after installation



MarkDynna
09-17-2014, 01:21 PM
I have an installation that "sometimes" displays a "This system must be restarted to complete the installation" message after it is done. How can I tell what part of the installation generates this condition?

We done run one or more external installs that are "chained" as part of the overall installation - could one of them be returning the "reboot required" condition?

I've attached the log file from the last run that generated the message.

linder
09-18-2014, 12:30 AM
Mark,

If a file to be replaced is locked (in-use) then Windows needs a reboot. It only requests a reboot if the file can't be replaced because exclusive write access is not possible (file is locked/in-use).

You can very easily check this. If the reboot message comes up, simply check the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager->PendingFileRenameOperations

http://technet.microsoft.com/en-us/l.../cc960241.aspx

There you'll find the file(s) that need(s) to be replaced at next reboot.

As far as I can see, all kind of files are locked in your case:

M:\MuniSoft\SM\SM_DATA.dll
M:\MuniSoft\SM\C60ASCX.DLL
M:\MuniSoft\SM\C60CLAX.DLL
M:\MuniSoft\SM\C60DOSX.DLL
M:\MuniSoft\SM\C60MSSX.DLL
M:\MuniSoft\SM\C60RUNX.DLL
M:\MuniSoft\SM\C60TPSX.DLL
M:\MuniSoft\SM\LSPUZIPX.DLL
and more...

Hope this helps.

Friedrich

MarkDynna
09-18-2014, 08:39 AM
Is there a flag or variable I can check to see if this condition exists?

linder
09-18-2014, 08:53 AM
Mark,

Get System Info -> Reboot Status. It lets you determine whether the system should be restarted. Returns "1" if the system should be restarted.

BTW, all (or most of) your files are locked. So I think your application is "in-use" (active) when you do the update. You can test this BEFORE the file installation is performed if you would like to avoid a reboot.

Friedrich

MarkDynna
09-18-2014, 10:03 AM
Mark,

Get System Info -> Reboot Status. It lets you determine whether the system should be restarted. Returns "1" if the system should be restarted.

BTW, all (or most of) your files are locked. So I think your application is "in-use" (active) when you do the update. You can test this BEFORE the file installation is performed if you would like to avoid a reboot.

Friedrich

That's a big help, thanks.