cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mrspreadsheet
Level 4

How to determine if Excel.exe is running?

Hi

How do I determine if Excel.exe is running? I want to exit the install if the process is started.

For time being, I don't want to offer the user the option of terminating the process, I am just exiting setup on detection.

Thanks
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

What kind of project are you using? For MSI, for example, one possibility is to locate excel.exe with a system search, and then use an InstallScript custom action that uses Is(FILE_LOCKED, ...) with the file to determine if the executable is running...
0 Kudos
DLee65
Level 13

See the attached ZIP file for information on checking for a specific process. The ProcessRunning function will provide what you need.


if (ProcessRunning ("Excel")) then
abort;
endif;
0 Kudos
mrspreadsheet
Level 4

Thanks Dan, it's working like a charm!
0 Kudos