-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathinstall1.bat
35 lines (27 loc) · 1.17 KB
/
install1.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
echo OFF
@setlocal enableextensions
@cd /d "%~dp0"
echo.
echo.
echo Install Imaging Source Library...
TISGrabberSetup_3.4.0.51.exe
echo.
echo.
echo Download FFMPEG...
curl --location https://archive.org/download/zeranoe/win64/static/ffmpeg-20190730-a0c1970-win64-static.zip -o C:%HOMEPATH%\Downloads\ffmpeg-20190730-a0c1970-win64-static.zip
echo.
echo.
echo Install FFMPEG...
powershell Expand-Archive C:%HOMEPATH%\Downloads\ffmpeg-20190730-a0c1970-win64-static.zip -DestinationPath C:%HOMEPATH%\Downloads\ffmpeg
xcopy C:%HOMEPATH%\Downloads\ffmpeg\ffmpeg-20190730-a0c1970-win64-static\* "C:\Program Files\ffmpeg" /e /i
rd C:%HOMEPATH%\Downloads\ffmpeg\ffmpeg-20190730-a0c1970-win64-static /s /q
echo.
echo.
echo Setting Environmental Varibles for Imaging Source Library and FFMPEG...
SET NEW_PATH=%PATH%;C:%HOMEPATH%\Documents\The Imaging Source Europe Gmbh\Tis Grabber DLL\bin\win32;C:%HOMEPATH%\Documents\The Imaging Source Europe Gmbh\Tis Grabber DLL\bin\x64;C:\Program Files\ffmpeg\bin
powershell [System.Environment]::SetEnvironmentVariable('PATH', '%NEW_PATH%', 'Machine')
echo.
echo.
echo Create New Conda Environment: camera36
call activate.bat
conda env create -f camera_env.yml