Create a ica file and automaticly launch an application with it Print E-mail
Written by Hans Straat, Thursday, 30 March 2006

Introduction

This howto will guide you trough the process in how to create a ica file and use it to automaticly launch applications with it.

Create the ica file

To create a ica file of a published application logon to your Citrix Management Console (CMC) and right click on the console > choose create ica file

Create ICA file wizzard

Now you will get the ica creation wizard and can simply configure the connection type. We will show the steps you can edit in the wizard cause a picture always says more then a thousand words.

Well at the first stage you can choose between much or less explaining with the wizard, ofcourse we choose much, the more the better Smile

Create ica file wizzard

With picture 3 we arived at the stage we can setup the screen resolution. I rather go with 95 or even 100% of a current desktop then hardcode the resolution. Also if your bandwith isn't that much choose 16 bits color or lower. the more color the more bandwith consumption is needed!

Specify session settings

The encryption part, well that is easy always choose the highest in 128bits.

Encryption

 Compress data stream would also be a recommandation. Uncrompressed data requires more bandwith.

Specify ICA Compression

If your organisation doesn't require sound turn it off. Sound consumes a huge amount of network bandwith.

Select audio settings

Here you can specify the connection to the tcp/ip + http server. Mind you need a Web Interface (WI) to it.

TCP/IP + HTTP Server

Well enter a name for the to save ica file and a directory to store it. I always keep the name of the published application and store the ica connection simply in the administrator folder of citrix in program files.

Specify ICA File name

You can choose at step 9 to create a html template for the ica file and load it into your WI or on another website that can connect to the citrixfarm. Because we only want to make a ica file we choose NO here.

Create HTML file

The finish with summary.

ICA file summary

How does the ica file look

 

If you open the ica file in notepad you get a result like this.

Were the TcBrowserAddresses are the citrix servers you published the application on.

[WFClient]
Version=2
TcpBrowserAddress=192.168.1.10
TcpBrowserAddress2=192.168.1.11
TcpBrowserAddress3=192.168.1.12
 
[ApplicationServers]
Demo Desktop=
 
[Demo Desktop]
Address=Demo Desktop
InitialProgram=#Demo Desktop
ClientAudio=Off
Compress=On
ScreenPercent=95
DesiredColor=4
TransportDriver=TCP/IP
WinStationDriver=ICA 3.0
EncryptionLevelSession=EncRC5-128
 
[EncRC5-128]
DriverNameWin32=PDC128N.DLL
DriverNameWin16=PDC128W.DLL
 
[Compress]
DriverName=PDCOMP.DLL
DriverNameWin16=PDCOMPW.DLL
DriverNameWin32=PDCOMPN.DLL

 

Insert username, password and domain

But we want to use this ica to automaticly startup and launch so i require a username and password to go with it. Well create a custom ica connection in your program neighborhood and fill in username, password and domain name and save it. Now browse to your appsrv.ini which is located in application data\icaclient of your profile and search for username. As you can see in the appsrv.ini file the password is encrypted. You could try to fill in the password unencrypted but will end up with an error that the server you try to logon to wants the correct password.

[WFClient]
Version=2
TcpBrowserAddress=192.168.1.10
TcpBrowserAddress2=192.168.1.11
TcpBrowserAddress3=192.168.1.12
 
[ApplicationServers]
Demo Desktop=
 
[Demo Desktop]
Address=Demo Desktop
InitialProgram=#Demo Desktop
ClientAudio=Off
Compress=On
ScreenPercent=95
DesiredColor=4
TransportDriver=TCP/IP
WinStationDriver=ICA 3.0
EncryptionLevelSession=EncRC5-128
Username=DEMO
Password=000cbbbc62ad64b065b76fa72ca6
Domain=domain
 
[EncRC5-128]
DriverNameWin32=PDC128N.DLL
DriverNameWin16=PDC128W.DLL
 
[Compress]
DriverName=PDCOMP.DLL
DriverNameWin16=PDCOMPW.DLL
DriverNameWin32=PDCOMPN.DLL

Launching the application automaticly

Well to launch a application automaticly with the ica file extension you need wfica32.exe which is located in Program Files\Citrix\ICA Client or in the location were you installed your citrix client software.

Easiest way I find is write a litle command script (cmd) and launch the application with it.

We wrote a launchprogram.cmd file as you can see here. This script you can place in the startup folder and it will automaticly run. Personally I use this with the shared computer toolkit to create thin and dumb client computers that automaticly launch a monitoring screen.

@echo off
rem **** this script is located were the wfica32.exe file is located                            *****
rem **** the ica file is also in the same location                                                        *****
rem **** If you decide to place the ica file somewere else enter the full path to it   *****
start /min "Launch program" wfica32.exe test.ica

 

Comments
Add NewSearchRSS
Write comment
Name:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 

Powered by JoomlaCommentCopyright (C) 2006 Frantisek Hliva. All rights reserved.Homepage: http://cavo.co.nr/

 
< Prev   Next >