Ticket #5830 (closed defect: fixed)
Writing large file fails on shared folder, succeeds on C:\
|Reported by:||cemerick||Owned by:|
|Host type:||Mac OS X|
Description (last modified by sunlover) (diff)
- OS X 10.5.8 host, Macbook Pro hardware
- Windows Vista x64 guest
- vbox additions installed
Using the most recent release of the NSIS installer generator, writing an installer .exe that is going to be larger than some threshold (I believe the threshold is 16MB -- a guess arrived at by trial-and-error) succeeds when written to C:\, but fails when written to any shared folder location.
I'm attaching a *very* simple installer script, and a data file that will result in a total installer size > 16MB. The script takes a couple of arguments, making it easy to change where the generated installer is to be written and/or what file should be included in the installer (which should make debugging work somewhat easier).
Some sample output, showing a failure writing to G:\ (a shared folder in my environment), but success writing to C:\:
G:\vbox-share-write-failure>makensis /Dinput=bigfile /Doutput=install.exe writeFailure.nsi Output: "G:\vbox-share-write-failure\install.exe" Install: 3 pages (192 bytes), 1 section (1048 bytes), 5 instructions (140 bytes) , 48 strings (826 bytes), 1 language table (230 bytes). Using zlib compression. EXE header size: 33792 / 35840 bytes Install code: 836 / 2764 bytes Install data: 17457156 / 17457156 bytes Error: can't write 17457156 bytes to output Error - aborting creation process G:\vbox-share-write-failure>makensis /Dinput=bigfile /Doutput=C:\install.exe writeFailure.nsi Output: "C:\install.exe" Install: 3 pages (192 bytes), 1 section (1048 bytes), 5 instructions (140 bytes) , 48 strings (826 bytes), 1 language table (230 bytes). Using zlib compression. EXE header size: 33792 / 35840 bytes Install code: 836 / 2764 bytes Install data: 17457156 / 17457156 bytes CRC (0x0202F8C2): 4 / 4 bytes Total size: 17491788 / 17495764 bytes (99.9%) G:\vbox-share-write-failure>