Forum at OOoForum.orgThe 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 Forum Index -> Setup and Troubleshooting
View previous topic :: View next topic  
Author Message
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 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,

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.

- Install Java JRE unattended before OOo. See

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 ======================================

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
### Notify user that somtehing is going on
ECHO Installing OpenOffice ...
### 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.
### Remove link to Setup-program from user's start menu.
DEL "%USERPROFILE%\Start-meny\Program\ 1.0.1\ Setup.lnk" /F /Q 1>NUL 2>NUL

Contents of userinst.txt:
======================= BEGIN ======================================



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="" xmlns:cfg="" xmlns:xsi="">
<ReminderDate cfg:type="string" xsi:null="true" />
<RequestDialog cfg:type="int">0</RequestDialog>
======================= END ======================================

Contents of Jobs.xml:
======================= BEGIN ======================================
<?xml version="1.0" encoding="UTF-8"?>
<Jobs state="modified" cfg:package="org.openoffice.Office" xmlns="" xmlns:cfg="" xmlns:xsi="">
<Jobs cfg:element-type="Job">
<Job cfg:name="AddressBookSourcePilot">
<UserTime cfg:type="string">1.1.2001/11:11:11</UserTime>
<Job cfg:name="RegistrationRequest">
<UserTime cfg:type="string">1.1.2001/11:11:11</UserTime>
======================= 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

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 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