Thread overview
[Issue 12075] New: Required disk space of Windows installer is 0kB
Feb 04, 2014
Martin Nowak
Feb 04, 2014
Brad Anderson
Feb 04, 2014
Martin Nowak
Feb 04, 2014
Martin Nowak
Feb 04, 2014
Brad Anderson
February 04, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12075

           Summary: Required disk space of Windows installer is 0kB
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: installer
        AssignedTo: nobody@puremagic.com
        ReportedBy: code@dawg.eu


--- Comment #0 from Martin Nowak <code@dawg.eu> 2014-02-04 14:21:10 PST ---
This was reported in the 2.065 beta 3 forum.

http://forum.dlang.org/post/vzlcguxkdrfgirdnwqed@forum.dlang.org

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 04, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12075


Brad Anderson <eco@gnuk.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eco@gnuk.net


--- Comment #1 from Brad Anderson <eco@gnuk.net> 2014-02-04 14:26:57 PST ---
The fix for this is to just use the option to embed the zip file in the installer instead of using the download method.  The space required figure number will still be somewhat off because we embed a zip file that we then extract ourselves rather than letting NSIS take care of embedding and compressing files.

Another option is to just get rid of the Required Disk Space line (SpaceTexts in NSIS script can do it). I prefer this one since DMD isn't big enough that the average user needs to care about how much disk space it takes up.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 04, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12075



--- Comment #2 from Martin Nowak <code@dawg.eu> 2014-02-04 14:31:20 PST ---
It would be generally preferable to only embed those files that are actually needed for a Windows installation, not the whole dmd.zip.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 04, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12075



--- Comment #3 from Martin Nowak <code@dawg.eu> 2014-02-04 14:34:02 PST ---
(In reply to comment #2)
> It would be generally preferable to only embed those files that are actually needed for a Windows installation, not the whole dmd.zip.

Is it difficult to embed zip files?
Ideally we could simply use the dmd.windows.zip generated by
create_dmd_release.
http://ftp.digitalmars.com/dmd.2.065.0-b3.windows.zip 15.2MB

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 04, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12075



--- Comment #4 from Brad Anderson <eco@gnuk.net> 2014-02-04 14:51:28 PST ---
(In reply to comment #3)
> (In reply to comment #2)
> > It would be generally preferable to only embed those files that are actually needed for a Windows installation, not the whole dmd.zip.
> 
> Is it difficult to embed zip files?
> Ideally we could simply use the dmd.windows.zip generated by
> create_dmd_release.
> http://ftp.digitalmars.com/dmd.2.065.0-b3.windows.zip 15.2MB

Nope, it already supports doing that actually. You just comment out the
"!define Download" near the top and have zip files in place for it to snag.
https://github.com/D-Programming-Language/installer/blob/master/windows/dinstaller.nsi#L146

What I meant though is using NSIS's "File" to include the files rather than including a zip file with everything already included.  If there is a directory dmd.windows.zip is made from we'd ideally just "File /r <path>" that directory and then we'd have a non-downloading installer that only includes the relevant portions, has a true Space Required amount, and would actually be smaller because NSIS can do LZMA compression.

This would also fix the problem of ensuring the uninstall only removes files it installed itself (there are readymade solutions for this as long as you are using NSIS's built in file embedding).

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------