OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

HOWTO: Windows installation in a multi-user environment

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting
View previous topic :: View next topic  
Author Message
dali
General User
General User


Joined: 26 Mar 2003
Posts: 7

PostPosted: Fri Mar 28, 2003 4:05 am    Post subject: HOWTO: Windows installation in a multi-user environment Reply with quote

Here's an example of how you can install OpenOffice.org 1.0.1 unattended for multi-user Windows environments (not Terminal Server, multiple users on the same workstation).

OS used: Windows XP Pro (Swedish)
OOo: 1.0.1 (Swedish)
Reference: Star Office 6.0 Administration Guide, http://docs.sun.com/db/doc/816-7522.

Lines beginning with "###" are comments only. BEGIN- and END-lines are for readability only.


Unattended "network" installation
------------------------------------------------------------

The term "network installation" is used because the switch "-net" is used. There is however no requirement to place the files on a network drive.

The commands in this installaion are examples, they can however be used with Microsoft SMS or during unattended installation of operating system. It is not supposed to be run by a normal user, (local) administrator rights are needed.

Preparations
-------------------
- Install Java JRE unattended before OOo. See http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/silent.html.

Unpack installation files. Run OOo installation command in a batch file: setup.exe -net -r:C:\Temp\ExamplePath\netinst.txt

Contents of netinst.txt:
======================= BEGIN ======================================
[Environment]
INSTALLATIONMODE=INSTALL_NETWORK
INSTALLATIONTYPE=STANDARD
DESTINATIONPATH=C:\Program\OpenOffice
LANGUAGELIST=46
EndProcedure=PostSetup

[Procedures]
Sub PostSetup
SetReboot( False )
End Sub
======================= END ======================================

### After installation, copy opens___.ttf (pick it up from C:\Windows\Fonts in a manual user installation) to C:\Windows\Fonts, example:
copy C:\Temp\OpenOffice\*.ttf C:\Windows\Fonts
### Give all users "Change" on the folder C:\Windows\Fonts and "Full Control" on the file
### C:\Windows\Fonts\opens___.ttf, othwerwise the unattended user installation will complain. Example:
echo y| cacls.exe C:\Windows\Fonts /C /E /G Everyone:C
echo y| cacls.exe C:\Windows\Fonts\opens___.ttf /C /E /G Everyone:F
### This concludes the unattended "network" installation.

Unattended user (workstation) installation
------------------------------------------------------------

I've chosen to install OpenOffice for the user during logon, using the logon script. THis part is suppsed to be run by a "normal" user with non-administrative rights.

First there should be an initial check to see if OOo already is installed for the user (not shown here, just check for "setup.log" in the users installation directory). This is the vital install part of the script currently used:

### Check that OOo network installation exists.
IF NOT EXIST C:\Program\OpenOffice\program\setup.exe GOTO THEEND
### Then check if home directory exists and is accessible
IF NOT EXIST H:\ GOTO THEEND
### Notify user that somtehing is going on
ECHO.
ECHO Installing OpenOffice ...
ECHO.
### Before running setup, copy XML-files that prevent registration and address data source dialogs form being shown at first OOo startup. See further down for contents.
### The files MUST be present when Open Office starts for the first time, otherwise they will be created automatically and user registration etc i shown.
IF NOT EXIST H:\XPData\OpenOffice\user\config\registry\instance\org\openoffice\Office mkdir H:\XPData\OpenOffice\user\config\registry\instance\org\openoffice\Office 1>NUL 2>NUL
COPY \\%SERVER%\NETLOGON\Resurs\OpenOffice\*.XML H:\XPData\OpenOffice\user\config\registry\instance\org\openoffice\Office 1>NUL 2>NUL
C:\Program\OpenOffice\program\setup.exe -r:\\%SERVER%\NETLOGON\Resurs\OpenOffice\userinst.txt
REM Error codes are in StarOffice 6.0 Administration Guide (816-75ss.pdf), page 56.
IF NOT "%ERRORLEVEL%"=="0" ECHO FEL: ERRORLEVEL %ERRORLEVEL% >>C:\Temp\%USERNAME%_OOinst.log
### Remove link to Setup-program from user's start menu.
DEL "%USERPROFILE%\Start-meny\Program\OpenOffice.org 1.0.1\OpenOffice.org Setup.lnk" /F /Q 1>NUL 2>NUL
:THEEND

Contents of userinst.txt:
======================= BEGIN ======================================
[Environment]
INSTALLATIONMODE=INSTALL_WORKSTATION
INSTALLATIONTYPE=WORKSTATION
DESTINATIONPATH=H:\XPData\OpenOffice
LANGUAGELIST=46
EndProcedure=PostSetup

[JAVA]
JavaSupport=preinstalled_or_none

[Windows_Desktop_Integration]
Register4MsWord=Yes
Register4MsExcel=Yes
Register4MsPowerPoint=Yes
RegisterAsDefaultHtmlEditor=No

[Procedures]
Sub PostSetup
SetReboot( False )
End Sub
======================= END ======================================

Contents of Common.xml:
======================= BEGIN ======================================
<?xml version="1.0" encoding="UTF-8" ?>
<Common state="modified" cfg:package="org.openoffice.Office" xmlns="http://openoffice.org/2000/registry/components/Common" xmlns:cfg="http://openoffice.org/2000/registry/instance" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<Help>
<Registration>
<ReminderDate cfg:type="string" xsi:null="true" />
<RequestDialog cfg:type="int">0</RequestDialog>
</Registration>
</Help>
</Common>
======================= END ======================================

Contents of Jobs.xml:
======================= BEGIN ======================================
<?xml version="1.0" encoding="UTF-8"?>
<Jobs state="modified" cfg:package="org.openoffice.Office" xmlns="http://openoffice.org/2000/registry/components/Jobs" xmlns:cfg="http://openoffice.org/2000/registry/instance" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<Jobs cfg:element-type="Job">
<Job cfg:name="AddressBookSourcePilot">
<UserTime cfg:type="string">1.1.2001/11:11:11</UserTime>
</Job>
<Job cfg:name="RegistrationRequest">
<UserTime cfg:type="string">1.1.2001/11:11:11</UserTime>
</Job>
</Jobs>
</Jobs>
======================= END ======================================

That's it. Works for me. Perhaps this would qualify as a mini-HOWTO, but I don't have the time to find the right people to contact for that. I'm not even sure that this is the "proper" way to do some of the stuff, especially the XML-files are a blur. There may be some typos, technical errors and/or omissions due to the way forum software handles posts.

Hope this helps,
Daniel Lindgren

DISCLAIMER:
Absolutely NO guarantees that this will work for you, use it at your own risk.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group