Windows


A silent installation allows completion of the V-Ray installation without additional input during the process using a predefined set of options. To set up a silent installation follow the instructions below.

Run the installation file from the command prompt with the -gui=0 argument

vray_adv_5xxxx_revit_win_x64.exe -gui=0

Follow the instructions of the install and set-up the installation the way you want to have it on all machines. This creates a file named config.xml in the folder of the installation file.

Run the installer with the following command:

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

The -quiet=1 argument causes the installer to read the variable values from the xml file and do the installation without asking any for more details. It also accepts the EULA. If the -quiet=1 argument is not specified, the installer asks for confirmation for each variable before proceeding.

*xxxx is the exact number of your V-Ray build.

 

<iframe width="560" height="315" src="https://www.youtube.com/embed/aCTMSTpd3Os" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

 

Configuration File


The config.xml file holds configuration information about the settings of the installation. Below is an example of a config file content.

<DefValues>
 <Value Name="SHOULDUNINSTALL" DataType="value">1</Value>
 <Value Name="REVIT_EXE_ROOT20" DataType="value">NOTINSTALLED</Value>
 <Value Name="REVIT_EXE_ROOT21" DataType="value">C:\Program Files\Autodesk\Revit 2021\</Value>
 <Value Name="REVIT_EXE_ROOT22" DataType="value">C:\Program Files\Autodesk\Revit 2022\</Value>
 <Value Name="LIC_TYPE" DataType="value">adv</Value>
 <Value Name="PREVIOUS_REVITROOT" DataType="value">C:\ProgramData</Value>
 <Value Name="REVERT_INSTALL" DataType="value">1</Value>
 <Value Name="PROGRAMFILES" DataType="value">C:\Program Files</Value>
 <Value Name="REVITROOT" DataType="value">C:\ProgramData</Value>
 <Value Name="STDROOT" DataType="value">C:\Program Files\Chaos Group\V-Ray\V-Ray for Revit</Value>
 <Value Name="ADDINS20" DataType="value">C:\ProgramData\Autodesk\Revit\Addins\2020</Value>
 <Value Name="ADDINS21" DataType="value">C:\ProgramData\Autodesk\Revit\Addins\2021</Value>
 <Value Name="ADDINS22" DataType="value">C:\ProgramData\Autodesk\Revit\Addins\2022</Value>
 <Value Name="DATAFILES" DataType="value">C:\ProgramData\VRay4Revit</Value>
 <Value Name="STARTMENUPROG" DataType="value">C:\ProgramData\Microsoft\Windows\Start Menu\Programs</Value>
 <Value Name="INSTALL_REVIT" DataType="value">1</Value>
 <Value Name="INSTALL_REVIT20" DataType="value">0</Value>
 <Value Name="INSTALL_REVIT21" DataType="value">0</Value>
 <Value Name="INSTALL_REVIT22" DataType="value">1</Value>
 <Value Name="INSTALL_SWARM" DataType="value">1</Value>
 <Value Name="INSTALL_LICENSE_SERVER" DataType="value">1</Value>
 <Value Name="OPEN_CHANGELOG" DataType="value">1</Value>
 <Value Name="REMOTE_LICENSE" DataType="value">0</Value>
 <Value Name="REG_LIC_SERVER" DataType="value">1</Value>
 <Value Name="FIREWALL_EXCEPTION" DataType="value">1</Value>
 <Value Name="TEMPDIR" DataType="value">C:\Users\<username>\AppData\Local\Temp</Value>
 <LicServer>
  <Host>127.0.0.1</Host>
  <Port>30304</Port>
  <Host1>localhost</Host1>
  <Port1>30304</Port1>
  <Host2></Host2>
  <Port2>30304</Port2>
  <User></User>
 </LicServer>
</DefValues>

Below is a description of the variables of the installer:

 

SHOULDUNINSTALL

Specifies the uninstall type:

0 - Does not uninstall previous installation.

1 - Uninstall previous installation.

STDROOTSpecifies the root Revit folder. The default is C:\Program Files\Chaos Group\V-Ray\V-Ray for Revit
MATERIALS_LIBRARYSpecifies location for the V-Ray material library (the library itself should be downloaded from within the gui after a successful installation). The default location is C:\Users\<username>\Documents\V-Ray Material Library
REVERT_INSTALL

The parameter is used when the installer encounters an error – it triggers uninstallation and removes the files that have been populated before the error appears. 

Should always be set to its default 1.

INSTALL_REVIT

Specifies the installation type:

0 - Does not install  V-Ray for Revit. This is useful when you want to install only V-Ray Swarm, for example.

1 - Installs  V-Ray for Revit.

INSTALL_REVIT19

Specifies the installation of V-Ray for Revit 2019:

0 - Does not install V-Ray for Revit 2019.

1 - Installs  V-Ray for Revit.

INSTALL_REVIT20

Specifies the installation of V-Ray for Revit 2020:

0 - Does not install V-Ray for Revit 2020.

1 - Installs  V-Ray for Revit.

INSTALL_REVIT21

Specifies the installation of V-Ray for Revit 2021:

0 - Does not install V-Ray for Revit 2021.

1 - Installs  V-Ray for Revit.

INSTALL_REVIT22

Specifies the installation of V-Ray for Revit 2022:

0 - Does not install V-Ray for Revit 2022.

1 - Installs  V-Ray for Revit.

INSTALL_REVIT23

Specifies the installation of V-Ray for Revit 2023:

0 - Does not install V-Ray for Revit 2023.

1 - Installs  V-Ray for Revit.

REVITROOT

Specifies the root Revit folder. The default folder is C:\ProgramData

REVIT_EXE_ROOT19Specifies the folder location for the Revit 2019 .EXE file. The default is C:\Program Files\Autodesk\Revit 2019
REVIT_EXE_ROOT20Specifies the folder location for the Revit 2020 .EXE file. The default is C:\Program Files\Autodesk\Revit 2020
REVIT_EXE_ROOT21Specifies the folder location for the Revit 2021 .EXE file. The default is C:\Program Files\Autodesk\Revit 2021
REVIT_EXE_ROOT22Specifies the folder location for the Revit 2022 .EXE file. The default is C:\Program Files\Autodesk\Revit 2022
REVIT_EXE_ROOT23Specifies the folder location for the Revit 2023 .EXE file. The default is C:\Program Files\Autodesk\Revit 2023
ADDINS19Specifies the addins folder for Revit 2019. The default is C:\ProgramData\Autodesk\Revit\Addins\2019
ADDINS20Specifies the addins folder for Revit 2020. The default is C:\ProgramData\Autodesk\Revit\Addins\2020
ADDINS21Specifies the addins folder for Revit 2021. The default is C:\ProgramData\Autodesk\Revit\Addins\2021
ADDINS22

Specifies the addins folder for Revit 2022. The default is C:\ProgramData\Autodesk\Revit\Addins\2022

ADDINS23Specifies the addins folder for Revit 2023. The default is C:\ProgramData\Autodesk\Revit\Addins\2023
INSTALL_SWARM

Specifies whether or not to install V-Ray Swarm:

0 - Does not install Swarm.

1 - Installs Swarm.

SWARM_ENABLED

Specifies whether or not to enable V-Ray Swarm during installation:

0 - Does not enable Swarm.

1 - Enables Swarm.

SWARM_GOAL

Allows you to set in advance the desired percentage of utilization of available resources. Computers added to or removed from V-Ray Swarm are taken into account automatically. The default is 60.

SWARM_DONOTUSELOCALMACHINE

Specifies whether to exclude the local machine from rendering:

0 - The local machine is used.

1 - The local machine is not used. However, V-Ray Swarm proceeds using a small percentage of the local machine's resources to communicate with the nodes.

AUTO_DISCOVERY

Specifies whether the installation should search for other nodes in the network:

0 - Does not search for other nodes in the network.

1 - Enables auto discovery and the installation searches for other nodes in the network.

DISCOVERY_MASTERSpecifies the Coordinator's IP address.
SWARM_TAGS

Tags this node with a descriptor that defies something about the machine, which can later be used to selectively control from inside of Revit. Tags must be separated with a comma.

INSTALL_LICENSE_SERVER

 

Specifies whether or not to install the V-Ray license server:

0 - Does not install the V-Ray license server.

1 - Install the V-Ray license server.

OPEN_CHANGELOG

 

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

0 - Does not open the Change Log.

1 - Opens the Change Log.

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.

LIC_TYPESpecifies the type of license.
FIREWALL_EXCEPTION

Specifies whether to add a Firewall Exception for the V-Ray license server:

0 - Does not add a Firewall Exception for the V-Ray license server.

1 - Adds a Firewall Exception for the V-Ray license server.

TELEMETRYSpecifies whether anonymous usage statistics is enabled or disabled.

Notes


  • Running the installer with the -quiet=1 argument also accepts the EULA.