Menu

#2176 Please add a silent (unattended/quiet) installer option

INSTALLER
pending
nobody
None
Feature
none
Waiting_User_Response
False
2014-09-15
2014-01-23
austin987
No

I searched mingw-users and google for silent install options, but all I found was issue [#1860] (which was closed as out-of-date). I'd like to echo the same request, a silent install option. Ideally it would have a way to choose which packages/sets are installed as well.

Thanks for your great work!

Related

Issues: #1860

Discussion

  • Keith Marshall

    Keith Marshall - 2014-01-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
    -I searched mingw-users and google for silent install options, but all I found was issue #1860 (which was closed as out-of-date). I'd like to echo the same request, a silent install option. Ideally it would have a way to choose which packages/sets are installed as well.
    +I searched mingw-users and google for silent install options, but all I found was issue [#1860] (which was closed as out-of-date). I'd like to echo the same request, a silent install option. Ideally it would have a way to choose which packages/sets are installed as well.
    
     Thanks for your great work!
    
    • status: unread --> pending
    • Category: Unknown --> Waiting_User_Response
     
  • Keith Marshall

    Keith Marshall - 2014-01-23

    I don't understand; if it's unattended, how can it magically guess what optional packages you might like to install? For a sane unattended install, you need to script it; this is already supported via the command line interface, and shell (batch file) scripting...

    mingw-get install package ...
    

    Once you've scripted it, if you want it to run quietly, you may redirect standard output and standard error to log files, (or for a really gung-ho silent install, to the NUL device, but then you will not be able to check for any errors which may have occurred).

    What more do you need?

     
  • austin987

    austin987 - 2014-02-04

    That requires manual extraction of mingw-setup, as well as a dependency on 7zip. Ideally, neither would be needed, and one could do:

    mingw-get-setup.exe /s
    C:\MinGW\bin\mingw-get.exe install gcc msys-base

     
  • Keith Marshall

    Keith Marshall - 2014-02-04

    So, what you want is a scriptable CLI version of mingw-get-setup.exe, which would simply install mingw-get.exe and mingw-get-0.dll for you, without bothering you with the need to make any installation choices? Or would let you specify those choices via scripted command line flags?

    Right now, you have fully scriptable capability with mingw-get.exe, but you need to kickstart the installation of that somehow; either download and unpack it manually -- which does require an XZ capable archive tool -- or use the current interactive GUI mingw-get-setup.exe, which has XZ capability built in, to install it for you.

    A non-interactive alternative to mingw-get-setup.exe would certainly be possible, but since that's not what the vast majority of users want, it isn't a priority for me to write it. Of course, if you wanted to write and contribute such a tool yourself ...

     
  • austin987

    austin987 - 2014-02-04

    Correct.

    I understand that it's not a high priority. I'll take a look if time permits, but don't take that as a commitment just yet :).

     
  • Craig Ringer

    Craig Ringer - 2014-03-11

    All that's really needed it something that'll effectively "click next on every option", i.e. do a default install without user interaction, so there's a usable "mingw-get" that can be invoked from scripts.

    The old mingw-inst used to support the /silent option, and it's been a surprise to see that the new one does not.

     

    Last edit: Craig Ringer 2014-03-11