Skip to main content
Version: v3

CloseApplication Element (Util Extension)

Description
Closes applications or schedules a reboot if application cannot be closed.
Windows Installer references
None
Parents
Fragment, Module, Product
Inner Text (xs:string)
Condition that determines if the application should be closed. Must be blank or evaluate to true for the application to be scheduled for closing.
Children
None
Attributes
NameTypeDescriptionRequired
CloseMessageYesNoTypeOptionally sends a close message to the application. Default is no. 
DescriptionStringDescription to show if application is running and needs to be closed. 
ElevatedCloseMessageYesNoTypeOptionally sends a close message to the application from deffered action without impersonation. Default is no. 
ElevatedEndSessionMessageYesNoTypeSends WM_QUERYENDSESSION then WM_ENDSESSION messages to the application from a deffered action without impersonation. Default is "no". 
EndSessionMessageYesNoTypeSends WM_QUERYENDSESSION then WM_ENDSESSION messages to the application. Default is "no". 
IdStringIdentifier for the close application (primary key). If the Id is not specified, one will be generated. 
PromptToContinueYesNoType When this attribute is set to "yes", the user will be prompted when the application is still running. The Description attribute must contain the message to display in the prompt. The prompt occurs before executing any of the other options and gives the options to "Abort", "Retry", or "Ignore". Abort will cancel the install. Retry will attempt the check again and if the application is still running, prompt again. "Ignore" will continue and execute any other options set on the CloseApplication element. The default is "no".  
PropertyStringProperty to be set if application is still running. Useful for launch conditions or to conditionalize custom UI to ask user to shut down apps. 
RebootPromptYesNoTypeOptionally prompts for reboot if application is still running. The default is "yes". The TerminateProcess attribute must be "no" or not specified if this attribute is "yes". 
SequenceIntegerOptionally orders the applications to be closed. 
TargetStringName of the exectuable to be closed. This should only be the file name.Yes
TerminateProcessInteger Attempts to terminates process and return the specified exit code if application is still running after sending any requested close and/or end session messages. If this attribute is specified, the RebootPrompt attribute must be "no". The default is "no".  
TimeoutInteger Optional time in seconds to wait for the application to exit after the close and/or end session messages. If the application is still running after the timeout then the RebootPrompt or TerminateProcess attributes will be considered. The default value is "5" seconds.  
See Also
Util Schema