Citrix XenApp

How to force a Citrix XenApp application to open in a custom size window


With newer versions of XenApp (6.x on up) and Citrix Receiver, multi-monitor support is great and works as expected. But if your environment still has some PCs with legacy Citrix Online plugins (less than 12.x), you might get unexpected behavior like an application launching and stretching across both monitors. You can try going to AppCenter and setting the session size of your application under Appearance but it probably won’t work depending on your plugin version. With older versions of XenApp and Presentation Server, there were a ton of multi-monitor configuration registry flags Citrix made available that you could use to manipulate the size and location of the application. These flags no longer work in XenApp 6.x and up. To verify your problem, go to your web interface and launch your application while doing a packet capture. You’ll notice something like:


in the portion of the TCP stream with the ICA file being generated and pulled down from the web interface. You need to override this. So the work around is to go to your Web Interface to the following path:


and open the default.ica file. You’ll see a section like this:


WinStationDriver=ICA 3.0

right after this section, add this:

[Word 2010]

where the name of your application is in the bracket exactly as you publish it in AppCenter (it is case sensitive). In my example, I am publishing “Word 2010”. The switches above mean the following:

TWIMode – disable seamless mode (so there is a box around the application)
DesiredHRES – horizontal size
DesiredVRES – vertical size

You don’t have to disable seamless mode but I did in this example since my user wanted it for a specific reason. You can pretty much set any ICA setting you need for an application this way without impacting all the applications in your farm. Here is a full list of ICA Settings from Citrix:

Hope this helps!

About Jason Samuel

Jason Samuel lives in Houston, TX with a primary focus on strategic advisory and architecture of end-user computing, security, enterprise mobility, virtualization, and cloud technologies from Citrix, Microsoft, & VMware. He also has an extensive background in web architecture and networking over his 20+ year career in IT. He is an Author, Speaker, and Local User Group Community Leader. He is certified in several technologies and is 1 of 63 people globally that is a recipient of the prestigious Citrix Technology Professional (CTP) award. He is 1 of 42 people in the world that has been awarded as a VMware EUC Champion and VMware vExpert. He is a featured author on DABCC which provides the latest IT Community News on Cloud, Data Center, Desktop, Mobility, Security, Storage, & Virtualization. In his spare time Jason enjoys writing how-to articles and evangelizing the technologies he works with. Disclaimer: The content and opinions expressed in articles and posts are his own and are by no means associated with his employer.

Recommended for you

1 Comment

  1. Sam

    June 23, 2014 at 10:53 AM

    Hello Jason,

    following your article on “How to force a Citrix XenApp application to open in a custom size window” i have for the last 7 days been trying to get an application to open on launch and take about 70 % og my screen (seamless). I have googled and tried everything but it always opens 100% (full screen) when i change TWIMode=Off it opens in a window as expected but I want it in a seamless window. Also when it opens in a window and i doubleclick it reverts back to full screen. Environment is windows 2008 r2 Xenapp 6.5 with web interface 5.4. I dont know what is wrong and will appreciate your expertise. The application is system center 2012 – service manager. Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *