Skip to main content

CloseApplication element (Util extension)

Closes applications or schedules a reboot if application cannot be closed.

Parents

Bundle, Package, Module, Fragment

Attributes

CloseMessage (wxs:YesNoTypeUnion) : Optionally sends a close message to the application. Default is no.

Condition (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.

Description (String) : Description to show if application is running and needs to be closed.

ElevatedCloseMessage (wxs:YesNoTypeUnion) : Optionally sends a close message to the application from deffered action without impersonation. Default is no.

ElevatedEndSessionMessage (wxs:YesNoTypeUnion) : Sends WM_QUERYENDSESSION then WM_ENDSESSION messages to the application from a deffered action without impersonation. Default is "no".

EndSessionMessage (wxs:YesNoTypeUnion) : Sends WM_QUERYENDSESSION then WM_ENDSESSION messages to the application. Default is "no".

Id (String) : Identifier for the close application (primary key). If the Id is not specified, one will be generated.

PromptToContinue (wxs:YesNoTypeUnion) : 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".

Property (String) : Property to be set if application is still running. Useful for launch conditions or to conditionalize custom UI to ask user to shut down apps.

RebootPrompt (wxs:YesNoTypeUnion) : Optionally prompts for reboot if application is still running. The TerminateProcess attribute must be "no" or not specified if this attribute is "yes". The default is "yes".

Sequence (wxs:Integer) : Optionally orders the applications to be closed.

Target (String, required) : Name of the exectuable to be closed. This should only be the file name.

TerminateProcess (wxs:Integer) : Attempts to terminates process and return the attribute value as the process's exit code if the 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".

Timeout (wxs:Integer) : 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.

Edit the schema for this page