Hi
I use the new feature “ExtractArchive” in an AfterInstall-script:
It blocks the progress of the indeterminate progress bar.
Also I tried to use the new “Hash”-flag, to check if a file should be installed but it seemed not to work. Does this only work in combination with the download of the file?
I was looking for a simple possibility to check, if a file without version-number matches the one in the installer. I resolved it with a custom method in the “Check”-flag of my Files-entry:
Function checkHash(verifyHash: String): Boolean;
Var
filePath: String;
Begin
Result := true;
filePath := ExpandConstant(CurrentFileName);
if FileExists(filePath) Then
Begin
Result := LowerCase(GetSHA256OfFile(filePath)) <> LowerCase(verifyHash);
End;
End;
A built-in functionality for this would be nice.
Another question:
The help for my software is in HTML and contains a lot of small files (~12000 files, total size: ~500MB). The installation is a lot quicker, when I pack them into a 7z-file, install this file and extract it in the installer instead of install the files directly.
Thanks!
—
Fabian Grob |
Software Engineer | Fabia...@zund.com
Zünd Systemtechnik AG
| Industriestrasse 8 | CH-9450 Altstätten
T: +41 71 554 82 86 | www.zund.com
It blocks the progress of the indeterminate progress bar.
Also I tried to use the new “Hash”-flag, to check if a file should be installed but it seemed not to work.
Does this only work in combination with the download of the file?
I was looking for a simple possibility to check, if a file without version-number matches the one in the installer.
A built-in functionality for this would be nice.
Another question:
The help for my software is in HTML and contains a lot of small files (~12000 files, total size: ~500MB). The installation is a lot quicker, when I pack them into a 7z-file, install this file and extract it in the installer instead of install the files directly.