cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
weelyn
Level 5

Get the UUID of the product

There are Java classes/methods (ProductRegistryService, getProducts...) to look in the Product Registry (/var/.com.zerog.registry.xml on Unix, C:\program files\...\... on Windows)

However, it seems to work with UUIDs. I wanted to know if it's possible to know its own Product, Vendor, Component UUID?

That is, I would like to know if the product is already installed. So, I use my own UUID to find all the instances of my own product in the product registry, then I can do deeper and compre versions etc.

However I don't know my own UUID... Is there some way of getting it through Java, in some IA variable...?

Thanks!!!
Labels (1)
0 Kudos
(1) Reply
weelyn
Level 5

OK, it's an InstallAnywhere variable, $PRODUCT_ID$, which contains the product id. From there, I can get the information I needed.
(And I swear I looked at the variable list two times, I still missed it. I'm ashamed.)
0 Kudos