Howto: Start OpenOffice Headless as a Windows Service

2172 views
Skip to first unread message

chaossepp

unread,
Jul 31, 2009, 3:26:35 AM7/31/09
to OpenMeetings User
Hello!

Because there are so many wrong and not working Tutorials out there, I
decided to post my working way here!
I only tested this with Win 2003 Server R2 and OpenOffice 3.1!!!


Follow these steps:

1.) Install Windows Server 2003 Resource Kit Tools
2.) Create a new Service (name: OpenOfficeService; Paths: Path to
Resource Kits Tools):
use cmd: Command Prompt>"C:\Program Files\Windows Resource Kits\Tools
\Instsrv.exe" OpenOfficeservice "C:\Program Files\Windows Resource Kits
\Tools\Srvany.exe"

3.) Open registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
\Services\OpenOfficeService and add a Subkey "Parameters"
4.) Add to Subkey "Parameters" a new String Value "Application" with
the value "C:\Program Files\OpenOffice.org 3\program\soffice.exe -
headless -nofirststartwizard -
accept="socket,host=localhost,port=8100;urp;StarOffice.Service"

Regtistry shoud look something like:

-OpenOfficeService
--Enum
--Security
--Parameters
---Application = "C:\Program....."




6.) Run services.msc and start Service (check if startup type is set
to automatic)
5.) Check if OpenOffice is listening: Command Prompt> netstat -anp tcp
(should listen on port 8100)

Additional Notes:

- You have to type the quotation marks ("..") in step 2.) !!!!! In the
following stepts they ("..") just mark values!
- Customize your Paths, for shure....


This should work! greets flo

chaossepp

unread,
Jul 31, 2009, 8:44:25 AM7/31/09
to OpenMeetings User
@ 4.) You have to type the accept="....." quotation marks too!!! :-)

greets flo

Mason Breed

unread,
Jul 31, 2009, 10:45:05 AM7/31/09
to openmeet...@googlegroups.com
I'm fairly sure that I've been able to load larger PDF's in the past but
currently trying to load a PDF with > 6 pages results in the message
that the file has been uploaded, but then the conversion never completes.

A pdf of 6 or less pages uploads and converts almost instantly with no
issues.

manually running pdf2swf on the PDF's generates the SWF.

The log shows this:
<<shows the file correctly being uploaded to upload temp, then: >>
UploadHandler.java 1941457 280
org.openmeetings.servlet.outputhandler.UploadHandler [http-5080-9] -
canBeConverted: false
GeneratePDF.java 1941459 68 org.openmeetings.app.documents.GeneratePDF
[http-5080-9] - fullProcessing: false
GenerateSWF.java 1941462 38 org.openmeetings.app.documents.GeneratePDF
[http-5080-9] - process: generateBatchThumb


I'm running the latest red5 bundle.



Anyone else hit this issue?
Any ideas of something I could check?

greenes

unread,
Dec 9, 2011, 1:04:55 PM12/9/11
to openmeet...@googlegroups.com
Hi Chaossepp,

Thank you for your tutorial.
Please permet me make an indication.
It is write:

"C:\Program Files\Windows Resource Kits\Tools
\Instsrv.exe" OpenOfficeservice "C:\Program Files\Windows Resource Kits
\Tools\Srvany.exe"

...and so no works for me, but so yes:


C:\Program Files\Windows Resource Kits\Tools
\Instsrv.exe" OpenOfficeservice "C:\Program Files\Windows Resource Kits
\Tools\Srvany.exe"

Thank you again.

greenes
Reply all
Reply to author
Forward
0 new messages