Square Enix © Goodbye Kansas

Table of Contents

This page provides information on how to silently install V-Ray for Maya.


The EULA is not accepted during the silent installation of V-Ray. Instead, it needs to be accepted in Maya: a pop-up window appears when rendering begins. Only Batch rendering is an exception to this.


Windows


A silent installation allows you to install V-Ray 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 a command prompt with the -gui=0 argument:


vray_adv_60000_maya20xx_x64.exe -gui=0 

Follow the instructions of the installer 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 -gui=0 argument, and also add the -config=<config.xml> and -quiet=1 arguments. Here's an example of the command line:

vray_adv_60000_maya20xx_x64.exe -gui=0 -configFile="C:\config.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 user input.

If you do not specify the -quiet=1 option, the installer will ask for confirmation of each variable before proceeding.

macOS



  1. In the terminal navigate to the location where you have extracted the vray_adv_60000_maya20xx_mavericks_x64.app file

  2. Copy the .app file to a location with write permissions.  
  3. Using the cd command navigate inside the .app file and go to vray_adv_60000_maya20xx_mavericks_x64.app/Contents/MacOs

  4. In the terminal enter: 
    ./run_installer -gui=0

  5. You will be prompted for your password – enter it.

  6. Follow the instructions of the installer and setup the installation in the way you want it to be installed on all machines.

  7. A file named config.xml is created in the folder of the .app file. Move it outside the .app bundle, for example, next to the vray_adv_6xxxx_maya20xx_mavericks_x64.app.

  8. You can now install V-Ray on all machines by navigating to vray_adv_60000_maya20xx_mavericks_x64.app/Contents/MacOs and using the command:
    ./run_installer -configFile="../../../config.xml" -gui=0 -quiet=1 -ignoreErrors=1

Linux


To perform a silent install first run the installer with the “ -gui=0 ” argument:

./vray_adv_60000_maya20xx_linux_x64 -gui=0

Follow the instructions and setup the installation in the way you want it to be installed on all machines. Once the installation is complete a file named config.xml will be created in the folder from which the installation was run. You can now use this file to configure your silent install on other machines. To do that run the installer with the following arguments:

-configFile="config.xml" -gui=0 -quiet=1 -ignoreErrors=1

./vray_adv_60000_maya20xx_linux_x64 -configFile="config.xml" -gui=0 -quiet=1 -ignoreErrors=1

It is really important to not start the installer with sudo as that can potentially interfere with the process and install files in the wrong locations. Let the installer ask for sudo.

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="INSTALL_TYPE" UseOld="1" DataType="value">0</Value>
	<Value Name="PLUGINS" DataType="value">C:\Program Files\Chaos Group\V-Ray\Maya 20xx for x64\maya_vray</Value>
	<Value Name="REMOTE_LICENSE" UseOld="1" DataType="value">0</Value>
	<Value Name="REGISTER_RENDERSERVER_SERVICE" UseOld="1" DataType="value">0</Value>
</DefValues>

Below is a description of the variables of the installer:


PLUGINS

Specifies the plugins folder for Maya

INSTALL_TYPE

Specifies the installation type:

0 - Full

1 - Standalone only

For a complete description of each installation type refer to the Installation section.


REGISTER_RENDERSERVER_SERVICE

Specifies whether or not to register the V-Ray Standalone render server as a service.

0 - Does not register the V-Ray Standalone render server

1 - Registers the V-Ray Standalone render server


STDROOT

Specifies the destination folder for IPR files.

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.

Uninstall


A silent uninstall allows you to remove your V-Ray installation without the need for user input during the process using a predefined set of options.

To perform a silent uninstall, the executable of the installer should be run from a Windows command prompt or from a Linux or macOS terminal with the following arguments:

-uninstall=<log full filename> -uninstallApp=<product full name> -gui=0

  • -uninstall=<log full filename> specifies the log generated when the application was installed. It is stored in the Chaos installation folder in C:\Program Files\Chaos Group\V-Ray\Maya 2022 for x64\vray\uninstall (where nn is the Maya version).
    Note
    : On Linux and macOS the -log=<log full filename> argument should be used instead of -uninstall.
     

  • -uninstallApp=<product full name> specifies the application to remove. The full product name can be found in the .xml file generated when the application was installed. It is located in the Chaos installation folder in V-Ray > Maya 20nn for x64 > uninstall.
  • -gui=0 will only show the uninstall log in the command prompt or terminal without initializing the graphic UI.


Windows

Performing a silent uninstall of V-Ray on Windows requires running the installer.exe file from the command prompt with the arguments specified in the Overview. To do that, you need to know the full path of the folder containing the V-Ray additional files and the exact name of the product you want to uninstall. Then you can execute the following command:


<STDROOT>/uninstall/installer.exe -uninstall="<STDROOT>/uninstall/install.log" -uninstallApp="V-Ray for Maya #### for x64" -auto


Where:

  • <STDROOT> is the V-Ray installation directory;
  • #### is the version of Maya;
  • -quiet=0 is used to display the output of the silent uninstall in the console and can be omitted.


macOS

Performing a silent uninstall of V-Ray on macOS requires running the installer executable from a terminal with the arguments specified in the Overview.

Here's an example of how the command line should look like when uninstalling V-Ray for Maya 2020: 

/Applications/ChaosGroup/V-Ray/Maya2020/vray/Uninstaller.app/Contents/MacOS/installer.bin -uninstallApp="V-Ray for Maya 2020 for x64" -log="/Applications/ChaosGroup/V-Ray/Maya2020/vray/uninstall/install.log" -gui=0

Linux

Performing a silent uninstall of V-Ray on Linux requires running the installer executable from a terminal with the arguments specified in the Overview.

Here's an example of how the command line should look like when uninstalling V-Ray for Maya 2020: 

/usr/ChaosGroup/V-Ray/Maya2020-x64/vray/uninstall/installer -uninstallApp="V-Ray for Maya 2020 for x64" -log="/usr/ChaosGroup/V-Ray/Maya2020-x64/vray/uninstall/install.log" -gui=0