Discussion:
[WiX-users] Adding to the FilesInUse Dialog
Dan Giambalvo
2009-02-26 00:41:49 UTC
Permalink
I'm trying to figure out how to add to my installer's FilesInUse dialog. My Installer contains a custom action that requires a separate exe on the system not be running (firefox.exe.) Obviously I don't install firefox, and I don't touch it in any way obvious to the installer, so it doesn't know to check for it.

What I want is to add firefox.exe to the FilesInUse dialog if it is running when the installer executes. I tried the CloseApplication element that WIX has, but that didn't seem to populate the FIU dialog, and instead simply made my installer request reboots. I then found some posts that referenced sending a INSTALLMESSAGE_FILESINUSE message from a custom action, but this resulted in two dialogs. The first contained my custom firefox request, and had exit/ignore/retry buttons. The second contained a file actually referenced in my MSI, and this had the correct "Close Applications" button.

I have also looked into trying to directly modify the temporary FilesInUse table, but from what I read this isn't actually doable. Does anyone have any idea how I can get my file added to the FilesInUse dialog?

Thanks!
-Dan
Kamil Mierzejewski
2009-02-26 09:16:01 UTC
Permalink
It is only possible under Windows Vista.

details in my comment here:

http://sourceforge.net/tracker/?func=detail&atid=642717&aid=1989218&group_id=105970
Post by Dan Giambalvo
I'm trying to figure out how to add to my installer's FilesInUse
dialog. My Installer contains a custom action that requires a
separate exe on the system not be running (firefox.exe.) Obviously I
don't install firefox, and I don't touch it in any way obvious to the
installer, so it doesn't know to check for it.
What I want is to add firefox.exe to the FilesInUse dialog if it is
running when the installer executes. I tried the CloseApplication
element that WIX has, but that didn't seem to populate the FIU
dialog, and instead simply made my installer request reboots. I then
found some posts that referenced sending a INSTALLMESSAGE_FILESINUSE
message from a custom action, but this resulted in two dialogs. The
first contained my custom firefox request, and had exit/ignore/retry
buttons. The second contained a file actually referenced in my MSI,
and this had the correct "Close Applications" button.
I have also looked into trying to directly modify the temporary
FilesInUse table, but from what I read this isn't actually doable.
Does anyone have any idea how I can get my file added to the
FilesInUse dialog?
Thanks! -Dan
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
Post by Dan Giambalvo
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise -Strategies to boost innovation and cut costs with open
source participation -Receive a $600 discount off the registration
fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
_______________________________________________ WiX-users mailing
https://lists.sourceforge.net/lists/listinfo/wix-users .
Loading...