[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1489
  • Last Modified:

Open Office 3.2 default save path in Citrix

I have this working with OpenOffice.org 2.0. The path.xcu file has been configured under "c:\Program Files (x86)\OpenOffice.org 2.0\share\registry\schema\org\openoffice\Office. Therefore, when Citrix Clients login and use OpenOffice 2.0 Applications on Server Desktop the {default save} prompt is pointing where I want it to e.g. U:\ drive.

However when the same is done in OpenOffice.org 3.2 to "Paths-unxwnt.xcu" located in "C:\Program Files (x86)\OpenOffice.org 3\Basis\share\registry\modules\org\openoffice\Office\Paths"  it does not get transferred to individual profiles.  In other words paths.xcu configuration files do not get created in individual profiles.  Anyone has any ideas?


<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="Paths" oor:package="org.openoffice.Office">
  <node oor:name="Paths">
    <node oor:name="Work" oor:mandatory="true">
      <prop oor:name="WritePath">
        <value>file:///U:/</value>
      </prop>
    </node>
  </node>
</oor:component-data>

Open in new window

0
yesdvt
Asked:
yesdvt
  • 5
  • 3
1 Solution
 
ltlbearand3Commented:
I am not an expert on Citrix and do not know how it impacts the OOo installation information.  I will tell you what I know about defaults in OOo 3 and hope you can use it to find what you need.  

Settings in OOo 3 and up are stored in the setup.xcu file.
In Vista -
C:\Users\XXUSERNAMEXX\AppData\Roaming\OpenOffice.org\3\user\registry\data\org\openoffice
In  XP -
C:\Documents and Settings\XXUSERNAMEXX\Application  Data\OpenOffice.org\3\user\registry\data\org\openoffice

What you can do is change the default file location in a local installation of OOo (Tools >> Options >> OpenOffice.org >> Paths).  Then copy this setup.xcu file to where Citrix needs to pull it when creating loading a user so that it gets put in the correct AppData section.

I hope this helps.

-Bear
0
 
yesdvtAuthor Commented:
Well I guess I did a bad job explaining. I had it working under 2.x version  There is a configuration file called Paths.xcu that one could modify with custom save path. Once modified it was be used in creation of new OOo profiles as a default setting for path.  I am looking for the same degree of automation in OOo 3.2

Unfortunately it looks like modification of the same Paths.xcu or Paths-unxwnt.xcu file does not migrate in to individual users profiles.  I want it to be fire and forget just like before...:)
0
 
ltlbearand3Commented:
I apologize.  The setup.xcu stores several settings, but you are correct that paths are stored in paths.xcu.  I think this may work for you.  Log into your citrix server as a user and set the paths the way you want them.  Then go into that user's app data directory (paths in my above post) and then navigate down to OpenOffice.org\3\user\registry\data\org\openoffice\Office and grab the paths.xcu file.  Now move that file to
C:\Program Files\OpenOffice.org 3\Basis\share\registry\modules\org\openoffice\Office\Paths
You may have to create the paths folder.  Don't rename the file - leave as paths.xcu

Give this a try and see if it works.

-Bear.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
yesdvtAuthor Commented:
I think I was able to figure out the Paths.xcu file settings responsible for default save path. Nonetheless it seems like it is bound to common.xcu file in some way.  Once I configured Paths.xcu under "C:\Program Files\OpenOffice.org 3\Basis\share\registry\data\org\openoffice\Office\"  it worked like a charm for my profile. However, when I loged in with different profile it was not pointing to needed default save path. I have found  that common.xcu saved under user's profile might have something to do with it. I just can not figure out where to set this under main config files. What is the COmmon.xcs file?

<node oor:name="Path">
  <node oor:name="Current">
   <prop oor:name="Gallery" oor:type="oor:string-list">
    <value xsi:nil="true"/>
   </prop>
   <prop oor:name="Work" oor:type="xs:string">
    <value xsi:nil="true"/>
   </prop>
  </node>
 </node>
<node oor:name="Work" oor:op="fuse" oor:mandatory="true">
      <prop oor:name="IsSinglePath" oor:finalized="true">
        <value>true</value>
      </prop>
      <node oor:name="InternalPaths" oor:finalized="true"/>
      <prop oor:name="UserPaths" oor:finalized="true"/>
      <prop oor:name="WritePath" oor:type="xs:string" oor:finalized="true"> 
        <value>file:///U:/</value>
      </prop>
</node>

Open in new window

0
 
ltlbearand3Commented:
OK I have been playing around with multiple users on my one machine to see if I can mimic what Citrix will do.  I have something to try.  Tack the xml node value you posted:

<node oor:name="Path">
  <node oor:name="Current">
    <prop oor:name="Gallery" oor:type="oor:string-list">
     <value xsi:nil="true"/>
   </prop>
   <prop  oor:name="Work" oor:type="xs:string">
    <value  xsi:nil="true"/>
   </prop>
  </node>
 </node>

And place this in C:\Program Files\OpenOffice.org 3\Basis\share\registry\modules\org\openoffice\Office\Common\Common-wnt.xcu before
 </node></oor:component-data>

Now try that in conjunction with the Paths.xcu file we already did.  Together we might overcome this thing yet.

-Bear
0
 
yesdvtAuthor Commented:
Thank you for your help. Your answers have guided me to the right solution.
0
 
yesdvtAuthor Commented:
I will post additional help/task file I have created during my straggle with OOo 3.2 on  Monday. Hopefully other IT folks will find it useful.
0
 
yesdvtAuthor Commented:
Help file with changes I had to implement for Open Office 3.2 in our Citrix environment (Presentation Server 4.5 SP2). Open office is used via Shared Desktop.

####################   OPENOFFICE.ORG 3.2 INSTALLATION IN CITRIX   ######################
04/01/2010
compiled by Dennis T.


0.      Main Program installation

Transter installation files to a local staging directory. Install Open Office 3.2 and required components i.e. OpenOffice.org Calc, OpenOffice.org Impress, OpenOffice.org Writer

1.      Deactivating the OpenOffice.org Registration Wizard

For OpenOffice.org 3.2 use "DisableFirstStartWzd_ooo32.oxt" (should be available in software repository)
unopkg.exe is located in "c:\Program Files\OpenOffice.org 3\program\" directory

At the command line, type: unopkg add --shared DisableFirstStartWzd.oxt

1.1      Remove OOo banner to increase boot time

Go to “C:\Program Files\OpenOffice.org 3\program” and open “soffice.ini” with
wordpad and change “Logo=1” to “Logo=0”.

2.      Automatically save in MS Office formats

Modify the Extension Control Files (.xcu)located in “C:\Program Files\OpenOffice.org3\Basis\share\registry\modules\org\openoffice\Setup”

“Setup-Writer.xcu” drop down to line number 58 and change it to “<value>MS Word 97</value>”.
“Setup-calc.xcu” and drop down to line 19 and change it to “<value>MS Excel 97</value>”.
“Setup-impress.xcu” and drop down to line 18 and change it to “<value>MS PowerPoint 97</value>”.


3.      Customize a UI elements in an XML configuration files.

Use a text editor to customize a UI elements in an XML configuration files in order to remove access to the following menues:
Tools > Auto Correct Options
Tools > Customize
Tools > Options
Help > Registration

Configuration XML files are located in

"C:\Program Files\OpenOffice.org 3\Basis\share\config\soffice.cfg\modules\swriter\menubar"
"C:\Program Files\OpenOffice.org 3\Basis\share\config\soffice.cfg\modules\scalc\menubar"
"C:\Program Files\OpenOffice.org 3\Basis\share\config\soffice.cfg\modules\simpress\menubar"

The following lines should be encapsulated in "menubar.xml" using "<!--" element_name "-->"  commenting markups for XML

                  <menu:menuitem menu:id=".uno:AutoCorrectDlg"/>
                  <menu:menuitem menu:id=".uno:ConfigureDialog"/>
                  <menu:menuitem menu:id=".uno:OptionsTreeDialog"/>
                  <menu:menuitem menu:id=".uno:OnlineRegistrationDlg"/>

4.      Change OOo 3.2 default save path

Modify "Paths.xcu" located in "C:\Program Files (x86)\OpenOffice.org 3\Basis\share\registry\data\org\openoffice\Office\"

--------modified Paths.xcu make changes on line 164
<node oor:name="Work" oor:op="fuse" oor:mandatory="true">
      <prop oor:name="IsSinglePath" oor:finalized="true">
        <value>true</value>
      </prop>
      <node oor:name="InternalPaths" oor:finalized="true"/>
      <prop oor:name="UserPaths" oor:finalized="true"/>
      <prop oor:name="WritePath" oor:type="xs:string" oor:finalized="true">
        <value>file:///U:/</value>
      </prop>
</node>

In addition mmodify "C:\Program Files\OpenOffice.org 3\Basis\share\registry\data\org\openoffice\Office\Common.xcu"

---------add the following element to end of file before </oor:component-data> close tag.

<node oor:name="Path">
  <node oor:name="Current">
      <prop oor:name="Work" oor:type="xs:string">
    <value xsi:nil="true"/>
   </prop>
  </node>
 </node>
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now