XenApp 6 Unattended Installation

20 Jul

Everybody agrees that the install of XenApp 6 has progressed a lot. Where you needed to complete a long wizard in the near past, now it’s just a matter of a few clicks and your XenApp installation is finished. After that the real work starts when you need to configure your server. However Citrix managed to keep your serverconfig real simpel as well, so it really isn’t a big deal. The same applies to the command line installation. You still need to include a lot of parameters in your script, only this time they’re more logical, and you need less.
So let’s get to do some installation work …………

Prereq’s

Ofcourse you need to do some preconfiguration to make your life easier. For XenApp 6 make sure you install the Remote Desktop Services Role and DotNet 3.5 (you can just install it as a W2K8R2 feature). Then you’re pretty much set to go.

XenApp Command line installation

First you fire up the XenAppSetupConsole.exe command to do some pre-installation work.

XenAppSetupConsole.exe options
XenAppSetupConsole.exe /install:XenApp /Enterprise /logfile:%windir%\temp INSTALLDIR=”D:\Citrix”

You can find the complete command reference in the download section at the bottom of this page. After the setup is done you can configure your server.

XenApp Command line Configuration (Server Role Manager)

Now this is the fun part. With the XenAppConfigConsole.exe tool you’ll configure the role of your server. Keep in mind that when your datastore is on another server (eg. a SQL server) you need to make your connection through ODBC. To do that you need to create a DSN file. I’ll explain how to do this below.

<xenappinstalllocation>\ServerConfig\XenAppConfigConsole.exe options
“C:\Program Files(x86)\Citrix\XenApp\ServerConfig\XenAppConfigConsole.exe”

Example parameters to join a farm with a SQL datastore on a different server (with SQL Authentication)
/LogFileName:%windir%\temp\XenAppConfig.log
/ExecutionMode:Join
/FarmName:<farmname>
/DsnFile:<path_to_dsnfile>
/AuthenticationType:SQL
/ODBCUserName:<SQL Username>
/ODBCPassword:<SQL Password>
/LicenseServerName:<License Server Name>
/LicenseServerPort:<Alternate LicenserverPort>
/ProhibitShadowing:<True|False>
/ProhibitRemoteControl:<True|False>
/ForceShadowPopup:<True|False>
/ForceShadowLogging:<True|False>
/ZoneName:<Zonename>
/AddAnonymousUsersToRemoteDesktopUserGroup:<True|False>
/AddUsersGroupToRemoteDesktopUserGroup:<True|False>
/AddAuthenticatedUserstoRemoteDesktopUserGroup:<True/False>
/AddLocalAdmin:<True|False>
The complete list of parameters are in the downloadsection at the bottom of this page

Create a DSN File
•Open the Data Sources (ODBC) Utility (in Administrative Tools).
•Click File DSN.
•Click Add.
•Choose a driver (eg. SQL Server).
•Choose a location to save your DSN file (.dsn).
•Click Finish.
•Set a description and type in your datastore servername, click next.
•Choose an authentication method and if nessecary type in your username and password, click next.
•Set the default database to the right one, click next.
•Click next.
•Click Finish en test your connection.
•You can now use this DSN file for your unattended install. You’ll find it in your save location.

Categories:

Citrix XenApp 6.x

Comments

  • greenthumb, is saying:

    Your downloads returns 404. 🙁

    Reply this message
    • mark, is saying:

      Thanks for reporting and sorry for the late reply.
      I fixed the broken links.

      Mark

      Reply this message

Leave a Reply