Adding Pre-Launch and Post-Exit Scripts
AdminStudio 2022 | 23.0 | Citrix Assistant
You can choose to include scripts with your profile that must execute either before profile launch or after profile exit in order for your application to run properly. On the Script Execution dialog box, which is opened by clicking Script Execution in the More Options list on the Profile Requirements page, you can view and manage all of the Before Profile Launch and After Profile Exit script files you are including with your Citrix profile.
|
•
|
Files can be marked to run inside or outside of the isolation environment. |
|
•
|
Only files with .exe, .cmd, .com, or .bat extensions are allowed to execute. |
To add a script to your Citrix profile, perform the following steps.
To add a before launch or after exit script to your Citrix profile:
|
1.
|
Open the Profile Requirements page of the Citrix Assistant. |
|
2.
|
In the More Options list, click Script Execution. The Script Execution dialog box opens. |
|
3.
|
Select the Before Profile Launch or After Profile Exit node in the tree. |
|
4.
|
Click Add... The Select Files to Add dialog box opens. |
|
5.
|
Select the script file(s) (.exe, .bat, .cmd, or .com) that you want to add, and click Open. The file is added to the Script Execution tree on under the appropriate node. |
Tip:Use the Shift key to select multiple contiguous files, and use the Ctrl key to select multiple non-contiguous files.
|
6.
|
Select a script in the tree. Several new fields and options are enabled. |
You can now perform any of the following tasks:
|
•
|
Rename the file’s display name—To rename the script file’s display name, click the Rename button and enter a new name. The name that is displayed on this dialog box to identify the script is changed, but the original name of the script file is not changed. |
|
•
|
Select a different script—To select a different script, click the Browse button and select a different script file (.exe, .bat, .cmd, or .com). |
|
•
|
Reorder scripts—If multiple scripts are listed under a node, you can use the Move Up and Move Down buttons to change the order that the scripts will be run. You can also reorder the scripts using the Ctrl+Shift+Up Arrow and Ctrl+Shift+Down Arrow keys. |
|
•
|
Restrict script to isolation environment—If you want this script to only be able to run within the Citrix profile’s isolation environment, select the Restrict this file to the isolation environment option. |
|
•
|
Add command line parameters—To add command line parameters to run along with the script, enter them in the Command line parameters box. |
|
•
|
Delete a script—To delete a script from the profile, select it and click the Delete button. |
|
7.
|
When you have set all desired options for the script, click OK. |