---
title: "Silent Install and Uninstall of V-Ray for Unreal"
canonical: "https://documentation.chaos.com/space/VRAYUNREAL/116557899/Silent+Install+and+Uninstall+of+V-Ray+for+Unreal"
format: markdown
---
This page provides information on setting up V-Ray for Unreal through a silent installation and removing V-Ray through a silent uninstallation.

 

##  **Overview** 

---

A silent installation allows you to perform a complete V-Ray installation without any user input during the process, using either the default options (automatic installation) or, if desired, a predefined set of options (manual installation).

To use the **default options**, you need to run the installer file from the command prompt with the **-auto** argument. This option forces the installer to run without a user interface, and also automatically selects all the default options. A config file, containing the default installation options, is created at the end of the process.

> ⚠️ By using the Chaos installer for automatic installation with the -auto argument, you accept the[Chaos End User License Agreement](https://www.chaos.com/terms) and the [Chaos Global Consumer Privacy Policy](https://www.chaos.com/privacy).

To use a **predefined set of options**, you need to first create a configuration xml file that stores the installation parameters and then run the installer. You must use the **-gui=0** argument, which indicates to the installer that no visual dialog will be shown and all interactions will occur through the console. After that, you can set each of the installation options directly in the console. Adding the **-quiet=1** argument speeds this process by skipping the full output and leading you straight to the configuration options where you can set them as you prefer. When this process is finished, the config.xml file is created. The final step is to run the installer again in the command prompt with the config.xml file.

> ℹ️ The **-auto** argument generates a configuration file using the default installation settings.
> ℹ️ 
> ℹ️ The **-gui=0** **-quiet=1** arguments generate a configuration file with installation settings that you specify.
> ℹ️ 
> ℹ️ You can inspect the configuration.xml files with a text editor and further modify the options listed there to suit your needs.

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


## **Installer Arguments**

---

You can run the installation file from command prompt with the following arguments:

|  |  |
| --- | --- |
| -help | Prints available arguments for the installer executable. |
| -configFile | Specifies path to an installation configuration file. |
| -gui | Specifies if a Graphic User Interface will be used or a command line one during installation:<br>0 – No Graphic User Interface will be visible, installation will be in command line<br>1 – installation will be with a Graphic User Interface |
| -debug | Specifies the level of debug logging by the installer. Defaults to 0 and assumes a value of 1 if argument is provided with no value. |
| -auto | Specifies if the installation will be automatic with default settings and forces the *-quiet=1* argument.<br><span style="color: #272727">If you perform an automatic installation and use the Software, the EULA and the Privacy Policy are accepted automatically during the installation.</span> |
| -quiet | Specifies whether the automatic installation prints the output to the console. Defaults to 1.<br>0 – installation prints all of its output to the console.<br>1 – installation suppresses the log output. |
| -backup | Specifies whether the  installer will perform backup on previous installation.<br>0 – previous installation will not be backed up<br>1 – previous installation will be backed up |



## **Creating the .xml file**

---

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

```
vray_adv_43021_unreal_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.


## **Running the installer**

---

When you want to run the same installation, you only need the generated config.xml file. Run the installer with the following command:

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


## **Configuration File**

---

The ***config.xml*** file configures the automated installation. Below is an example of a config file.

**Example installer config XML file: VRayForUnrealSilentInstall.xml**


```
<DefValues>     
	<Value Name="INSTALL_TYPE" DataType="value">0</Value>
	<Value Name="SHOULDUNINSTALL" DataType="value">1</Value>
	<Value Name="INSTALL_VRAY_UE_4_24" DataType="value">1</Value>
	<Value Name="UE_4_24_PLUGINS_ROOT" DataType="value">E:/PROGRAMS/Epic Games/UE_4.24/Engine/Plugins</Value>       
	<Value Name="INSTALL_VRAY_UE_4_23" DataType="value">1</Value>
	<Value Name="UE_4_23_PLUGINS_ROOT" DataType="value">E:/PROGRAMS/Epic Games/UE_4.23/Engine/Plugins</Value>   
	<Value Name="INSTALL_VRAY_UE_4_22" DataType="value">1</Value>
	<Value Name="UE_4_22_PLUGINS_ROOT" DataType="value">C:/Program Files/Epic Games/UE_4.22/Engine/Plugins</Value>
	<Value Name="INSTALL_LICENSE_SERVER" DataType="value">0</Value>
	<Value Name="REMOTE_LICENSE" DataType="value">0</Value>
	<Value Name="STDROOT" DataType="value">$PROGRAMFILES/Chaos Group/V-Ray/Unreal</Value>
	<Value Name="SEND_USER_FEEDBACK" DataType="value">1</Value>
	<Value Name="OPEN_CHANGELOG" DataType="value">1</Value>
	<Value Name="OPEN_FORUM" DataType="value">0</Value>
	<Value Name="OPEN_SUPPORT_SITE" DataType="value">0</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 common variables that can be defined in the .xml file:


|  |  |
| --- | --- |
| INSTALL_TYPE | Specifies the installation type:<br>0 – Workstation<br>1 – Standalone render server |
| SHOULDUNINSTALL | Specifies whether or not the installation will uninstall previous version:<br>0 – skips the uninstallation of previous version<br>1 – uninstalls previous version |
| INSTALL_VRAY_UE_4_xx | Specifies whether or not to install V-Ray for specified version of Unreal engine:<br>0 – skips installation for this version<br>1 – install for this version |
| UE_4_xx_PLUGINS_ROOT | Specifies the plugins folder for selected Unreal engine version. |
| INSTALL_LICENSE_SERVER | Specifies whether or not to install the License server:<br>0 – skips installation of License server<br>1 – install License server |
| REMOTE_LICENSE | Specifies whether the V-Ray license server runs locally or on another machine:<br>0 – the license server runs locally on the same machine.<br>1 – the server is on a different machine in the network. |
| STDROOT | Specifies the destination folder for V-Ray additional files (tools, documents, samples, libraries and uninstall information). Default location is *C:\Program Files\Chaos Group\V-Ray\Unreal\uninstall* |
| SEND_USER_FEEDBACK | Controls whether the user feedback system will be used:<br>0 – disables user feedback system.<br>1 – enables user feedback system. |
| OPEN_CHANGELOG | Specifies whether or not to open the Change Log once the installation is complete:<br>0 – does not open the Change Log.<br>1 – opens the Change Log. |
| OPEN_FORUM | Specifies whether or not to open the Chaos Forum page for V-Ray for Unreal once the installation is complete:<br>0 –  does not open forum page<br>1 – opens the forum page |
| OPEN_SUPPORT_SITE | Specifies whether or not to open the Chaos Documentation page for V-Ray for Unreal once the installation is complete:<br>0 –  does not open Documentation page<br>1 – opens the Documentation page |
| <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 |
| <Host1>IP_Address</Host2> | Alternate license server's 2 IP Address |



## **Silent Uninstall of V-Ray**

---

<span style="color: #000000">A silent uninstall allows you to remove your V-Ray installation without the need for user input during the process. The silent uninstall uses a predefined set of options. </span>

<span style="color: #000000"> </span>

<span style="color: #000000">V-Ray for Unreal can be silently uninstalled from a console with the following command line:</span>


***<STDROOT>\uninstall>installer.exe -uninstall="<STDROOT>\uninstall\install.log" -uninstallApp="V-Ray for Unreal" -quiet=0***


Where <STDROOT> is the destination folder for V-Ray for Unreal additional files.

e.g.:


***C:\Program Files\Chaos Group\V-Ray\Unreal\uninstall>installer.exe -uninstall="C:\Program Files\Chaos Group\V-Ray\Unreal\uninstall\install.log" -uninstallApp="V-Ray for Unreal" -quiet=0***