qixiaobo / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Uninstall does not remove registry keys #425

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install tesseract 3.00 with the windows installer
2. Uninstall using the provided uninstaller
3. Install tesseract 3.00 with the windows installer

What is the expected output? What do you see instead?
Tesseract should work after the install the second time round exactly as it 
does the first.

However, the uninstall does not remove the reg keys: 
HKEY_CURRENT_USER\Environment\PATH and 
HKEY_CURRENT_USER\Environment\TESSDATAPREFIX

When you reinstall in step 3 it then appends the key to the unremoved one so it 
reads: 
C:\Program Files (x86)\Tesseract-OCR;C:\Program Files 
(x86)\Tesseract-OCR\training;C:\Program Files (x86)\Tesseract-OCR

Then when you try and run tesseract it cant find the eng.traineddata file as it 
is looking at that messed up path from the key. Error from cmd prompt:

c:\Program Files (x86)\Tesseract-OCR>tesseract.exe eurotest.tif result

Error openning data file C:\Program Files (x86)\Tesseract-OCR;C:\Program Files 
(x86)\Tesseract-OCR\tessdata/eng.traineddata

Original issue reported on code.google.com by MerryG...@gmail.com on 10 Jan 2011 at 11:07

GoogleCodeExporter commented 9 years ago
And it seems you have to reboot for the registry changes to take effect but 
when I put it back to "C:\Program Files (x86)\Tesseract-OCR\" it works again :)

Original comment by MerryG...@gmail.com on 11 Jan 2011 at 2:02

GoogleCodeExporter commented 9 years ago
This is NSIS related, as nothing in Tesseract itself touches the registry. It 
should be relatively easy for someone who knows NSIS to fix. Any takers?

Original comment by joregan on 12 Jan 2011 at 2:27

GoogleCodeExporter commented 9 years ago
Thanks for report. It is fixed in svn (r601) as far as I was able to test on 
Windows XP. Script will be used for 3.01 version

Original comment by zde...@gmail.com on 8 Aug 2011 at 8:36