# Specifying the VisionPro Install Location at Build Time

The VisionPro 10.0 Preview 2 install location must be specified at both build-time and at run-time.

To specify at build-time using a build property (refer to https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-properties1 for more information):

1. Open the file <project directory>/<project name>.vcxproj.user for editing.

2. In the <PropertyGroup> element, for each build configuration, add one of the following lines:

   - Hard coded path and/or environment variable:

     Copy

         <OMX_ROOT>$(ProgramW6432)\Cognex\VisionPro\10.0 Preview 2</OMX_ROOT>

   - Path using custom registry key:

     Copy

         <OMX_ROOT>$(registry:HKEY_LOCAL_MACHINE\MyKey\MySubKey@Value)</OMX_ROOT>