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.
Photo

File In Use dialog


3 replies to this topic

epriya2003

epriya2003
  • Members
  • 22 posts

Posted 21 February 2006 - 08:10

Hi,

In a msi project,

I need File In Use dialog during uninstall, should be shown when
IExplorer.exe is running and/or ODS.exe(Product getting uninstalled) is
running on the system. If ODS.exe is in system tray, then also it should be shown in File in Use dialog.

Right now it is showing default behavior. That is if any installed file is in use with another application, that application is shown in list of File In Use dialog.


Thanks in advance.

Priya


epriya2003

epriya2003
  • Members
  • 22 posts

Posted 21 February 2006 - 15:02

If it is not possible to customize The File In Use dialog, is there any way to add a custom dialog and custom action action to resolve the issue. If yes, any details about how it may be done.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 21 February 2006 - 18:00

It's not customizable and there's no reliable way to get rid of the FilesInUse dialog (unless your setup runs in silent mode)

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 21 February 2006 - 20:24

You can write a Custom Action, schedule it before InstallValidate, and have it show the Files in Use dialog. The custom action should figure out whether the file is indeed in use, call MsiProcessMessage() to display the dialog, and handle it results.
But, as Stefan points out, you cannot prevent InstallValidate to show its own Files in Use dialog. Even getting the list of files is impossible. The end result may be that the dialog is shown twice.