Windows
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 follow the instructions below.
Run the installation file from the command prompt with the -gui=0 argument
vray_adv_40003_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 will create a file named config.xml in the folder of the installation file.
Run the installer with the following command:
vray_adv_40003_revit_win_x64.exe -gui=0 -configFile="xml_file.xml" -quiet=1
The -quiet=1 argument will cause the installer to read the variable values from the xml file and do the installation without asking any questions. It will also accept the EULA. If you do not specify the -quiet=1 argument, the installer will ask for a confirmation for each variable before proceeding.
Configuration File
The config.xml file holds configuration information about the settings of the installation. Below is an example of such a config file.
<DefValues> <Value Name="SHOULDUNINSTALL" DataType="value">1</Value> <Value Name="REVIT_EXE_ROOT15" DataType="value">NOTINSTALLED</Value> <Value Name="REVIT_EXE_ROOT16" DataType="value">C:\Program Files\Autodesk\Revit 2016\</Value> <Value Name="REVIT_EXE_ROOT17" DataType="value">C:\Program Files\Autodesk\Revit 2017\</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 3.4 for Revit</Value> <Value Name="STDROOT15" DataType="value">C:\Program Files\Chaos Group\V-Ray\V-Ray 3.4 for Revit 2015</Value> <Value Name="STDROOT16" DataType="value">C:\Program Files\Chaos Group\V-Ray\V-Ray 3.4 for Revit 2016</Value> <Value Name="STDROOT17" DataType="value">C:\Program Files\Chaos Group\V-Ray\V-Ray 3.4 for Revit 2017</Value> <Value Name="ADDINS15" DataType="value">C:\ProgramData\Autodesk\Revit\Addins\2015</Value> <Value Name="ADDINS16" DataType="value">C:\ProgramData\Autodesk\Revit\Addins\2016</Value> <Value Name="ADDINS17" DataType="value">C:\ProgramData\Autodesk\Revit\Addins\2017</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_REVIT15" DataType="value">0</Value> <Value Name="INSTALL_REVIT16" DataType="value">0</Value> <Value Name="INSTALL_REVIT17" 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. |
REVIT_EXE_ROOT15 | Specifies the folder location for the Revit 2015 .EXE file. |
REVIT_EXE_ROOT16 | Specifies the folder location for the Revit 2016 .EXE file. |
REVIT_EXE_ROOT17 | Specifies the folder location for the Revit 2017 .EXE file. |
LIC_TYPE | Specifies the type of license. |
PREVIOUS_REVITROOT | Specifies the location of the previous Chaos Group folder. |
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. |
PROGRAMFILES | Specifies the root Chaos Group folder. |
REVITROOT | Specifies the root Revit folder. |
STDROOT | Specifies the root Revit folder. |
STDROOT15 | Specifies the root Revit folder for Revit 2015. |
STDROOT16 | Specifies the root Revit folder for Revit 2016. |
STDROOT17 | Specifies the root Revit folder for Revit 2017. |
ADDINS15 | Specifies the addins folder for Revit 2015 |
ADDINS16 | Specifies the addins folder for Revit 2016 |
ADDINS17 | Specifies the addins folder for Revit 2017 |
INSTALL_REVIT | Specifies the installation type: 0 - Does not install V-Ray for Revit. 1 - Installs V-Ray for Revit. |
INSTALL_REVIT15 | Specifies the installation of V-Ray for Revit 2015: 0 - Does not install V-Ray for Revit 2015. 1 - Installs V-Ray for Revit. |
INSTALL_REVIT16 | Specifies the installation of V-Ray for Revit 2016: 0 - Does not install V-Ray for Revit 2016. 1 - Installs V-Ray for Revit. |
INSTALL_REVIT17 | Specifies the installation of V-Ray for Revit 2017: 0 - Does not install V-Ray for Revit 2017. 1 - Installs V-Ray for Revit. |
INSTALL_SWARM | Specifies whether or not to install to install V-Ray Swarm: 0 - Does not install Swarm. 1 - Installs Swarm. |
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. |
REG_LIC_SERVER
| Specifies whether to register the V-Ray license server: 0 - Does not register the V-Ray license server. 1 - Registers the V-Ray license server. |
FIREWALL_EXCEPTION | Specifies whether to add a Firewall Exception for the V-Ray license server: 0 - Does not add a Firewall Exception the V-Ray license server 1 - Adds a Firewall Exceptionthe V-Ray license server. |
TEMPDIR | Specifies the location of the Temp folder. |
Notes
- Running the installer with the -quiet=1 argument will also accept the EULA.