I don't know if there's a better way than this, but you could certainly make
a custom action to do it using WMI. The Win32_Process class lets you see if
there's a process running of a certain name, command line, etc.
('Win32_Product', http://msdn2.microsoft.com/en-us/library/aa394372.aspx)

 

There's plenty of examples available for VBScript, e.g. Microsoft's
Scripting Guy articles
(http://blogs.msdn.com/gstemp/archive/2004/02/13/72505.aspx).

There's not so many examples for C++ and I found using it for WMI had a fair
learning curve at first, whereas with VBScript it's quite easy. Having
mentioned the VBScript temptation, now would be an appropriate time to
insert a reminder of all the experts' warnings to avoid VBScript and use C++
DLLs for custom actions. ('VBScript (and Jscript) MSI CustomActions suck'
http://blogs.msdn.com/robmen/archive/2004/05/20/136530.aspx)

 

 

Daryn

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel Gurney
Sent: Monday, May 21, 2007 2:33 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Is there a WiX element that will perform a
"FindWindow"?

 

I'd like to find out if an application is running.  I don't want to close
the application.  This is more of a boolean action that I am looking for.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to