---
title: "Running V-Ray Autodesk app packages from Arbitrary Location"
canonical: "https://documentation.chaos.com/space/VMAX/113586798/Running%20V-Ray%20Autodesk%20app%20packages%20from%20Arbitrary%20Location"
format: markdown
---
This page provides information on running V-Ray on a machine that does not have it locally installed. 


## **Overview**

---

> ℹ️ The following instructions apply to 3ds Max 2022 and later.

<span style="color: #333333">It is possible to run V-Ray from an arbitrary location, rather than installing it locally. To do so, follow these steps:</span>

- <span style="color: #333333">Run the V-Ray for 3ds Max installer.</span>
- <span style="color: #333333">Click the </span><span style="color: #333333">**Advanced **</span><span style="color: #333333">button to access additional options.</span>


![image](media://8eb1de75-7ee1-4b41-9f57-7d63787d36f6)


- <span style="color: #333333">At the Directories & Feedback step, select the following options:</span>


![image](media://1fd1fffa-0aae-4f45-9204-fb722bf40f4e)


- <span style="color: #333333">Complete the installation process. The</span> [Autodesk application package of V-Ray for 3ds Max](https://docs-chaos.atlassian.net/wiki/spaces/VMAX/pages/113586614)<span style="color: #333333"> is now installed in a single directory, e.g. if using 3ds Max 2024, the default directory is C:\ProgramData\Autodesk\ApplicationPlugins\VRay3dsMax2024.</span>
- Create a new folder to store the V-Ray files, e.g. **D:\VRayCustomInstallation\**
- Create a new subfolder called **ApplicationPlugins** inside the D:\VRayCustomInstallation\
- Copy the **VRay3dsMax20xx** folder from C:\ProgramData\Autodesk\ApplicationPlugins\VRay3dsMax20xx to:

```
D:\VRayCustomInstallation\ApplicationPlugins\
```

> Macro (ui-text-box)
> 
> The xx stands for the 3ds Max version.


- <span style="color: #333333">Copy the </span><span style="color: #333333">**3ds Max 20xx**</span><span style="color: #333333"> folder from C:\Program Files\Chaos\V-Ray\3ds Max 20xx to:</span>

```
D:\VRayCustomInstallation\ 
```


- <span style="color: #333333">Uninstall V-Ray for 3ds Max.</span>
- <span style="color: #333333">Set the Autodesk </span><span style="color: #333333">**ADSK_APPLICATION_PLUGINS**</span><span style="color: #333333"> environment variable to:</span>

```
D:\VRayCustomInstallation\ApplicationPlugins\
```


- <span style="color: #333333">V-Ray needs its own environment variables setup to run properly. Set the following environment variables:</span>

##### **Environment Variables setup**

```
VRAY_FOR_3DSMAX20xx_MAIN = D:\VRayCustomInstallation\ApplicationPlugins\VRay3dsMax20xx\bin
VRAY_FOR_3DSMAX20xx_PLUGINS = D:\VRayCustomInstallation\ApplicationPlugins\VRay3dsMax20xx\bin\plugins
VRAY_MDL_PATH_3DSMAX20xx = D:\VRayCustomInstallation\3ds Max 20xx\mdl
```

<span style="color: #333333">Note that for Custom folder cases such as in this example, the root path D:\VRayCustomInstallation\ApplicationPlugins\VRay3dsMax20xx\ is the location where the packages are deployed and it should match the ADSK_APPLICATION_PLUGINS path. For more information about running V-Ray from a custom location, please refer to the '</span>[Custom folder](https://help.autodesk.com/view/MAXDEV/2023/ENU/?guid=packaging_plugins)<span style="color: #333333">' section of Autodesk SDK documentation.</span>

The preceding steps explain just one of the methods for packaging Autodesk plugins provided by Autodesk, for more information go to: [Autodesk SDK documentation](https://help.autodesk.com/view/MAXDEV/2023/ENU/?guid=packaging_plugins).


## **Notes**

---

- The VRAY_MDL_PATH_3DSMAX20xx is pointing to files deployed by the V-Ray installer, they could be deployed in the custom location too, but they are MDL shader sample files and are considered auxiliary to the plugin package and thus are not in it by default.
- The plugin.ini file is not to be modified with the Autodesk application package format.