I'm working with InstallAware Studio and I'm attempting to check to see if Excel is running, and if it is, to close it. I'm using your Check for Process command to do so, and I'm referring to your documentation found here: http://www.installaware.com/FlashHelp/checkprocess.htm.
However, I'm unable to reproduce your example using Windows Explorer. Here's my code:
Code: Select all
Comment: Check to see if Excel is open or not
Set Variable excelIsOpen to True
Set Variable dialogResult to
Check for Process "excel.exe", get result into variable excelIsOpen
if Variable excelIsOpen Equals True
MessageBox: Close Excel, The installer has determined that Microsoft Excel is currently running and must be closed before continuing.$NEWLINE$$NEWLINE$Click OK to close Excel or Cancel to exit the installer.
if Variable dialogResult Equals OK
Terminate Program Excel
else
Terminate Installation
end
end
No matter what, I can't get excelIsOpen to be True. Is there a bug with Check for Process, or am I missing something else?
Many thanks,
Kurt Kroeker