Tuesday, January 19, 2010

Install Openoffice as a windows service

  • Download and install openoffice
  • run openoffice once before installing it as a service
  • Download and install windows 2003 resource kit from microsoft website.
  • Create a service account and give it log on as a service rights ( i used openoffice as service account name)
  • Create a service named OpenOfficeUnoServer to do so run the following command “C:\Program Files\Windows Resource Kits\Tools\Instsrv.exe” OpenOfficeUnoServer “C:\Program Files\Windows Resource Kits\Tools\Srvany.exe
  • Go to services snap in and change the log on account with the account you created in step 4.
  • Open registry and configure the values as shown in the screen shot shown below:

Create parameters key and make sure the values match as shown below. You have to create Application and AppParameters REG_SZ values.

Start Service

  • Open command prompt and change directory to c:\program files\openoffice.org 3\program


  • Run the following command


  • soffice -accept=”socket,port=8100;urp;StarOffice.ServiceManager


  • Run netstat -anp tcp


  • This should show a listening on port 8100.Chances are that the service will only listen on the 127.0.0.1 interface; this means you can only connect from the same machine and it’s good from a security point of view. However, if you want to be able to connect from other machines as well you need to change the accept string to "socket,host=0.0.0.0,port=8100;urp;" in the AppParameters registry value

No comments: