Sam,

If the installer has to replace an in-use (locked) file, then Windows needs a reboot at the end of the installation process. Make sure that 1) you have admin privileges and 2) that you do not suppress the reboot message.

It is not necessary to check the %_SB_ERRORCODE% error code because install file failures are fatal errors and the installer would terminate immediately. A locked file is not an error because the standard behavior is to reboot the machine in this case to replace the file(s).

Does this help?

Friedrich