Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI,

I have used Tesseract OCR in my WPF application and its running fine from the project folder.I wants to run this application in other system with .exe file without adding any dll or files to their system.

But when I am running the .exe file it is looking for the Tesseract.dll,tessdata,X64 and X86 again which I already added in my project folder.

I tried to create the exe file from debug and release mode both but still getting the same problem.


Please any body can help me.

Thanks,

Ashraf
Posted
Updated 28-Jul-15 18:38pm
v2
Comments
Aravindba 29-Jul-15 6:17am    
Hi when u create exe,u need to add what are dll used in that project,here u use Tesseract.dll,tessdata,X64 and X86,so need to add this,and one thing before making exe,first try like this

In project properties ,set TragetCPU to AnyCPU and build ur project.Just copy Debug folder if u set as debug mode and paste in other system,copy what are the dlls u used ,pates in debug folder and then try to run on clicking of .exe,if it is work then make installer.
Md.Ashraf Ali 30-Jul-15 2:32am    
Hi,
Thanks you so much Arvindba,I just copied the debug folder and running the .exe file its working but when i created the installer file it is not working?

Aravindba 30-Jul-15 3:47am    
Hi I dont know how u create installer,but when u create installer u need to add what are the dll's are used in that project,otherwise application not work.
Note in debug folder dll's are not appear,so when u make u need add dll's as additional file in installer
[no name] 29-Jul-15 7:21am    
"in other system with .exe file without adding any dll or files to their system", you are going to have to if you want your application to run. That's how software works and is done. Your alternative is to duplicate the source code for your OCR routine in your EXE.
Md.Ashraf Ali 30-Jul-15 2:33am    
Thank you Aday...!!

1 solution

Hi
Check this link.here they use vs 2010 for creating installer

https://www.youtube.com/watch?v=S-rEZ4Ir_PQ[^]

Here,they use release mode,so when add ur dll's in release folder and create installer based on this video.

So ur way is add Tesseract.dll in debug folder and in when create installer select all files from debug folder and create installer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900