Skip to content
⌘ NSIS Forum Archive

Total Files over 1GB

6 posts

chienpin#

Total Files over 1GB

If Total File Over 1GB...
How can i do...
Who can give my some sample...
Thanks!!
Afrow UK#
You want to compress a 1gb file into the installer?
That can be done yes.

Just use:
Section "Install main file"
SetOutPath "$INSTDIR"
File "C:\1gb-file.ext" ;to be compressed and extracted to $INSTDIR
SectionEnd
-Stu
Joost Verburg#
If have problems with the compilation of large files, see
Sunjammer#
There is no automatic disk spanning in NSIS (yes it has been requested before) so you'd have to achieve this by:
  • NSIS installer on disk 1, files on disk 1 and disk 2, use CopyFiles to install them from the install disks to the user disk.
  • NSIS installer on disk 1 including the disk 1 files using File, files on disk 2 should be installed using CopyFiles.
  • Two NSIS installers, one one disk 1 and one on disk 2, use the File command to pack the files into the installers, installer 1 runs installer 2 after first requesting a disk change (if necessary).
Note: For all suggestions YOU are responsible for deciding which files go on disk 1 and which files go on disk 2.

Disk spanning has been discussed many times on this forum before, I suggest you search for more information. No doubt others will post with more suggestions for you here too!