mtrojnar / osslsigncode

OpenSSL based Authenticode signing for PE/MSI/Java CAB files
Other
806 stars 131 forks source link

Added DIFAT sectors support #265

Closed max619 closed 1 year ago

max619 commented 1 year ago

I have tested it that way:

To my regular MSI file which is ~450 MB added 1GB file and packaged it, as a result I got a MSI file that is larger then 1.45 GB. Then signed it, installed and checked hash sum of that large file, it matched the original. Also I tried to verify checksum with osslsigncode, verification passed too.

Unfortunately, I was not been able to create MSI file with more then 1 DIFAT sector, so case with 2 or more DIFAT sectors is not tested.

Related to the issue #244

ebourg commented 1 year ago

Unfortunately, I was not been able to create MSI file with more then 1 DIFAT sector, so case with 2 or more DIFAT sectors is not tested.

1 DIFAT sector can address 1024 FAT sectors, each referencing 1024 sectors of 4096 bytes, so a size of 4GB. A second DIFAT sector should appear with a file of 4.43GB or more.

mtrojnar commented 1 year ago

I'm afraid we don't support files larger than 4GiB for now.

olszomal commented 1 year ago

The Windows Installer does not support Package files larger than 2GB in size. The installation will likely fail with an unexpected error.