Hi

I'd like to know what is the easiest way for an external application (say,
an ebuild binary) to find out OOo's version number (e.g. 2.0.2).


the information is stored in the <ooo>/share/registry/.../Setup.xcu file (Node Product/ooSetupVersion)

here is a macro i usualy use from inside OOo

HTH

Laurent

'-----------------

function RecupereVersionOOO() as string
'recupère version de OOo
Dim aSettings, aConfigProvider
Dim aParams2(0) As new com.sun.star.beans.PropertyValue
aConfigProvider = createUnoService( "com.sun.star.configuration.ConfigurationProvider" )
aParams2(0).Name = "nodepath"
aParams2(0).Value = "/org.openoffice.Setup/Product"
aSettings = aConfigProvider.createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", aParams2() )

RecupereVersionOOO=aSettings.getbyname("ooSetupVersion")

end function


--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management >> http://www.nuxeo.com - http://www.nuxeo.org
Livre "Programmation OpenOffice.org", Eyrolles 2004-2006

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to