Skip to main content

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

AdminStudio 2025 | 29.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.

Script Return CodeValue for the Success Result SettingValue for the Abort Result SettingBehavior of the Application Virtualization Client
0Any value or empty0The Application Virtualization Client silently aborts the application startup.
110 or nullThe Application Virtualization Client proceeds with the next part of the App-V application streaming or launching.
1Null0The Application Virtualization Client proceeds with the next part of the App-V application streaming or launching.
211 or nullThe 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-0000000 n , where n represents the return code of the script. The error code is written to the log file.

See Also

Scripting Settings

Shortcuts View