Blog

June 13, 2013 – 12:02 pm

2X Software Releases the 2X Java Applet for Web Servers Allowing Users to Access Microsoft Windows Desktops and Applications from Any Java Enabled Browser
DALLAS, TX, June 13th, 2013 — 2X Software, a global leader in …

Read the full story »
News

Latest 2X news, events and press releases

Products & Releases

Info on 2X products, new releases & developments

How To – Tech Library

2X products, VDI, Thin Client Computing and other SBC topics

Sales & Training

2X pre-sales & sales articles, promotions and trainings

Virtualization Blog

2X staff and partners on virtualization topics.

Blog » 2X VirtualDesktopServer, How To - Tech Library, Products & Releases

Deploying a 2X Client Connection with Custom Properties Using Transforms

Submitted by on November 18, 2010 – 9:57 amOne Comment

While simple ways to pass settings to the .msi installer are shown in a previous entry here, there are limitations where these can be used. In this article, I describe how to prepare a transform file and test it for deployment using group policies.

To get started, we need the 2X client and Microsoft’s Orca tool. The 2X Client can be freely downloaded here.

Next, we use the Windows SDK platform, downloadable here.  When installing the platform, be sure to only install the tools shown under the Microsoft Windows Installer SDK option, as shown.

You will find the “ORCA.msi” file under the C:\Program Files\Microsoft Platform SDK\Bin folder. Install this tool, select Next and accept the necessary agreements.

Once Orca is installed, install the 2X Client and begin through the process shown below:

Once the 2X Client is installed, you will be prompted to setup a connection.

Having configured the connection, log on and ensure your connection settings are correct.

Export your settings by choosing File, then Export Settings and save the “.2xc” file.

Once you have saved the “.2xc” file, open the Orca “.msi” editor. You should then see the following window:

We can now open the 2X client “.msi” file:

Once opened, the Orca screen will appear as follows:

A transform is a collection of file changes, similar to recording a macro. We can now change the file’s properties to reflect the alternate settings we want to push, and can use transforms to store the changes.

We now choose to produce a new transform, as shown:

Select the “Property” option on the left pane of the Orca interface:

On the right pane, right click on the bottom row, or elsewhere on the page, and click “Add Row” (this can be done using CTRL + R on the keyboard).

You should now see the “Add Row Interface”; here we can create a new property with the name DEFSETTXML (case sensitive).

Now opening Notepad, we can open the “.2xc” file and select all of the XML contents of the file.

The keyboard shortcut CTRL + A is the safest way to do this. The contents can then be pasted into the value field of the DEFSETTXML property we are creating.

Ensure the full XML contents were pasted (check for the </TuxSettings> closing tag at the end).

Once saved, the changed rows and/or cells are marked as transformed with a green box:

When confident we have embedded the new settings, we must tell the 2X Client to override any settings already in place on the target client; otherwise, local settings will not be overwritten if a previous configuration exists on the client machine. To do this, we set the OVERRIDEUSERSETTINGS value, which is 0 by default, to 1:

Another green box shows the transform has been updated. We can now save the transform to a new file with the “.mst” extension.  To do this, we choose Transform, then Generate Transform, as shown below:

We then save the file:

To test the transform, share both the 2X Client (“.msi”) file and the Microsoft Transformation (“.mst”) on the network. From a target machine, open the command line and type the following:

C:\>msiexec /i “q:\shared\2XClient 8.1.924.msi” TRANSFORMS=”q:\shared\2X Test Connection.mst”

(Replacing q:\shared\2XClient 8.1.924.msi and q:\shared\2X Test Connection.mst with your specific file paths)

This action will install the 2X Client and ask for the password to our saved connection:

This “.mst” file can now be deployed with GPO without touching the original “.msi” file signed by 2X, leaving the signing intact.

To add a transform to application packages when deploying with Group Policies, you must follow these brief steps:

1.       Open Group Policy Software Installation.

2.       In the console tree, right-click Software installation, point to New, and then click Package.

3.       In the Open dialog box, click the Windows Installer package, and then click Open.

4.       In the Deploy Software dialog box, click Advanced, and then click OK.

5.       In the properties dialog box for the package, click the Modifications tab.

6.       To add modifications, click Add. In the Open dialog box, browse to the transform file (“.mst”), and then click Open.

7.       Click OK.

More information regarding this process will be presented in future articles.

One Comment »

  • Bhaskar says:

    Hi,

    why you have executed msiexec command ? is it compulsory to execute it once before deploying through GPO ? so in software deployment i have to add this .mst file to the existing .msi file of 2x client ?

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.