Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

FILESINUSE dialog (MsiProcessMessage) is not shown

2 replies to this topic

Tim Gladden

Tim Gladden
  • Full Members
  • 2 posts

Posted 21 March 2009 - 11:07

I have a dll custom action that queries a custom table for application names, searches for those applications and detects if they are running, and then populates a FilesInUse dialog from the InstallUISequence. This routine has been working well in our product installers for several revisions, and hasn't been touched for some time. We've been getting reports lately that it is no longer working, so after digging into it a little bit, I determined that it still works correctly on systems with MSI 2.0 and MSI 3.0.

It fails only on systems with MSI 3.1, and it always fails on those systems. In stepping through the function in a debugger for a failure case, I see that MsiProcessMessage returns 0. The log file contains these lines:

MSI © (90:94) [15:10:06:324]: GetWindowTitle: FilesInUse record has invalid ProcessID - Unexpected
MSI © (90:94) [15:10:06:324]: No window with title could be found for FilesInUse

The contents of the record passed to MsiProcessMessage are valid as far as I can tell, similar to: NULL, "myapp.exe", "MyApp Window Title"

Other than that, the code executes as I would expect. I'm really not sure how to proceed with this, and if anyone has any ideas about this I'd really appreciate the help.


  • Full Members
  • 436 posts

Posted 23 March 2009 - 10:25

Could we respectfully request that you avoid cross-posting between fora? Thank you.
- Don't know why 'x' happened? Want to know why 'y' happened? ProcMon will tell you.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.

Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 27 March 2009 - 10:31

Duplicate post here: http://forum.install...showtopic=19053