This page provides information on setting up and removing V-Ray through a silent installation and uninstallation.

Overview


A silent installation allows you to complete a 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: create an .xml file and run the installer.

You can remove V-Ray from your machine similarly through a silent uninstall.

 

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_60002_c4dr2x_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 creates a file named vrayconfig.xml in the folder of the installation file. 

Run the installation file with the -gui=0 argument again, and also add the -config=<vrayconfig.xml> and -quiet=1 arguments. Here's an example of the command line:

vray_adv_60002_c4dr2х_x64.exe -gui=0 -configFile="C:\vrayconfig.xml" -quiet=1

The -quiet=1 argument causes the installer to read the variable values from the .xml file and do the installation without user input.

It also accepts the EULA.

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

 

macOS


  1. In Terminal, navigate to the location where you have extracted the  vray_adv_60002_c4dr23_mavericks_x64.app file

  2. Using the cd command, navigate inside the .app file and go to vray_adv_60002_c4dr23_mavericks_x64.app/Contents/macOS

  3. In Terminal enter: 
    ./vray_adv_60002_c4dr23_mavericks_x64 -gui=0

  4. You are prompted for your password – enter it.

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

  6. A file named config.xml is created in the folder of the .app file

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

 

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" DataType="value">0</Value>
 <Value Name="CINEMA_PLUGINS_DIR" DataType="value">C:\Program Files\Maxon Cinema 4D R23</Value>
<Value Name="REMOTE_LICENSE" DataType="value">0</Value>
 <Value Name="SEND_USER_FEEDBACK" DataType="value">1</Value>
 <LicServer>
  <Host>127.0.0.1</Host>
  <Port>30304</Port>
  <Host1></Host1>
  <Port1>30304</Port1>
  <Host2></Host2>
  <Port2>30304</Port2>
  <User></User>
 </LicServer>
</DefValues>

 

Below is a description of the variables of the installer:

 

CINEMA_PLUGINS_DIR

Directory for installing Cinema 4D plugins (only required for INSTALL_TYPE = 0)

INSTALL_TYPE

 

Specifies the installation type:

0 - Full

1 - Standalone only

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

STDROOT

Standalone tools or destination for V-Ray Standalone if INSTALL_TYPE = 1

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.

SEND_USER_FEEDBACK

Controls whether the user feedback system is used.

0 - Cinema 4D asks for feedback upon startup

1 - enable the feedback program

2 - disable it for all users, except those who have explicitly enabled it from Cinema 4D itself.

INSTALL_CGLS

Specifies whether to install the Chaos License Server or not:

0 - skip the installation of License Server

1 - install Chaos License Server

<LicServer>

This section specifies the client license settings.

<Host>IP_Address</Host>

Primary license server's IP Address

<Host1>IP_Address</Host1>

Alternate license server's 1 IP Address

<Host2>IP_Address</Host2>

Alternate license server's 2 IP Address

 


Silent Uninstall of V-Ray


A silent uninstallation 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 V-Ray > Cinema 4D Rnn > uninstall (where nn is the Cinema 4D version).
    Note
    : On macOS the -log=<log full filename> argument should be used instead of -uninstall
  • -uninstallApp=<product full name> specifies which 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 > Cinema 4D Rnn > 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 Command Prompt with the arguments specified in the Overview. In order 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 Cinema 4D R##" -auto

 

Where:

  • <STDROOT> is the V-Ray installation directory;
  • ## is the version of Cinema 4D;
  • -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 Cinema 4D R23: 

/Applications/ChaosGroup/V-Ray/Cinema 4D R23/uninstall/installer.app/Contents/MacOS/installer.bin -uninstallApp="V-Ray for Cinema 4D R23" -log="/Applications/ChaosGroup/V-Ray/Cinema 4D R23/uninstall/install.log" -gui=0

Notes


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