Jump to content
Sign in to follow this  
Oldschool

FileInstall() compiling problems

Recommended Posts

Oldschool

DirCreate(@AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdll.dll", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tesseract.exe", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdll.lib", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\whiteBg6.bmp", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\whiteBg5.bmp", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\whiteBg4.bmp", 'C:\Documents and Settings\All Users\Application Data\tesseract-2.01\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\confsets", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.DangAmbigs", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.freq-dawg", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.inttemp", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.normproto", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.pffmtable", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.unicharset", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.user-words", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.word-dawg", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\makedummies", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\Makefile.am", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\Makefile.in", @AppDataCommonDir & '\tesseract-2.01\tessdata\')

Everyone of thse produces this error when I try to compile...Run fine when not compiled, etc...all files are present.

Posted Image

EDIT:

This is on 3.2.10 XP SP2

Edited by Oldschool

Share this post


Link to post
Share on other sites
Oldschool

Solved...

You can't use macros in the source parameter. If you use a macro, and the compilation failes, you have to restart SciTe. If you don't restart SciTe, all FIleInstalled statement stop working. Some weird bug...

Share this post


Link to post
Share on other sites
petesa

The FileInstall function requires the destination file name to be specified. For example "FileInstall("C:\test.bmp", "D:\mydir\test.bmp")". You have a trailing backslash at the end of your destination directory without a file name specified. :)

It would be nice if the FileInstall function would utilize wildcards for files and create directories on the destination. This would make scripting in AutoIt easier...

DirCreate(@AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdll.dll", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tesseract.exe", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdll.lib", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\whiteBg6.bmp", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\whiteBg5.bmp", @AppDataCommonDir & '\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\whiteBg4.bmp", 'C:\Documents and Settings\All Users\Application Data\tesseract-2.01\tesseract-2.01\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\confsets", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.DangAmbigs", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.freq-dawg", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.inttemp", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.normproto", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.pffmtable", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.unicharset", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.user-words", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\eng.word-dawg", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\makedummies", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\Makefile.am", @AppDataCommonDir & '\tesseract-2.01\tessdata\')
FileInstall("C:\Documents and Settings\All Users\Documents\tesseract-2.01\tessdata\Makefile.in", @AppDataCommonDir & '\tesseract-2.01\tessdata\')

Everyone of thse produces this error when I try to compile...Run fine when not compiled, etc...all files are present.

Posted Image

EDIT:

This is on 3.2.10 XP SP2

Share this post


Link to post
Share on other sites
MHz

The FileInstall function requires the destination file name to be specified.

Please read the help file as your statement is false.

The destination path of the file with trailing backslash if only the directory is used. This can be a variable.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.