Zonal OCR Installer
Prerequisite:
- MSBuild and signtool should be present on machine
- ZonalOCR project should contain all required dlls and should build without any errors
Steps:
- Open ZonalOCRInstaller project
- Navigate to appsettings.json and fill in next fields with correct values:
MsBuildPath - path to MSBuild.exe. It is required for building ZonalOCR project
SignToolPath - path to signtool.exe. It is required for signing ZonalOCR executable and an installer itself.
ZonalOcrSignKeystoreFile - keystore with certificate. It is required for signtool.exe
ZonalOcrSignKeystorePassword - keystore password. It is required for signtool.exe
For some cases default values of other parameters can be also changed:
TargetDirectory - default installation directory
ProjectName - it is used for msi file name (it will be <ProjectName>.msi)
ZonalOcrSolutionFolder - path to the ZonalOCR solution
ZonalOcrSolutionFile - ZonalOCR solution file
ZonalOcrCompiledFolder - path where installer will find compiled and obfuscated binares
ZonalOcrExecutable - ZonalOCR executable file
appsettings.json exampe:
{
"TargetDirectory": "%ProgramFiles%\\eFileCabinet\\ZonalOCR",
"ProjectName": "Zonal OCR",
"MsBuildPath" : "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe",
"SignToolPath": "C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.17763.0\\x64\\signtool.exe",
"ZonalOcrSolutionFolder": "..\\..\\ZonalOCR",
"ZonalOcrSolutionFile": "ZonalOCR.sln",
"ZonalOcrCompiledFolder": "ZonalOCR\\bin\\ReleaseObfuscated",
"ZonalOcrExecutable": "ZonalOCR.exe",
"ZonalOcrSignKeystoreFile": "ZonalOCR\\efcCodeSigningCertificate.pfx",
"ZonalOcrSignKeystorePassword": "salive.1"
}
- Build installer project. During the build <ProjectName>.msi will be created.