Professional Documents
Culture Documents
Introduction .............................................................................................................................
Intended Audience
Related Documents
Terms Glossary
Contacting Support
11
13
14
15
18
Introduction
This document explains how a TRACE32 GUI setup for a PowerDebug / USB device in a Citrix environment
differs from a normal (local) USB installation.
TRACE32 Citrix Virtual Channel communication is currently only available for Windows (32bit and 64bit).
NOTE:
Due to lack of testing facilities, we can currently not officially support TRACE32
Citrix Virtual Channel setups. All information about it and all setup files are provided
as-is, and may or may not work in your environment.
Intended Audience
Administrators and consultants who need to install and/or publish TRACE32 in a Citrix environment.
Related Documents
General TRACE32 installation options are covered in TRACE32 Installation Guide (installation.pdf).
Introduction
Terms Glossary
Citrix Client
Citrix Receiver
Newer name for the Citrix Client (for XenApp and XenDesktop)
Citrix Server
CPS
ICA
ICA Client
USB redirection
Virtual Machine,
VM
XenApp
XenDesktop
XenServer
Citrix product names and terms, e.g. Citrix, CPS, ICA, Citrix Receiver, XenApp, XenDesktop, etc.
are registered trademarks of Citrix Systems, Inc. and its subsidiaries.
Introduction
Contacting Support
LAUTERBACH GmbH
Altlaufstrasse 40
85635 Hoehenkirchen-Siegertsbrunn
Germany
Phone
(+49) 8102-9876-555
Fax
(+49) 8102-9876-187
Internet
http://www.lauterbach.com/tsupport.html or http://www.lauterbach.com/report.html
Here youll find local and special support addresses.
support@lauterbach.com
General support address where your request will be answered within a short time if it is
a basic support request or redirected to the appropriate address.
To generate a system information report, choose TRACE32 > Help > Support > Systeminfo.
NOTE:
Please help to speed up processing of your support request. By filling out the
system information form completely and with correct data, you minimize the
number of additional questions and clarification request e-mails we need to
resolve your problem.
2.
Preferred: click Save to File, and send the system information as an attachment to your e-mail.
3.
Click Save to Clipboard, and then paste the system information into your e-mail.
Introduction
TRACE32 GUI
t32marm.exe (32bit)
//config.t32
PBI=
USB
TRACE32
PowerDebug
USB 2.0
Introduction
Citrix Client
- XenDesktop 5.6
- Windows 7 / 32bit
TRACE32 GUI
t32marm.exe (32bit)
//config.t32
PBI=
USB
network
t32usb.sys TRACE32 USB Driver
TRACE32
PowerDebug
USB 2.0
NOTE:
Introduction
Citrix Client
- XenApp 6.5
- Win 2008 Server R2 / 64bit
TRACE32 GUI
t32marm.exe (32bit)
configuration
(Registry)
//config.t32
PBI=
CITRIX
t32ctxvc.dll
Virtual Channel
Driver
network
wfapi.dll - Citrix Server API
XenApp 6.5
TRACE32
PowerDebug
USB 2.0
Here is an example of a TRACE32 configuration file (config.t32) for use in a Citrix environment:
;Environment Variables
OS=
ID=T32_CTX438
TMP=D:\T32\temp
SYS=D:\T32
HELP=D:\T32\pdf
;Connection to device
PBI=
CITRIX
;Printer Settings:
PRINTER=WINDOWS
Introduction
You can start with a simple USB configuration, and just replace the USB keyword with CITRIX, but please
dont forget the USB device driver:
NOTE:
On the Citrix Client - additionally to the Virtual Channel Driver configuration and
the DLL - you also the TRACE32 Lauterbach PODBUS USB device driver
installed.
Our installer will automatically install it when you select USB or CITRIX.
For manual installation (eg. on a remote client), you have two options:
...for Citrix Receiver to load the plug-in DLL, it needs to be compiled with a specific Citrix Virtual
Channel SDK version. This is why Citrix Receiver for Windows 3.4 will not work with an old
t32ctxvc.dll (built 2007 with VCSDK 2.3). Citrix does not provide a compatibility list (e.g. in Virtual
Channel SDK, up to v13) to indicate which Receiver version matches to which VC SDK version.
2.
...on Windows/64bit, the Citrix Receiver (32bit) configuration location in the registry differs from
Windows/32bit. This is undocumented (e.g. in the Virtual Channel SDK, up to v13).
3.
Introduction
With the Lauterbach TRACE32 installation program (setup.exe from DVD 2013Q2 and later).
2.
With Group Policy Editor (gpedit.msc), with an appropriate policy template file.
3.
With Registry Editor (regedt32.exe), manually making the required entries and changes.
4.
Value:
VCEnable
true,false
Value:
VirtualDriverEx
TRACE32
Value:
DriverName
Unsupported
DriverNameWin16
Unsupported
DriverNameWin32
t32ctxvc.dll
To disable the Virtual Channel Driver, just set VirtualDriverEx to an empty string.
10
NOTE:
The official Citrix Virtual Channel SDK (Version 13 was current in 2013Q1) does
not mention the Citrix Client installation on Windows/64bit.
First you need to copy the TRACE32 Virtual Channel Driver DLL from
%TRACE32_DVD%\files\bin\citrix\vdt32_v13\t32ctxvc.dll
into the Citrix (32bit!) program directory, e.g.
%ProgramFiles(x86)%\Citrix\ICA Client
Info: The matching policy template for the registry keys is vdtrace32-win64.adm.
Enable (Lockdown Profile Setting):
Registry Key:
HKLM
\Software
\Wow6432Node
\Policies
\Citrix
\ICA Client
\Engine
\Lockdown Profiles
\All Regions
\Lockdown
\Virtual Channels
\Thirdparty
\TRACE32
REG_SZ Entry Name:
Value:
VCEnable
true,false
11
Value:
VirtualDriverEx
TRACE32
Value:
DriverName
Unsupported
DriverNameWin16
Unsupported
DriverNameWin32
t32ctxvc.dll
To disable the Virtual Channel Driver, just set VirtualDriverEx to an empty string.
12
2.
In the ICA Client "module.ini" file (in the Citrix program directory), add the VC driver module:
a. In the section "[ICA 3.0]", in the line "VirtualDriver=", append ",Trace32" at the end
b. In the section "[VirtualDriver]", add a line with value "Trace32 ="
c. Add this new section to "module.ini":
;***********************************************
;** Lauterbach Trace32 USB Virtual Driver (VD)
;***********************************************
[Trace32]
DriverName
= Unsupported
DriverNameWin16
= Unsupported
DriverNameWin32
= T32CTXVC.DLL
;***end***
To disable the Virtual Channel Driver, just remove ,TRACE32 from the end of VirtualDriver=.
13
2.
3.
Prompt user Could not find Citrix Receiver installation. For more information, see
<DVD>\files\bin\app_citrix.pdf and END_CITRIX_PHASE
4.
5.
Get registry key [CITRIXBASE]\Install\ICA Client. Read REG_SZ value InstallFolder and set
variable [CITRIXDIR] to it. If the key or the directory [CITRIXDIR] do not exist, continue with #3
6.
7.
8.
9.
10.
11.
12.
13.
END_CITRIX_PHASE
NOTE:
This is only the required minimum. Additional checks may be helpful (e.g. for file
copy success or failure, or if another pre-existing third-party Virtual Channel would
be disabled).
14
The installer contains a manifest to request admin rights for installation, and is MS AuthentiCodesigned with our Class-3 Code Signing Certificate.
This installer only installs the Virtual Channel Driver, the TRACE32 PODBUS USB driver for our
USB devices needs to be installed separately. (Either from DVD, or you can download an installer
from our Lauterbach website.)
The next sections show the relevant NSIS script elements. For sake of brevity, part of the error reporting and
the uninstaller installation (and removal) are omitted.
NOTE:
The NSIS scripting language allows to define the Registry View (32bit or 64bit) for
the installer. If this is defined as SetRegView 32, when installing on
Windows 64bit, all registry settings in HKLM\SOFTWARE are redirected to
HKLM\SOFTWARE\Wow6432Node, making it unnecessary to distinguish between
Windows 32bit/64bit variants.
15
Install section
Section "Install"
StrCpy $R9 "SOFTWARE\Citrix\ICA Client\Engine\Configuration"
SetRegView 32 # set 32bit view for Windows/64bit systems
# read client max version entry
ClearErrors
ReadRegDWORD $R0 HKLM "$R9" "Version Maximum"
IfErrors 0 lbl_found # if key not found -> error
lbl_version:
DetailPrint "ERROR: Citrix Receiver Installation not found"
lbl_abort:
SetDetailsView show
Abort "ERROR: installation failed"
Goto lbl_done
lbl_found:
IntCmp $R0 10000 0 lbl_version 0 # if Client older than v10.0 -> error
# Install file(s)
SetOutPath $INSTDIR
File t32ctxvc.dll
# Register Virtual Channel Driver in Citrix Configuration Store
StrCpy $R1 $R9 "\Advanced\Modules\TRACE32"
WriteRegStr
HKLM "$R1" "DriverNameWin"
"Unsupported"
WriteRegStr
HKLM "$R1" "DriverNameWin16" "Unsupported"
WriteRegStr
HKLM "$R1" "DriverNameWin32" "t32ctxvc.dll"
StrCpy $R2 $R9 "\Advanced\Modules\ICA 3.0"
WriteRegStr
HKLM "$R2" "VirtualDriverEx" "TRACE32"
# Set Lockdown Policy
WriteRegStr
HKLM "SOFTWARE\Policies\Citrix\ICA
Client\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual
Channels\Thirdparty\TRACE32" "VCEnable" "true,false"
IfErrors 0 lbl_unin
DetailPrint "ERROR: Can't write registry entries"
Goto lbl_abort
lbl_unin: # Install the Uninstaller [REMOVED]
lbl_done:
SectionEnd
16
Uninstall section
Section "Uninstall"
SetRegView 32 # set 32bit view for Windows/64bit systems
Delete "$INSTDIR\t32ctxvc.dll"
WriteRegStr
HKLM "SOFTWARE\Citrix\ICA
Client\Engine\Configuration\Advanced\Modules\ICA 3.0" "VirtualDriverEx"
""
DeleteRegKey HKLM "SOFTWARE\Citrix\ICA
Client\Engine\Configuration\Advanced\Modules\TRACE32"
DeleteRegKey HKLM "SOFTWARE\Policies\Citrix\ICA
Client\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual
Channels\Thirdparty\TRACE32"
# Uninstall the Uninstaller[REMOVED]
SectionEnd
Silent Installation
The command line parameter /S switches to silent installation mode:
C:\TEST> t32vcd_setup.exe /S
In silent mode, there will be no output, but these Error Levels are set:
Please note:
The installer contains a manifest to request admin rights for installation, and is MS AuthentiCodesigned with our Class-3 Code Signing Certificate. It might be useful to add the Lauterbach
Certificate to the Trusted Publishers Certificate Store and distribute this to your clients.
The TRACE32 PODBUS USB driver for our USB devices needs to be installed separately.
(The necessary files are on our DVD, or can be downloaded from our website.)
17
Miscellaneous Information
The upcoming XenApp 7.0 release (codename Excalibur) will reportedly support USB redirection.
Using a debugger over a high-latency connection can result in severe performance degradation. If you plan
to use such a setup, please contact support for advice.
18
Miscellaneous Information