Robert Maijen

Home Tech Articles Citrix XenApp Citrix XenApp 5: Installation on Windows Server 2008 - Member Server

This week a Login Consultants has released their newest tool related to Microsoft App-V. My collegue Peter Nap made it possible to load applications onto an USB device and have them imported into the App-V Client automatically. This is a pretty nifty way of managing and distributing your apps throughout your environment. Go here and register for a free download.

Citrix XenApp 5: Installation on Windows Server 2008 - Member Server
Written by Administrator   
Tuesday, 19 May 2009 14:48

 

 

In this article we are going to install Citrix XenApp 5 on a Windows Server 2008 machine. We are going to create a scripting set that will join this server tho the already created farm in article "xxxxx".

 

Installing Citrix XenApp 5 in the Member role

Pre requirements for Citrix XenApp 5 on Windows 2008 Server are:

  • Windows Server 2008 role "Application Server" installed;
  • Windows Server 2008 application server feature "COM Network Access" installed;
  • Windows Server 2008 role "Terminal Server" installed;
  • Visual C 2005 SP1 installed;
  • J# 2.0 SE installed;
  • Citrix "XenApp Plugin for Hosted Apps" installed;
  • Microsoft hotfix Kb949528 installed;
  • Microsoft hotfix Kb949914 installed;

So before we can install Citrix XenApp 5 on Windows Server 2008 we need to install the pre-requirements. For installation of Windows Server 2008 roles and features we can use the command line utility of Windows Server 2008 called "Servermanagercmd". Therefore we need to create the following scripts;

 

1.   Installing the Pre-requirements

In this section we will create the scripts that will install the pre-requirements for Citrix XenApp 5 on Windows Server 2008. Store these scripts on a centralized network location so you can run these scripts from any server that is going to be installed. Feel free to join any of the scripts together to generate one single script but remember that some components needs a restart!. Most of the pre-requirement script are already created earlier and when stored on a central location can be easily used here.

 

Windows Server 2008 role "Application Server"

Create and store the following script on a centralized network location, for example, called "Install_W2K8_R_ApplicationServer.CMD".

servermanagercmd.exe -install Application-Server

After the installation of the server role "Application Server" you will need to reboot the server.

 

Windows Server 2008 application server feature "COM Network Access"

Create and store the following script on a centralized network location, for example, called "Install_W2K8_F_COMNetworkAccess.CMD".

servermanagercmd.exe -install AS-Ent-Services

 

Windows Server 2008 role "Terminal Server"

Create and store the following script on a centralized network location, for example, called "Install_W2K8_R_TerminalServer.CMD".

servermanagercmd.exe -install TS-Terminal-Server

After installing the Windows Server 2008 role "Terminal Server" you need to reboot the server.

 

Visual C 2005 SP1

To install "Visual C 2005 SP1" we first need to download the source files from the Microsoft website. please use the link "Download". Store the downloaded file on a network location that can be accessed from any server needing the installation. Create and store the following script in the same location:

%~dp0vcredist_x86.exe /q

/q for quiet mode.

 

J# 2.0 SE

To install the J# 2.0 SE use the source from the Citrix XenApp installation media. In the folder "Support\JSharp20_SE" you will find the sourcefile. As we are going to use a network location for the installation files of Citrix XenApp 5 now would be a good time to copy the installation media to this network location and create and store the following script in the source folder of J# 2.0 SE:

%~dp0install.exe /q

/q for quiet mode.

 

Citrix "XenApp Plugin for Hosted Apps" 

To install the Citrix XenApp Plugin for Hosted app we can also use the the network location of the installation media for Citrix XenApp 5. In the subfolder "Clients\ICA32" we can find the installation source for the Plugin. Create and store the follwoing script in the folder:

MSIEXEC /I %dp0XenAppHosted.msi PROGRAM_FOLDERNAME=Citrix INSTALLDIR=%PROGRAMFILES%\Citrix CLIENT_NAME=%COMPUTERNAME% ENABLE_DYNAMIC_CLIENT_NAME=NO ADD_LOCAL=ICA_Client,PN,PN_AGENT,WEB_CLIENT,SSON CLIENT_UPGRADE=YES ENABLE_SSON=YES ALLOW_REBOOT=NO SERVER_LOCATION=%WebInterface% CTX_PN_ENABLE_CUSTOMICA=NO CTX_PN_ENABLE_QUICKLAUNCH=NO

Switches used:

  • Program_Foldername=the location in the users profile to store connections;
  • Installdir=the location where to install the plugin to. In this case C:\Program Files\Citrix;
  • Client_Name=the name of the client from which connections will be made. i always choose the variable %Computername%;
  • Enable_Dynamic_Client_Name=the switch for using dynamic names allowing the client name to be shown;
  • Add_local=the switch to install XenApp Plugin for Hosted Apps components locally. Here we install all features:
    • PN=Program Neighborhood;
    • PN_Agent=Program Neighborhood Agent;
    • Web_Client=WebInterface client;
    • SSON=Install the single sign-on feature.
  • Client_Upgrade=Allow any exisiting client to be upgraded with this installation;
  • Enable_SSON=Enable the single sign-on feature;
  • Allow_Reboot=the switch to set restart to YES or NO;
  • Server_Location=the name of the WebInterface server;
  • CTX_PN_Enable_CustomICA=the switch to have end-users create custom ica connections.;
  • CTX_PN_Enable_QuickLaunch=the switch to set to allow the XenApp Plugin for Hosted Apps shortcut to be published in the Quicklaunch bar of Windows Server 2008.

 

Microsoft Hotfix Installation

To install the required hotfixes we first need to request and download them. Use the links "Kb949528" and "Kb949914". Download and store the hotfixes in a centralized network location and create the following script to install them. Please note that we use the "WUSA.exe" for hotfix installation:

WUSA.exe %~dp0Windows6.0-KB949914-v2-x86.msu /Quiet /Norestart

WUSA.exe %~dp0Windows6.0-KB949528-x86.msu /Quiet /Norestart

Switches used:

/Quiet for silent installation

/Norestart to supress any reboot that might occur

After the installation of the hotfixes the server needs to be rebooted.

 

 

2.   Installing Citrix XenApp 5 for Windows Server 2008

Now that we have installed all the pre-requirements of Citrix XenApp 5 on Windows Server 2008 we can start creating the scripts and files needed for installing Citrix XenApp 5. As we are going to perform a silent installation we will need a preconfigured "MF20.dsn" file that will allow us to connect to the previously created farm.

 

Create a silent DSN file 

Use a pre-configured ".DSN" file to be able to connect to the MS SQL 2005 database. Create a .DSN file and name it MF20.DSN. This is a pre-request for a silent installation of Citrix XenApp 5. Store the file on a network location to be accessed from any server to be installed with Citrix XenApp 5. Preferably in the root of the Citrix XenApp 5 installation source created earlier. The same fil can be used to install an "Member Server".

  • Silent .DSN file (MF20.DSN)

[ODBC]
DRIVER=SQL Server
UID=%SQL User Name%
Trusted_Connection=NO
DATABASE=%DB-Name%
WSID=%COMPUTERNAME%
APP=Citrix IMA
SERVER=%SQL Server%
Description=Citrix Datastore

 

Installation Citrix XenApp 5 for Windows Server 2008

Create and store the following script in the folder for Citrix XenApp 5 installation source. In the same location the silent DSN file will have to be present. Name the file, for example, Install_CTX_5_W2K8_Join.CMD

MSIEXEC /I %~dp0mps.msi INSTALLDIR="%PROGRAMFILES%\Citrix" CTX_MF_FARM_SELECTION=Join CTX_MF_ZONE_NAME=%ZoneName% CTX_MF_CREATE_FARM_DB_CHOICE=Thirdparty CTX_MF_JOIN_FARM_DB_CHOICE=Direct CTX_MF_ODBC_USER_NAME=%SQL_User% CTX_ODBC_PASSWORD=%SQL_User_Password% CTX_MF_ODBC_RE_ENTERED_PASSWORD=%SQL_User_Password% CTX_MF_SILENT_DSNFILE=%~dp0MF20.dsn CTX_MF_SELECTED_DRIVER_NAME="SQL Server" CTX_MF_XML_CHOICE=Seperate CTX_MF_XML_PORT_NUMBER=80 CTX_MF_LIC_CHOICE_FOR_JOIN_OR_UPGRADE=UseFarmSettings CTX_MF_SHADOWING_CHOICE=Yes CTX_MF_SHADOW_PROHIBIT_NO_NOTIFICATION=No CTX_MF_SHADOW_PROHIBIT_NO_LOGGING=No CTX_MF_SHADOW_PROHIBIT_REMOTE_ICA=No CTX_MF_CREATE_REMOTE_DESKTOP_USERS=DoNothing CTX_MF_ADD_ANON_USERS=No CTX_MF_SERVER_TYPE=P CTX_MF_ZONE_NAME=%ZoneName% /QN

Switches used:

  • INSTALLDIR=Installation directory for Citrix XenApp 5. In this example C:\Program Files\Citrix;
  • CTX_MF_FARM_SELECTION=Switch to create or join a Citrix XenApp Farm. In this case we use "Join"; 
  • CTX_MF_ZONE_NAME=Is the zonename that will be created in the farm. Rename %Zonename% with a zonename of your choice;
  • CTX_MF_CREATE_FARM_DB_CHOICE=Is the switch to set a database connection. Citrix supports many but we choose MS SQL and that requires the switch "Thirdparty";
  • CTX_MF_JOIN_FARM_DB_CHOICE=The switch on how to join the farm. As we use a pre-defined .DSN file we can use the switch "Direct";
  • CTX_MF_ODBC_USER_NAME=Is the name of a user with access to the MS SQL 2005 Server. This account needs admin privileges within the SQL Administrator;
  • CTX_ODBC_PASSWORD=Is the password that belongs to the account above;
  • CTX_MF_ODBC_RE_ENTERED_PASSWORD=Is the password that belongs to the account above;
  • CTX_MF_SILENT_DSNFILE=Is the switch to point to the silent DSN file created earlier. If located in the same folder as the installation source for Citrix XenApp 5 then %~dp0MF20.DSN is correct;
  • CTX_MF_SELECTED_DRIVER_NAME=Is the switch to set the connection to MS SQL Server;
  • CTX_MF_XML_CHOICE=Is to set the whether to share the XML settings with the default installation of IIS on the server. Best practice is to set this to "Seperate" but still point to port 80, which is default for the first site;
  • CTX_MF_XML_PORT_NUMBER=Is the switch to point to the IP port number on which Citrix XenApp will try to connect. Port 80 is the default value and should be sufficient;
  • CTX_MF_LIC_CHOICE_FOR_JOIN_OR_UPGRADE=Switch on whether to point to the Citrix XenApp License Server upon join or upgrade. We use the switch "UseFarmSettings";
  • CTX_MF_SHADOWING_CHOICE=Is the switch to set whether or not shadowing of user sessions is allowed;
  • CTX_MF_SHADOW_PROHIBIT_NO_NOTIFICATION=Is the switch whether or not a notification should be presented to end users when their session is going to be shadowed;
  • CTX_MF_SHADOW_PROHIBIT_NO_LOGGING=Is the switch whether or not to create any logging of a shadow session;
  • CTX_MF_SHADOW_PROHIBIT_REMOTE_ICA=NO
  • CTX_MF_CREATE_REMOTE_DESKTOP_USERS=Is the switch to have users added to the group "Remote Desktop Users" as I don't like that Citrix adds users I always set this to "DoNothing" and add users later;
  • CTX_MF_ADD_ANON_USERS=Is the swithc to allow the creation of anonymous users. Always set to "NO";
  • CTX_MF_SERVERTYPE=This is the switch the install the version of Citrix XenApp for which you are licensed. In this case P for Platinum;
  •  CTX_MF_ZONE_NAME=Switch to point to the Citrix XenApp Zone which to server will be added to. Use the default zone as created earlier;
  • /QN=Is the switch to set a really silent installation with no GUI.

This concludes the installation of the Citrix XenApp 5 role Member Server.

Comments

avatar James Olaniyi
0
 
 
Can anybody assist me on how to execute the XenApp Member server script with this parameter "cmd /c Install-join.cmd"
Name *
Email (For verification & Replies)
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Name *
Email (For verification & Replies)
Code