Silent Install and Uninstall

A silent installation allows you to complete V-Ray installation without user input during the process using a predefined set of options. To set up a silent installation, you need to perform two steps.

First you need to create an .xml file in which you specify values for each installer variable – check the example below:

Example installer config XML file: xml_file.xml
<DefValues>
<Value Name="MAXROOT" DataType="value">C:\Program Files\Autodesk\3ds Max 2014</Value>
<Value Name="PLUGINS" DataType="value">$MAXROOT\plugins</Value>
<Value Name="OPEN_README" DataType="value">0</Value>
<Value Name="OPEN_CHANGELOG" DataType="value">0</Value>
<Value Name="INSTALL_WIBU" DataType="value">0</Value>
<Value Name="REG_LIC_SERVER" DataType="value">0</Value>
<Value Name="INSTALL_TYPE" DataType="value">1</Value>
<Value Name="REMOTE_LICENSE" DataType="value">1</Value>
<Value Name="VISIT_SPOT3D" DataType="value">0</Value>
</DefValues>

In the second step you run the installer with the following command:

vray_adv_2xxxx_max2014_x64.exe -gui=0 -configFile="xml_file.xml" -quiet=1

This will cause the installer to read the variable values from the .xml file and do the installation without user input. If you do not specify the '-quiet=1' option, the installer will ask for a confirmation of each variable before proceeding.

Below is a description of the variables of the installer:

    
MAXROOT    

Specifies the root 3ds Max folder.

    
PLUGINS    

Specifies the plugins folder for 3ds Max; the default places it as a sub-folder of the 3ds Max root one.

    
OPEN_README    

Specifies whether or not to open the Read Me once the installation is complete.

1 opens the Read Me file.

0 does not open the Read me file.

    
OPEN_CHANGELOG    

Specifies whether or not to open the Change Log once the installation is complete

1 opens the Change Log.

0 does not open the Change Log.

    
INSTALL_WIBU    

Specifies whether or not the WIBU-KEY drivers will be installed.

1 starts the WIBU-KEY drivers installation.

0 skips the WIBU-KEY drivers installation.

    
REG_LIC_SERVER    

Specifies whether or not to register the V-Ray License Service.

1 registers the V-Ray License Service.

0 does not register the V-Ray License Service.

This variable is only valid when the installation is set to either Workstation or License server.

    
INSTALL_TYPE    

Specifies the installation type:

0 – Workstation

1 – 3ds Max render slave

2 – Standalone render slave

3 – License server only

For a complete description of each installation type refer to the Installation of V-Ray 3.0 section.

REMOTE_LICENSE

Specifies whether the V-Ray license server runs locally or on another machine.

0 - the license server runs locally on the same machine.

1 - the server is on a different machine in the network.

If this variable is 1, the license server itself will not be installed. To configure the license server settings, you will need to run the "setvrlservice" program after the installation. Normally it is located in "C:\Program Files\Chaos Group\V-Ray\3dsmax xxx for x64\setvrlservice.exe". The license server is specified using "-server" option, for example:"C:\Program Files\Chaos Group\V-Ray\3dsmax xxxx for x64\setvrlservice.exe" -server=10.10.10.11

Set the VRAY_AUTH_CLIENT_FILE_PATH environment variable to point to the folder that contains the vrlclient.xml file with the V-Ray license server settings (IP address and port number).

VISIT_SPOT3D

Specifies whether or not to open the V-Ray online documentation after the installation is complete.

1 opens the V-Ray online documentation.

0 does not open the V-Ray online documentation.

STDROOT

Specifies the destination folder for V-Ray additional files (tools, documents, samples, libraries and uninstall information)

RTROOT

Specifies the destination folder for V-Ray RT files.

SHOULDUNINSTALL

Specifies whether or not the installation will uninstall previous version:

1 uninstalls previous version

0 skips the uninstallation of previous version

You can use a command to perform a silent uninstall. In order to do that you need to know the full path of the folder containing V-Ray additional files and the exact name of the product you want to uninstall. Then you can execute the following command:

"<STDROOT>\uninstall\wininstaller.exe" -uninstall="<STDROOT>/uninstall/install.log" -uninstallApp="<PRODUCT_NAME>" -gui=0 -quiet=1

where <STDROOT> is the destination folder and <PRODUCT_NAME> is the product name i.e. “V-Ray for 3dsmax 2014 for x64”

For example the following command will uninstall V-Ray for 3ds max 2014:

"C:\Program Files\Chaos Group\V-Ray\3dsmax 2014 for x64\uninstall\wininstaller.exe" -uninstall="C:\Program Files\Chaos Group\V-Ray\3dsmax 2014 for x64\uninstall\install.log" -uninstallApp="V-Ray for 3dsmax 2014 for x64"