-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.bat
37 lines (30 loc) · 1.43 KB
/
install.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
36
37
@echo off
echo.
echo Welcome to the jPhotoDNA installer.
echo The script will now setup a jPhotoDNA environment for you. Please be patient.
echo.
echo Downloading FTK (3.3GB, might take a while)...
bitsadmin /transfer "Downloading FTK" /priority HIGH https://d1kpmuwb7gvu1i.cloudfront.net/AD_FTK_7.0.0.iso %cd%\AD_FTK_7.0.0.iso > nul
echo.
echo Extracting PhotoDNAx64.dll.
powershell.exe -Command "&{$mountResult = Mount-DiskImage %cd%\\AD_FTK_7.0.0.iso; $driveLetter = ($mountResult | Get-Volume).DriveLetter; $setupPath = \"$($driveLetter):\FTK\FTK\x64\{C32BC7B7-3086-44FD-8A90-9EC47966B4B7}\Data1.cab\"; echo "'Setup file is' $setupPath"; $finalString = expand $setupPath /f:photodnax64.1.72.dll %cd%; Get-Volume $driveLetter | Get-DiskImage | Dismount-DiskImage }" > nul
del AD_FTK_7.0.0.iso
rename photodnax64.1.72.dll PhotoDNAx64.dll
echo.
echo Downloading jPhotoDNA
bitsadmin /transfer "Downloading jPhotoDNA" /priority HIGH https://github.com/jankais3r/jPhotoDNA/releases/download/v0.1/jPhotoDNA.zip %cd%\jPhotoDNA.zip > nul
echo.
echo Extracting jPhotoDNA
powershell Expand-Archive jPhotoDNA.zip -DestinationPath .
del jPhotoDNA.zip
echo.
echo.
echo Installation complete!
echo _____________________________
echo.
echo To generate a PhotoDNA hash, use the following syntax:
echo jPhotoDNA.exe PhotoDNAx64.dll image.jpg
echo.
echo Generating a validation hash:
jPhotoDNA.exe PhotoDNAx64.dll Windmill.jpg
pause