Connect with us

Hi, what are you looking for?

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:

DesiredHRES=0
DesiredVRES=0

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:

C:\inetpub\wwwroot\Citrix\XenApp\conf

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

[ApplicationServers]
Application=

[Application]
Launcher=WI
TransportDriver=TCP/IP
DoNotUseDefaultCSL=On
BrowserProtocol=HTTPonTCP
LocHttpBrowserAddress=!
WinStationDriver=ICA 3.0
ProxyTimeout=30000
AutologonAllowed=ON

right after this section, add this:

[Word 2010]
TWIMode=Off
DesiredHRES=1024
DesiredVRES=768

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:

http://support.citrix.com/proddocs/topic/ica-settings/ica-settings-wrapper.html

Hope this helps!

1 Comment

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 *

You May Also Like

Apache

Today I would like to go over proper URL redirection when using SSL but first I would like to preface this by describing what...

Citrix Workspace

You can use FIDO2 hardware security keys plugged into your physical desktop over the Citrix HDX remoting protocol for use with virtualized Windows Desktop...

Exchange 2003

A useful Exchange 2003 guide I wrote for a friend’s blog originally but I am posting it here on mine now for your viewing...

Apache

In a worst case scenario and all your web servers have failed, what do you do? You could have a standby group of servers...

JasonSamuel.com began in 2008 as a way for me to give back to the IT community. This website features the latest news and how-to's on enterprise mobility, security, virtualization, cloud architecture, and other technologies I work with. This website has evolved over time to become a go-to reference hub for these technologies. It receives hundreds of thousands of unique visitors from all over the world each month. More details on the About Me page.
Copyright © 2008-2023 JasonSamuel.com