How to extract versions from the existing installation