Showing posts with label Streaming. Show all posts
Showing posts with label Streaming. Show all posts

Monday, 20 December 2010

Streaming Firefox 3.6 on XenApp 6

This appears to be a surprisingly simple app to stream on XenApp – so far.  My one criticism is that its not very obvious how to customise the application, but after a bit of research it wasn’t too hard.

I’m assuming here you want to turn off any updates (its a stream, so you will need to re-stream it to apply any updates – which given the amount of bugs that are discovered in Firefox is a good idea to do on a regular basis) and you probably want to stop it being the default browser on your systems.  After all, if you DO want it to be the default browser, you are probably not going to stream it – just install it on your XenApp servers properly.

Preparation – getting the files to configure

Step one is to download the latest installer from http://www.mozilla.org/firefox/.  Install it to a PC manually and have it ready to use on your streaming profiler.

Make a copy of this file to edit… C:\Program Files\Mozilla Firefox\defaults\pref\firefox.js
Remember on a 64-bit system this will appear in c:\program files (x86)…

Also get a copy of C:\Program Files\Mozilla Firefox\components\nsBrowserGlue.js

Finally, create a new text file called override.ini.

Put these three text files and the installer together and prepare them before streaming.  Use Notepad++ instead of Notepad so it shows the line breaks properly.

Preparation – disabling the default browser check

Open your firefox.js file in Notepad++ – search for the phrase “checkDefaultBrowser” and change “true” to “false”

pref("browser.shell.checkDefaultBrowser", false);

Preparation – disabling updates

Still editing firefox.js in Notepad++, search for “update”.  Find these lines and change “true” to “false”

pref("browser.search.update", false);

pref("app.update.enabled", false);

pref("extensions.update.enabled", false);

Preparation – pre-configure Proxy settings

Assuming you want to specify Proxy settings, search for “share_proxy_settings” in firefox.js.  Change “true” to “false”

pref("network.proxy.share_proxy_settings",  true);

You now should now add in a load of lines (assuming they are not already in the file) for your proxy settings.  These are just examples – obviously put in your own settings for proxy server address, port and exceptions:

pref("network.proxy.ftp", "192.168.1.10");
pref("network.proxy.ftp_port", 80);
pref("network.proxy.gopher", "192.168.1.10");
pref("network.proxy.gopher_port", 80);
pref("network.proxy.http", "192.168.1.10");
pref("network.proxy.http_port", 80);
pref("network.proxy.socks", "192.168.1.10");
pref("network.proxy.socks_port", 80);
pref("network.proxy.ssl", "192.168.1.10");
pref("network.proxy.ssl_port", 80);
pref("network.proxy.type", 1);
pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 192.168.0.0/16");

Preparation – prevent the annoying “Welcome to Firefox version 3.6” home page tab for new users.

By default a user in Citrix running Firefox will see an extra tab when they open it for the first time with a page extolling the virtues of the new version they just installed.  This is not needed!  Add this line to the firefox.js file:

pref("browser.startup.homepage_override.mstone", "ignore");

Preparation – getting rid of the “Do you want to save your tabs” dialog on closing Firefox

You probably want to just want your users to open their home page next time you open the browser, so the functionality to open their old tabs is not needed.  Find and amend these lines in firefox.js to stop these messages:

pref("browser.tabs.warnOnClose", false);
pref("browser.tabs.warnOnOpen", false);
pref("browser.warnOnQuit", true);

// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session
// The behavior of option 3 is detailed at:
http://wiki.mozilla.org/Session_Restore
pref("browser.startup.page",                1);

Preparation – preventing the “Know your rights” button appearing

By default when you open Firefox it will keep producing a bar under the tabs list with a button called “Know your rights” and some text telling you that this is open source software.  Very annoying, but easy to suppress. 

Edit C:\Program Files\Mozilla Firefox\components\nsBrowserGlue.js in Notepad++ – remove or comment (with “//”) the line:

var rightsBundle = this._bundleService.createBundle("chrome://global/locale/aboutRights.properties");

Preparation – prevent the “Import your settings data data” wizard

The final annoyance, this wizard is launched the first time you open Firefox and isn’t useful in a Citrix environment.  Edit the blank text file called override.ini and add these lines:

[XRE]
EnableProfileMigrator=false

Streaming Firefox

Now you have your installer and your three modified text files (override.ini, firefox.js and nsBrowserGlue.js), install is easy…

  1. Open the Citrix Streaming Profiler on your profiler machine.  If you are streaming this to Stream To Server on XenApp 6, this should be a Windows Server 2008 R2 machine
  2. Create a new profile
  3. Click Next until you get to the Quick or Advanced Install option – choose Advanced
  4. Click Next and Next to run an install program
  5. Browse to your Firefox installer and select it.  Click next and Launch Installer.
    image
    image
  6. Click Next, Custom, and keep pressing Next until you get to the default web browser checkbox-  uncheck it so its not the default.
    image
  7. Click Next to install.  Untick the box to Launch Firefox Now and click Finish
  8. Click Next and Perform Additional Installations
  9. Click Select files and folders and click Next
  10. On the left hand side browse to the text files you edited earlier
    image
  11. Copy firefox.js into the profile at “C:\Program Files (x86)\Mozilla Firefox\defaults\pref”, overwriting the existing file
  12. Copy nsBrowserGlue.js into the profile at “C:\Program Files (x86)\Mozilla Firefox\components”, again overwriting the existing file
  13. Copy override.ini into the profile at “C:\Program Files (x86)\Mozilla Firefox\” – this should be a new file
  14. Click Next and Finish Installations
  15. Click Next and run Firefox.  You should now be able to check the settings you specified above on updates, default browser, wizards, etc – it should all be pre-configured if the files are right.
  16. Close Firefox and click Next.
  17. You can probably delete the entry for “Mozilla Firefox (Safe Mode)
    image
  18. Click Next and Finish, then save your profile on a network location.
  19. Publish an application to your farm, streamed from the profile you just saved – you should get a nice, clean, pre-configured browser.

Wednesday, 22 September 2010

Load Testing Outlook 2010 on XenApp – Hosted vs. Streamed to Server

After this initial test comparing the performance of Word 2010 Hosted against Streamed to Server on XenApp 6 showed some considerable advantages to using locally installed Office 2010 instead of Streaming it, I stepped up my testing and included Outlook 2010 instead.  The test was more intensive, moving between the different screens of Outlook (Inbox, Tasks, Contacts, etc) and creating and deleting items. 

Again, I set up EdgeSight for Load Testing to run 50 users on a single server – logging in at the rate of one every 20 seconds, staying logged in and “working” for 10 minutes and then all logging out in 3 minutes.  They once again looked nice when they were all logged in…

image

Outlook 2010 Hosted

Outlook 2010 performed very well on XenApp 6 when installed locally.  CPU time was quite acceptable throughout the test, being quite close to the performance of Word 2010 at the same load.  Memory usage was slightly higher than Word 2010, being about 7gb. 

image

Outlook 2010 Streamed to Server

Streaming added a couple of issues to the performance of Outlook 2010.  Firstly, the logon phase involved far more CPU activity, being flat at 100% for about the last three minutes.  CPU usage then remained very high through the phase of the test where Outlook was looping through simulated user activity, before dropping off nicely at the end of the test as the users logged off.  Memory usage was more worrying.  Its not that it was much higher than hosted – it was higher, though not substantially so.  The worrying part was that it increased through the 10 minutes after logons stopped as each OUTLOOK.EXE process slowly ate more RAM.  The Hosted Outlook processes did not behave in this way.  We tried this again over a much longer period with more users and this continued, Outlook using ever more memory until being logged off

image

Conclusion

This test was more conclusive than the Word 2010 test, with far more gap between Outlook 2010 when Hosted and when Streamed to Server.  Performance of the application when open did appear to be roughly the same, but with logon time more than double for the streamed application, this is not enough to justify streaming.  The higher CPU usage after logons stopped would indicate using Streaming to Server would reduce the number of active user sessions the server could support quite substantially and on this hardware could not be recommended.

Load Testing Word 2010 on XenApp – Hosted vs. Streamed to Server

As part of a decision on how to present Office 2010 to our XenApp 6 farm we benchmarked Office applications as Streamed and Hosted applications.  When we tried this on XenApp 5 with Office 2007 the difference between the two did not seem very great – this time around the Streaming version seems to put on some considerable load.

With each test we logged on 50 users in 16 minutes (one logon every 20 seconds) and ran them for 10 minutes, typing random text Word.  They then all logged out over a 3 minute period.  They look very pretty when they’re all running:

image

Word 2010 Hosted

The locally installed on the server version of Word 2010 performed very well.  It easily handled logins every 20 seconds with the CPU (on a medium spec dual processor server) at about 30% in the logon phase, 15% when all the users were logged in and a peak of over 50% during the rather rapid logoff. Memory usage peaked at about 6gb

image

Word 2010 Streamed To Server

The second test was using the same hardware, users and script as the first – but this time Word was streamed to the server.  The difference was apparent from the first login, which took a lot longer – about 25-30 seconds, almost double the Hosted logon time.  CPU usage was consistently 10-15% higher in the initial logon phase and then built alarmingly as the user count reached 50.  It then dropped off very nicely once the users were logged in.  Memory usage was higher, peaking at about 7gb.

image

Conclusions

Overall the Hosted version performed very much better than the Streamed to Server version with Word 2010.  As you might expect, most of the difference was in the logon phase, where CPU activity was much lower on the hosted version.  Logon times were also longer using Streaming, by at least 15 seconds.  This makes sense as the Streamed to Server version has a bit more work to do creating the Sandbox environment.  The lower memory footprint of the Hosted install overall might also mean that greater user density would be possible using Word 2010 installed directly on the servers.

However, the Streamed to Server version did have lower CPU usage in the later phases, so this test might be considered more even, depending on the pattern of your logons and logoffs.  It must be said that the test did not make an effort to push Word in this middle phase, it was just some light typing.  A more intensive test might show more difference at this point.

This test was conducted using v6 of the streaming client and profiler and XenApp 6 running on Windows Server 2008 R2 on a single dual core server with 12gb RAM.  The test was performed with EdgeSight for Load Testing v3.7.

Thursday, 22 July 2010

UPDATED: Profiling Office 2010, Visio 2010 and Project 2010 for XenApp Streaming

This is a fully working and tested guide to streaming Office 2010 to XenApp 6 (streamed to server), activating with a KMS server. 

It has taken me a couple of months on and off messing about with getting Office 2010 applications to stream on XenApp 6, with all the problems coming from the Office Software Protection Platform service that Office uses to activate now.  The problems I was having were not with the capturing of the stream (as you might assume) but with the setup of the XenApp servers to host the stream.

So, this guide should work – providing you are activating with a KMS server rather than MAK keys, which I am afraid I have not tried. 

NEW - Install a KMS server

The installation of your Key Management Server to activate Office 2010 isn’t something I am going to cover and many people will want to use MAK keys, but for this guide to work you should have KMS server.  Check you can actually install the apps you want to stream on a PC and that they activate (go to File > Help to see if they are activated – you should also see events in the KMS server’s event log)

NEW – Install a fresh XenApp Server

If you have previously tried and failed to stream Office 2010 to a XenApp server, just rebuild it.  Same if you have EVER installed any Office 2010 products (including Outlook, Project and Visio 2010) to that server.  Flatten it.  It should be a server that has never activated an Office product, or tried.

NEW – Use the Office 2010 Deployment tool for App-v

Yes, I know you’re not using app-v.  Just do it, it is essential if you ever want to host more than one SKU on this server.  So you might not need to do this if you are only going to use the main Office media, but be aware that the Outlook 2010 standalone media, Project 2010 or Visio 2010 won’t stream to it. 

Download the tool from:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=479f12f2-5678-493e-bce1-682b3ece5431

There are instructions on how to use it here:

http://support.microsoft.com/kb/983462

For instance, if you were to want to host Office Professional Plus 2010 and Project Professional 2010, extract the main download (the x64 one for Server 2008 R2) and run this command on the extracted files:

msiexec /i OffVirt.msi PROPLUS=1 OUTLOOK=1 PROJECTPRO=1

You should see a couple of events on the KMS server almost immediately containing the name of the new XenApp server.  The main problem is that after a reboot this will stop working, so if you are going to use this app to activate your servers with the KMS for Office licenses you should put this command in a startup script for the server.

If someone else has a better way of keeping these applications activated I would love to hear it!

Add the AppHubWhiteList entry to the XenApp server’s registry

If you will not sign your profile, you will need to add a registry key fix in order for the service that is a necessary part of the product’s activation system to work.

For details on this registry fix see this: http://community.citrix.com/x/RQLUBw

Basically, you have to create a REG_SZ registry value at HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Rade called AppHubWhiteList containing a list of the names of the file servers your streams will be served from, separated by semicolons if needed.

Install a profiler

  • Install a Profiler machine.  This should be the same OS as the one you are going to stream to. 
    • This needs to be at least v6 of the Streaming Profiler, the version that ships with XenApp 6.  Microsoft Office 2010 includes Services that will not work with previous versions of the Profiler.
    • If using Streamed To Server in XenApp 6, it should be a Windows Server 2008 R2 server and ideally be an member of the XenApp 6 farm (but don’t publish apps to it…)
    • It should not have the streaming client installed. 
    • The Streaming Profiler can be downloaded from My Citrix or from the XenApp 6 DVD.

Run the Microsoft Office Customization Tool

  • Copy the installer to your Profiler
  • Run setup.exe with the /admin switch (so if it is in c:\office14, click Start > Run > “c:\office14\setup.exe /admin”)
  • The Customization Tool should launch.  Pick your product edition or select an existing customization file if you’ve been here before and are making changes:

image

  • You get a popup about the OpenDocument file format.  What you choose here might depend on your company policy.  I selected Keep current settings but will look at the settings later.

image

  • On the left hand side, select “Install Location and Organization Name” in the Setup section.  Enter your company name.

image

  • Select “Licensing and user interface”.  Enter your MAK key if you are using one, otherwise select “Use KMS Client key”.  Accept the license agreement, select “Basic” and “Suppress modal”.

image

  • Click Features > Modify User Settings.  There are loads of settings here!  This is a screenshot of my completed settings (with “show configured settings only” selected"), the actual settings are below.  Look through the other settings, there may be other things you need.
    • Microsoft Office 2010 > Global Options > User Clear Type (enabled, set to “Office will use ClearType for text display”)
    • Microsoft Office 2010 > Global Options > Customize > Menu animations (disabled)
    • Microsoft Office 2010 > Tools | Autocorrect Options > Correct Two Initial Capitals (enabled)
    • Microsoft Office 2010 > Tools | Autocorrect Options > Capitalize first letter of sentence (enabled)
    • Microsoft Office 2010 > Tools | Autocorrect Options > Capitalize names of days (enabled)
    • Microsoft Office 2010 > Tools | Autocorrect Options > Correct accidental use of Caps Lock key (enabled)
    • Microsoft Office 2010 > Help > Office.com (disabled)
    • Microsoft Office 2010 > Privacy > Trust Center > Disable Opt-in Wizard on first run (enabled)
    • Microsoft Office 2010 > Privacy > Trust Center > Enable Customer Experience Improvement Program (disabled)
    • Microsoft Office 2010 > Privacy > Trust Center > Automatically receive small updates to improve reliability (disabled)
    • Microsoft Office 2010 > Language Settings > Primary Editing Language (enabled – choose your language!)
    • Microsoft Office 2010 > Services > Fax > Disable Internet Fax Feature (enabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > Cached Exchange Mode > Cached Exchange Mode (File | Cached Exchange Mode) (disabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > Cached Exchange Mode > Use Cached Exchange Mode for new and existing Outlook profiles (disabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > RSS Feeds > Turn off RSS feature (enabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > RSS Feeds > Default RSS feeds (disabled)
    • Microsoft Outlook 2010 > Account Settings > Exchange > SharePoint Lists > Default SharePoint lists (disabled)
    • Microsoft Outlook 2010 > Outlook Today Settings > Outlook Today availability (disabled)
    • Microsoft Outlook 2010 > Outlook Social Connector > Turn off Outlook Social Connector (enabled)
    • Microsoft Outlook 2010 > Outlook Options > Other > AutoArchive > Disable File|Archive (enabled)
    • Microsoft Outlook 2010 > Outlook Options > Other > AutoArchive > AutoArchive Settings (disabled)

 

  • Click Features > Set Feature Installation States.  For any Office applications you do not need, click the grey box by the application and select Not Available.  In my case, Access, OneNote, InfoPath and Publisher are not required.  For everything else, set them to run all from the computer.
  • Click Additional Content > Add Registry Entries.  Add the entries below (change the server name and port to the actual name and port of your KMS server.  If you don’t use a KMS server, you don’t need those). The ShowOptIn is a REG_DWORD, the PONT_STRING is a REG_SZ. 

image

  • Click Outlook > Outlook Profile (this is assuming you are using Microsoft Exchange and want to auto configure accounts)
    • Select Modify Profile
    • Click Add accounts
    • Select “Customize additional Outlook profile and account information”
    • Click Add
    • Enter something for Account Name (like “exchange”)
    • Enter an Exchange server
    • Leave User Name as %username%
    • Click More Settings
    • Click Cached Mode
    • Click Configure Cached Exchange Mode.
    • If you are going to disable Cached Exchange Mode on the XenApp servers (I would – but maybe not if streamed Offline to client PCs), leave this as is.  Otherwise, click the “User Cached Exchange Mode” checkbox.

image

    • Click OK and Finish.
  • Click File > Save As and save it to the Updates folder within your Office 2010 installer folder.  Give it a name starting with a “1” so it always installs before other updates you may put here in the future.
  • Close the Customization Tool and confirm.

Profiling

  • Open the Streaming Profiler and click New Profile.
  • Click Next and give it a name (it can be changed later, but I would include a date or profile version number when saving it)
  • Click Next and do not Enable User Updates
  • Link Profiles if you wish – up to you.  It can be changed later as well.
  • Click Next past the Operating System screen, assuming the OS you want is selected.  Best practice is to have a new stream for every client you are streaming to – which if you are streaming to server is nice and easy as its just one OS to support. Assuming you are streaming to server and you are using the same OS as the servers you are streaming to, just click Next.
  • Choose Advanced Install
  • Select Run install program or command line script
  • Find and select Setup.exe in your Office14 folder
  • Click Next and Launch Installer
  • Click Customize and you should see any options you disabled (such as Microsoft Access) in the customization as disabled.  This is a good easy way of double checking your customization has been picked up okay.
  • Click Install Now.
  • Installation takes some time…

image

  • Click Close at the end of the install, then Next.
  • Click Next to Finish Installations if you have nothing else you know needs doing to your profile.  In this basic guide, we’re now done.
  • Run some of your key applications to check they perform as needed but DON’T run Outlook.  I’ve seen this cause everyone to get the same mailbox!
  • Click next and remove any shortcuts you don’t want.  This is a good place to add any switches you want to your applications, for example Outlook to configure it with a prf file.  Delete any shortcuts you will not use.
  • Click next (terminating applications if needed) until you get to the end, then click Finish to build the profile.
  • Save the profile to a file share – you will need at least about 1.75gb free to do this.

Publishing Applications

  • You should now be able to set up application shortcuts on your XenApp 6 farm
  • Run the Citrix Delivery Services Console (installed by default on a farm server)
  • Run Discovery as needed.
  • Expand your farm and right click Applications, click Publish Application
  • Enter Word 2010 as the name and click Next
  • Change the drop-down to Streamed To Server and click next
  • Locate the folder you saved the profile to and double click its .profile file.
  • Select Microsoft Word 2010 in the drop down and Next
  • Click Add to add servers.  Click next when done.
  • Click Add to add users.  Click Next when done.
  • Enter a folder for the shortcuts if needed.
  • Click Next and Finish.
  • If you now right click the new application and select Duplicate Application you can create copies.  With these, right click each one and select Application Properties.  In the Name and Location sections, rename them to Excel 2010, Outlook 2010, etc and change the dropdown to the right application.

Running the profile

Once you have your Profile, create a new application (Streamed to server in this example), pointing at your XenApp server and use the stream you just made.

Before you launch them for the first time, remember to check the AppHubWhiteList reg key (see above) is there and right, unless you signed the profile.  Also check you have used the Office 2010 Deployment Tool for app-v on it if you want to stream multiple SKUs to the server.  It should ideally be activated for Office 2010 on the KMS before your stream ever runs.

When you launch them for the first time you should see a new service start with some random characters at the start, like q2qwerqfq-osppsvc.  That’s the streamed service, and it should be running when your apps are.  Multiple logons will create multiple services. 

When they are launched, you should not see Setup continuing (that’s it trying to activate), it should just load the application.  You should also be able to go to File > Help and see those lovely words, Product Activated…

image

Friday, 18 June 2010

XenApp 6 – Streaming Acrobat Reader 9.3

This is a guide of creating a Stream for Acrobat Reader 9.3 for a XenApp 6 farm.  Its assuming you want to Stream To Server – if you need to stream to client the process is very much the same, except you would do it from a profiler running your Client OS.  This is assuming you are using a Windows Server 2008 R2 server to capture the server stream.

  • Download the .exe from the Adobe site.
  • Run the install and leave it on the following screen:

image

  • Go to this folder (assuming you are on a Windows Server 2008, Vista or 7 PC):
    ”%userprofile%\AppData\Local\Adobe\Reader 9.3\Setup Files”
  • Copy these files out somewhere and cancel the install.  Delete the original exe, you don't need it now.
  • Download Orca: http://www.softpedia.com/get/Authoring-tools/Setup-creators/Orca.shtml.  Install it on a PC.
  • Run Orca, click File, Open and select the AcroRead.msi file you just saved somewhere.
  • Click Transform, New Transform
  • In the Tables column on the left, click Feature. 
    • In the right hand pane find the line starting "AUM".  Double click its value in the Level column and change to 99.
    • Then find the line starting "Updater".  Double click its value in the Level column and change to 99.  (These stop the updater from working)

image

  • In the Tables column select Property.
    • Find "ENABLE_CACHE_FILES" - change to "NO" (Disables the copy of source files)
    • Find "EULA_ACCEPT" - change to "YES" (Disables the EULA dialog)
    • Find "SUPPRESS_APP_LAUNCH" - change to "YES" (Stops it from launching after install)
    • Find "Agree to License" - change to "YES" (Disables the license popup on first launch)
  • Click Transform, Generate Transform and save it in the same folder as your MSI as custom.mst
  • Create a batch file as well in this folder with the following text:

    msiexec /i AcroRead.msi TRANSFORMS=custom.mst
    pause

  • On your Citrix Profiler, start a new Profile.  Agree to defaults until you get to the Choose Installer screen.  Select your batch file and click Next.

image

  • Click Launch Installer and you should see your batch file launch and install.  Select the defaults in the installation and click Finish at the end.  When the command prompt window is done it should say “Press any key to continue” – press a key to close this too. 

image

  • Click Next to discover the application it should find “Adobe Reader 9”.  Launch it and agree to the license agreement.  Close Acrobat Reader.
  • Click Next, Next, Next.  Click Terminate All if there are any processes still running.  Click Next and Finish to build the profile.
  • Save it to your profile file share.
  • Load your Citrix Delivery Services Console to administer your XenApp 6 farm.
  • Create a new application.
  • Select “Accessed from a server” and “Streamed to server”. Click Next.
  • Click Browse to find the folder and profile file you just created.  The drop down should show Adobe Reader 9.  Click Next
  • Choose your server(s) that will host the stream.
  • Click Next and enter your users.  Click Next, Next and Finish.  You should now be able to launch the application.

Monday, 19 April 2010

Streaming OpenOffice.org 3.2.0 in XenApp 6 (streamed to server)

Preparation – installing your environment

  • Before you can stream applications, you need a Streaming Profiler. This should be as close to the final environment as you can make it, so the same operating system, patches, and other applications. Best practice if you are going to Stream to Server is the Streaming Profiler should be the same hardware as the farm servers and a member of the farm (though certainly not used to host live apps). In this case, I am planning to stream to server so this is a Windows 2008 R2 server and a member of the farm. Install the Profiler from the XenApp DVD and make sure your Profiler does not have the streaming client (the XenApp Offline Plug-in) installed.
  • Ensure the Visual C++ redistributable 2008 is installed – if you are installing to a XenApp 6 Farm server, this should already be installed by the installation of XenApp.  The same versions of the Redistributable should be on your intended clients (in this case the farm servers) too.
  • Download the latest version from http://download.openoffice.org/. This guide is for v3.2.0
  • Run the executable and select a directory for the extracted installer files. Cancel the installation once this directory is complete and keep the newly created directory. You can discard the original downloaded file.
  • The Java Runtime Environment is now not a requirement for either XenApp or OpenOffice so you might want to avoid it entirely. If you want it, install it manually to the Profiler and your XenApp machines before you begin and make sure everything is the same version.  I’m going to manage without it.

Preparation – disabling the first-run wizard

cd \
“c:\program files (x86)\Openoffice.org 3\program\unopkg” add --shared c:\DisableFirstStartWzd_ooo32.oxt
pause

Preparation – changing default file formats

  • Since we’re not all using OpenOffice, you probably want your users to save in Microsoft Office format by default. This isn’t a very easy process and will need some preparation. I’ve adapted the instructions from here and here.
  • On another machine of the same operating system, install OpenOffice 3.2.0 using the same process below (only actually install it, not using the Streaming Profiler).
  • Browse to “C:\Program Files (x86)\OpenOffice.org3\Basis\share\registry\modules\org\openoffice\Setup”
  • First open Setup-Writer.xcu with WordPad (NOT notepad).  It might be more readable if you disable Word Wrap.
  • Find this line:
    <prop oor:name=”ooSetupFactoryDefaultFilter”>
  • Change the text of the line below it (there might be a few occurrences, do them all) to read:
    <value>MS Word 97</value>
  • Open “Setup-calc.xcu” and find the line :
    <prop oor:name="ooSetupFactoryDefaultFilter">
  • Change the line after to read:
    <value>MS Excel 97</value>
  • Open “Setup-impress.xcu” and find the line:
    <prop oor:name="ooSetupFactoryDefaultFilter">
  • Change the line after to read:
    <value>MS PowerPoint 97</value>
  • Copy the three files you just created to the server you are profiling from so you can later add them to the stream

Creating the Streamed Profile

  • Click Start > All Programs > Citrix > Streaming Profiler > Streaming Profiler
  • Click New Profile

image

  • Click next
  • Give it a name (you can change this later). Click Next.
  • Do not enable User Updates and click Next.
  • Click Next past the linked profiles page (again, you can change this later).
  • On the list of Target Operating Systems you should see just Windows Server 2008 R2 selected. This is fine if you are streaming to server.

image

  • The only other OS that would probably work if you selected it now and tried to stream to a client on it later is Windows 7 64-bit, but there is no real point doing this. Click Next.
  • Select Advanced Install

image

  • Select “Run Install Program or command line script”

image

  • Click browse and find the setup.msi for OpenOffice in the folder you extracted. Click Next and Launch Installer.
  • Enter a generic User Name and Company and click next
  • Click Custom and next.
  • Deselect any main features you don’t need (in the screenshot I’ve disabled Base and Math as I don’t want my users messing about with these). Expand Optional Components and deselect On-line Update, Windows Explorer Extensions and Quickstarter at least.

image

  • Click next and clear the box to create a Start Link on Desktop.
  • Click Install and watch installation complete. Click Finish to return to the profiler.
  • Click Next.
  • Select Perform Additional Installations and click Next
  • Click Select Files and Folders
  • Copy your downloaded oxt file and the batch file you made to from your PC to the C: drive in the stream

image

  • Also find the setup-calc.xcu, setup-writer.xcu and setup-impress.xcu you may have created earlier to deal with default file formats not being Microsoft compatible. Copy them into the profile as well, into:
    C:\Program Files (x86)\OpenOffice.org 3\Basis\share\registry\modules\org\openoffice\Setup
    These should overwrite files and be newer and larger.
  • Click Next to perform additional installations again.
  • Select the first option again, to execute a program.
  • Enter the name of your batch file in the first text box and click Next

image

  • Click Launch Installer. You should see it successfully install the OXT and pause.

image

  • Click Next and select Finish Installations
  • You should now see a list of the main applications that you allowed at installation:

image

  • Select one and click Run. It should run without a first run wizard and have the expected default file format.
  • Click Next, Next, Next and Finish. After a few seconds it should finish building.
  • You should now see a screen with your new profile and some expandable folders beneath it.  Note the asterisk after the file name at the very top, indicating it is not saved yet. You can make lots of changes to the stream here by right clicking the new profile and clicking Properties. These include adding pre and post launch scripts and linking other profiles. When you are happy, save the profile to a file share. Enter the path of your profiles file share in the top box and it will create the subfolder for you. Click Save. This will take up about 400mb of space.  If you make changes and re-save, it will take another 400mb!
  • You are finished with the Profiler now.

Publishing your application

  • Open the Citrix Delivery Services Console (DSC) on a farm server with the Management Tools
  • Connect to the farm
  • Right click Applications and click Publish Application
  • Click Next and give it a display name – For example Word Processor

image

  • Select Application, Accessed from a server and Streamed to Server:

image

  • Click Next.
  • Click Browse to find your profile and select it. You should be able to select the application you want from the drop down:

image

  • Click Add to include servers to host the application.
  • Click Next to add users to get the application.
  • Finish the wizard, adding folders as required.
  • On a client in the name of a user who should see the application, do an application refresh and run the app.
  • Check the first run wizard does not run. Click File, Save As and check that the file format is Microsoft:

image

  • Repeat the process for Calc, Impress and the other OpenOffice applications as needed.