Tuesday, July 07, 2015

AppV5 - Prelaunch Script for Citrix XenApp 6.5 applications with varying environments

We utilize a lot of pre-launch scripts for our AppV5 applications that we use in our Citrix XenApp 6.5 environment.  They become a necessity very quickly as AppV5 stores the executable down a very long path.  Citrix XenApp 6.5 has a maximum launch string of 160 characters and this maximum prevents a lot of applications from working if they require parameters to be passed to them.  An example looks like this:

This launch path is too long for XenApp 6.5.  The string will be truncated and the program will fail to launch properly.   We have several environments that work with the same package files so we set them as variables.  To get this package to launch properly we create a prelaunch script that looks like so:

At this point we set our application to point to this CMD file.

And the application will launch with the shorter string with the ability for us to change the environment and location quickly and easily.

No comments: