Ok I just did a trick and worked perfectlly.
Install VMWare Workstation in a VirtualMachine (to avoid installing all the trash of uneeded registry keys, drivers, connections, and services that this huge program install in the SO...)
Copy these files from the VMWare Workstation installation in the virtual OS to the host OS:
libeay32.dll ssleay32.dll vmware-vdiskmanager.exe
At this point we have a working standalone vmware-vdiskmanager.exe
that does not require the entire VMWare Workstation application installed to shrink a virtual-disk :), so we can store those files in a folder and call the application from commandline to shrink a disk:
".\vmware-vdiskmanager.exe" -k ".\Disk.vmdk"
PSNote: Those dll libraries are related to Open-SSLOpenSSL and are required to run the app, maybe other features of vmware-vdiskmanager.exe
will require to copy other libraries.
Plus we can add some registry keys in our OS to shrink an VMWare virtual-disk (disk.vmdk) by doing mouse right-click on the file:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations.VMDK\Shell\VMWare] "MUIVerb"="VMWare" "SubCommands"="VMWare.Compact" "icon"="C:\VMWare.ico" "Position"="Top"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\VMWare.Compact] @="Shrink Disk" "icon"="C:\VMWare.ico"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\VMWare.Compact\command] @=""C:\vmware-vdiskmanager.exe" -k "%1""
Note: Change the filepaths on the registry script.