MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: PATH Update Flakey in WIN95/98[Next]: Script Alerts
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Troubleshooting->Bugs, Features and Issues (NON-MAKEMSI)->Pending Restart Bugs

BUG: Pending Restart Bugs

Windows Installer will return a return code of 3010 if files are in use and at least one file is scheduled for deletion or overwrite. The bug is it is still scheduled even when the need is gone and it will cause problems when executed.

One scenario which will result in missing files:

  1. Install a product.

  2. Start the application or otherwise ensure one or more of the installed files is "in use" (locked).

  3. Uninstall the product. Do this in "quiet mode" (/qb perhaps), this ensures that the deletion is scheduled for next boot up. Confirm the return code is "3010" (perhaps with a verbose log).

  4. Stop the application or otherwise ensure none of the files are in use.

  5. Install this application again (or a new version as is more likely "in the wild').

  6. Start the application, it should be OK.

  7. Reboot the computer, the scheduled deletion kicks in and the installed file(s) now gets deleted.

  8. Check that the previously locked files are gone confirming the bug.

Do not attempt to let Windows Installer "cover up" this fault by invoking advertised entry points and causing a repair. Of course as a builder of msis, "advertising" is a workaround to this issue.

The solution is that Windows Installer needs its own locked file scheduling which it needs to manage itself (and not just at restart). It needs to remove pending operations that are no longer required or at least not allow future installs that will generate this issue.


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006 & 2007 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 12 Jun 2008Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: PATH Update Flakey in WIN95/98[Next]: Script Alerts


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Wednesday June 25 2008 at 7:16pm
Visit MAKEMSI's Home PageThis external link was OK when tested at 21 Jun 2008

HTML page dated Mon, 29 Jan 2007 00:11:11 GMT
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006 & 2007 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 12 Jun 2008