ResolutionStarting from Virtuozzo 4.0 version %VZ_ROOTDIR% environment variable is not used anymore.
In case of using any custom scripts where this variable is required we can suggest to retrieve Virtuozzo root folder from the registry.
The following command used in CMD script file will set the VZROOT_VALUE variable to the VZROOT value taken from registry:
for /F "skip=2 tokens=1,2,3 usebackq" %%i in (`REG QUERY "HKLM\SOFTWARE\SWSoft\Virtuozzo" /v VZROOT`) do set VZROOT_VALUE=%%k
Note: During upgrade from 3.5.1 to 4.0 the environment variable is not removed. The variable can be removed manually if necessary.