Option in Windows installer for just headers and binaries?

2014-06-05
2016-06-17
  • Thierry Seegers

    Thierry Seegers - 2014-06-05

    After the 10-minute installation process I spend another 10 minutes deleting documentation, sources, and other files I don't need. Would it be possible to have an installer that allows one to select what one needs? E.g. I'm only looking for headers and static binaries.

     
  • Valentyn Shtronda

    I am looking for the same. In my case I need only libraries.
    So it would be nice to have options to install separately headers, binaries, docs and sources.
    I launched windows installer with "/?" switch and some options caught my attention:

    /COMPONENTS="comma separated list of component names"
    Overrides the default component settings.
    /TASKS="comma separated list of task names"
    Specifies a list of tasks that should be initially selected.

    I tried the following:

    /COMPONENTS=lib32-msvc-12.0
    /COMPONENTS=lib
    /TASKS=lib32-msvc-12.0
    /TASKS=lib

    but they are either wrong or ignored...

     
  • Valentyn Shtronda

    Found a way to extract part of the installation archive using innounp.
    Download and extract this command line utility to some folder (e.g. c:\InnoUnp).
    Then to extract only libraries, execute the following:

    c:\InnoUnp\InnoUnp.exe -x -q boost_1_61_0-msvc-14.0-64.exe "{app}\lib??-*"
    

    To extract headers and libraries, execute the following:

    c:\InnoUnp\InnoUnp.exe -x -q boost_1_61_0-msvc-14.0-64.exe "{app}\lib??-*" "{app}\boost\*"
    
     
    Last edit: Valentyn Shtronda 2016-06-17

Log in to post a comment.