kublikhan
Contributor
Contributor

Best way to programmatically get installed VIX version

Anyone know the best to to programmatically get the installed version of VMWare VIX and VMWare Workstation on a client machine? I was thinking of looking at the version info on VixCOM.dll for vix and vmware.exe for workstation, but then I don't know what directory it might be installed to on the client machine. I could try the default location, but if they installed to a custom location that would fail.

Reply
0 Kudos
lemke
VMware Employee
VMware Employee

Try the string property VIX_PROPERTY_HOST_SOFTWARE_VERSION on a hostHandle.

Reply
0 Kudos
kublikhan
Contributor
Contributor

Sorry for not getting back to you on this, but this issue popped up again. I tried VIX_PROPERTY_HOST_SOFTWARE_VERSION but got an error "undeclared identifier". I tried searching around for this property for more information but could not find any other reference to this. Was the property added in a more recent version of VIX? My version may be a few revisions behind.

Reply
0 Kudos
lemke
VMware Employee
VMware Employee

No, looks like I screwed up and pointed you to a property that's not in the public headers.

If you want to use it anyways:

VIX_PROPERTY_HOST_SOFTWARE_VERSION = 52,

Reply
0 Kudos
verminator
Enthusiast
Enthusiast

@lemke, going by the same principle, is there any property key for finding IP address of guest VM (which is not in the public headers/constants list) ?

Reply
0 Kudos
lemke
VMware Employee
VMware Employee

No, for that we recommend getting the tools variable "ip" via VixVM_ReadVariable() with variableType VIX_VM_GUEST_VARIABLE.

This does depend on the tools properly setting the value, which it should do for Windows and Linux. Be sure the tools are running before querying it.

jobHandle = VixVM_ReadVariable(vmHandle, VIX_VM_GUEST_VARIABLE, "ip", 0, NULL, NULL);

err = VixJob_Wait (jobHandle, VIX_PROPERTY_JOB_RESULT_VM_VARIABLE_STRING, &ip, VIX_PROPERTY_NONE);

Reply
0 Kudos
admin
Immortal
Immortal

Removed the content since I'm not clever enough to understand the email-reply-as-a-thread-update feature.

Anyway. You're welcome to make feature requests and we will attempt to make things available that we can reasonable implement and support, but please no more fishing expeditions for non-public properties. They will not be given out.

Message was edited by: mattrich

Reply
0 Kudos