You are here

Online installer - AdvancedExtract1To failing?

3 posts / 0 new
Last post
computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 3 months ago
Developer
Joined: 2009-08-11 11:24
Online installer - AdvancedExtract1To failing?

I'm working on an online installer for TopOCR; however, the AdvancedExtract1To parameter seems to be failing. It correctly creates the folder, but doesn't extract the installer's files into that folder.
I know it should be able to, since 7-Zip shows the embedded files without a hitch... anyone know what the problem might be?

Here's my installer.ini:

[DownloadFiles]
DownloadURL=http://www.topocr.com/topocr.exe
DownloadName=TopOCR
DownloadFilename=topocr.exe
DownloadMD5=d2438258b5eb61a6357a27984f84866e
AdditionalInstallSize=7905.28
AdvancedExtract1To=App\TopOCR

TIA!

prapper
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2008-01-24 17:01
AdvancedExtract1Filter

If you use AdvancedExtract#To, I think it has to be followed by AdvancedExtract#Filter.

Some examples include *.txt for all text files, * for all files, *a* for files that contain the letter a, Src\*.cpp for all cpp files within the src directory, etc.

Also, I don't think the AdditionalInstallSize should include a point.

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 3 months ago
Developer
Joined: 2009-08-11 11:24
So should I just round

So should I just round AdditionalInstallSize to 7905? Or should I "ceiling" it to 7906? (btw, I've already tried my installer twice... and there didn't seem to be a problem either time. Weird...)

I'll try * with AdvancedExtract#Filter... here goes! Smile
Yay, it works! Biggrin

Thanks for the advice!

One more question... how do I access the files in the downloaded installer?

AdvancedExtract1To=App\TopOCR
AdvancedExtract1Filter=\topocr.exe
AdvancedExtract2To=App\TopOCR
AdvancedExtract2Filter=\$COMMONFILES\TopOCR\*
AdvancedExtract3To=App\TopOCR
AdvancedExtract3Filter=\$PLUGINSDIR\*

failed,

AdvancedExtract1To=App\TopOCR
AdvancedExtract1Filter=topocr.exe
AdvancedExtract2To=App\TopOCR
AdvancedExtract2Filter=$COMMONFILES\TopOCR\*
AdvancedExtract3To=App\TopOCR
AdvancedExtract3Filter=$PLUGINSDIR\*

failed, even

AdvancedExtract1To=\App\TopOCR
AdvancedExtract1Filter=topocr.exe
AdvancedExtract2To=\App\TopOCR
AdvancedExtract2Filter=$COMMONFILES\TopOCR\*
AdvancedExtract3To=\App\TopOCR
AdvancedExtract3Filter=$PLUGINSDIR\*

failed... Sad

The biggest problem is <ROOT> - what folder does it access? The PAF says

AdvancedExtract#To supports the use of <ROOT> to indicate the app's root directory.

, but does that refer to the portable app's root directory or the extracted installer's root directory?

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

Log in or register to post comments