Checking the version of the Virtual Box installer and SDK
Posted: 28. Dec 2016, 07:46
Hello,
I am trying to get the version of Virtual Box Installer and Virtual Box API. I have found the respective APIs to get the Installer Version (wstring IVirtualBox::version) and SDK Version (wstring IVirtualBox::APIVersion).
My requirement is that I want to take different actions if the Installer version is lower than 5.0. How can I achieve this, as it is not just the product version number represented in string format, but it might also be followed by some _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag.
I mean definitely logic to parse out the required string can be written but is there any other straight forward mechanism to achieve this, through some API or MACRO which I might have missed to look into.
Also I wanted to ask how important is the cohesiveness between Virtual Box SDK version and Installer. For example in one of the topics in this forum it is suggested not to mix different SDK and Installer version - - viewtopic.php?f=34&t=56822&p=269621&hil ... on#p269621
So as per this I think it is also better to make a validation regarding the SDK version and Installer version for my requirement, what would be your suggestion?
So in that case we can expect that there would always be a simultaneous releases of both SDK and corresponding Installer for Virtual box by Oracle. And even in that case the output format returned by wstring IVirtualBox::version and wstring IVirtualBox::APIVersion API is different (one is numbers separated by '.' and other numbers separated by '_') so again it would be required to implement parse and check logic.
Please let me know your comments.
Thanks
I am trying to get the version of Virtual Box Installer and Virtual Box API. I have found the respective APIs to get the Installer Version (wstring IVirtualBox::version) and SDK Version (wstring IVirtualBox::APIVersion).
My requirement is that I want to take different actions if the Installer version is lower than 5.0. How can I achieve this, as it is not just the product version number represented in string format, but it might also be followed by some _ALPHA[0-9]*, _BETA[0-9]* or _RC[0-9]* tag.
I mean definitely logic to parse out the required string can be written but is there any other straight forward mechanism to achieve this, through some API or MACRO which I might have missed to look into.
Also I wanted to ask how important is the cohesiveness between Virtual Box SDK version and Installer. For example in one of the topics in this forum it is suggested not to mix different SDK and Installer version - - viewtopic.php?f=34&t=56822&p=269621&hil ... on#p269621
So as per this I think it is also better to make a validation regarding the SDK version and Installer version for my requirement, what would be your suggestion?
So in that case we can expect that there would always be a simultaneous releases of both SDK and corresponding Installer for Virtual box by Oracle. And even in that case the output format returned by wstring IVirtualBox::version and wstring IVirtualBox::APIVersion API is different (one is numbers separated by '.' and other numbers separated by '_') so again it would be required to implement parse and check logic.
Please let me know your comments.
Thanks