Good Morning,
I have been trying to programmatically determine if the version of LO that I have is 32 bit or 64 bit (I know it is 32 bit). I was able to learn a few pieces of detail from Apache OpenOffice Community Forum - [Solved] Retrieving OO version (OO + VB6) - (View topic)
Here is the code:
Sub main1
Print getOOoVersion()
End Sub
Function getOOoVersion() As String
getOOoVersion = getOOoSetupValue("/org.openoffice.Setup/Product","ooSetupVersion")
end Function
Function getOOoSetupNode(sNodePath$)
Dim aConfigProvider, oNode, args(0) As new com.sun.star.beans.PropertyValue
aConfigProvider = createUnoService("com.sun.star.configuration.ConfigurationProvider")
args(0).Name = "nodepath"
args(0).Value = sNodePath
getOOoSetupNode = aConfigProvider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", args())
End Function
Function getOOoSetupValue(sNodePath$,sProperty$)
Dim oNode
oNode = getOOoSetupNode(sNodePath)
getOOoSetupValue = oNode.getbyname(sProperty)
End Function
The function getOOoSetupNode has all kinds of attributes related to product information, but nothing associated to whether it is a 32 bit or 64 application. Thank you for your help.
Regards
Zafar