Causing the App-V Application to Close After a Script Failure

AdminStudio 2022 | 23.0 | Virtual Package Editor

If you have added a script that you want to be run for your App-V package, you can also specify the conditions under which the App-V package should be closed or the App-V package streaming should be stopped.

Note:If you specify Post-shutdown for the Event setting of the script, any values that you specify for the Success Result setting and the Abort Result setting are ignored.

To specify success and abort behavior for a script in your App-V package:

1. In the View List under Application Data, click Shortcuts.
2. In the Targets explorer, click the script that you want to configure.
3. Enter the appropriate value in the Success Result setting or the Abort Result setting, as appropriate.

Note:In some versions of App-V, unexpected results could occur if you specify values for both the Success Result setting and the Abort Result setting.

Client Behavior for Various App-V Package Settings and Script Return Codes

Script Return Code

Value for the Success Result Setting

Value for the Abort Result Setting

Behavior of the Application Virtualization Client

0

Any value or empty

0

The Application Virtualization Client silently aborts the application startup.

1

1

0 or null

The Application Virtualization Client proceeds with the next part of the App-V application streaming or launching.

1

Null

0

The Application Virtualization Client proceeds with the next part of the App-V application streaming or launching.

2

1

1 or null

The Application Virtualization Client fails to stream the package or start the application, and it displays an error message. The message includes an error code in the format of xxxxxx-xxxxxx18-0000000n, where n represents the return code of the script. The error code is written to the log file.

See Also