Dan Giambalvo
2009-02-26 00:41:49 UTC
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
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