I read the setupvars.bat script and it looks like it just update the path environment variable to include the location of many dll files that needed by openvino. But I don't understand this line
This environment variable is not used in the subsequent script so why set it up ? is it used by any of the dll ?
The reason I want figure out what setupvars do is because I want to send my app to other members of my team and I don't want to require them to install openvino and mucking around with environment variables. I hope I can just send them the .exe, the relevant dlls and the model and it will run in their computer.
I copy the contents of inference_engine/bin, the necessary opencv dll, tbb dll and ngraph dll in the same folder with the exe file and it runs ok without initializing setupvars. I try it with hello_query_device, classification_sample_async and security_barrier_camera_demo.
I guess that's how we can distribute our application to others.
You can also try OpenVINO™ Deployment Manager Guide (https://docs.openvinotoolkit.org/latest/_docs_install_guides_deployment_manager_tool.html) that creates a package with the associated dependencies for target devices. This way you do not need to add dlls manually. The only restrition is that the target device should have the same OS as the host OS on which you are creating the package.