This page has a good example of enumerating processes and getting the 
executable file names.
http://msdn2.microsoft.com/en-us/library/ms682623.aspx

You would need your Custom Action to read a property from the MSI which 
contained the names to look 
for, and then compare that list against the processes as you go through them.  
You can then do 
whatever it is that needs doing to populate the FilesInUse dialog, or show a 
dialog asking the user 
to close the program.

Rob

Veerendra wrote:
> Rob,
> 
> Could you give some example code (custom action) to workaround for this
> problem.
> 
> Thanks a lot!
> Veerendra
> 
> 
> Rob Hamflett wrote:
>> One of the things required for Windows Installer to put an entry in the
>> FilesInUse dialog is that it 
>>   needs to be able to find a window handle.  This is why the program
>> doesn't appear in the list if 
>> it is in the tray.  I think this might have been sorted out in Windows
>> Installer v4.  You'll need a 
>> custom action to get round the problem.
>>
>> Rob
>>
>> V K Gangwar wrote:
>>> Hello All,
>>>
>>> While my application is running an ICON is displayed in system tray.
>>> When I uninstall my application FilesInUse dialog doesn't tell that 
>>> application is currently running.
>>> But if click the ICON (maximized condition) and then Uninstall the 
>>> application. that time FilesInUse dialog displays properly.
>>>
>>> How I fix this problem.
>>>
>>> Regards,
>>> Veerendra
>>>
>>> ------------------------------------------------------------------------
>>> Yahoo! oneSearch: Finally, mobile search that gives answers 
>>> <http://us.rd.yahoo.com/evt=48252/*http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC>,
>>>  
>>> not web links.
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> WiX-users mailing list
>>> WiX-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to