Install Mono and Gecko without human interaction

Questions about Wine on Linux
Locked
tk421
Level 2
Level 2
Posts: 30
Joined: Wed Aug 09, 2017 7:19 am

Install Mono and Gecko without human interaction

Post by tk421 »

Hi Everybody,

Every time I try to run a new application in a new Wine environment, I am asked if I want to install Mono and Gecko.

Is there any way to pre-install mono and gecko, or to allow wine to install it automatically without the user confirmation ?

Thanks in advance
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Install Mono and Gecko without human interaction

Post by Bob Wya »

@tk421

Yes!

Download the required versions of:
  • wine-mono, 32-bit only, currently version: 4.7.5
  • wine-gecko, 32-bit & 64-bit, current version: 2.47
(the required versions are listed for Wine 4.x).

Then move these files to:

Code: Select all

/usr/share/wine/mono/
/usr/share/wine/gecko/
for wine-mono and wine-gecko respectively.

You can also use the user local XDG directory equivalents:

Code: Select all

~/.local/share/wine/mono/
~/.local/share/wine/gecko/
(or so I believe...)

Bob
tk421
Level 2
Level 2
Posts: 30
Joined: Wed Aug 09, 2017 7:19 am

Re: Install Mono and Gecko without human interaction

Post by tk421 »

Thanks ! It worked really good. For future references:

Code: Select all

RUN mkdir -p /usr/share/wine/mono/
RUN mkdir -p /usr/share/wine/gecko/
ADD http://dl.winehq.org/wine/wine-mono/4.7.5/wine-mono-4.7.5.msi /usr/share/wine/mono/wine-mono-4.7.5.msi
ADD http://dl.winehq.org/wine/wine-gecko/2.47/wine_gecko-2.47-x86_64.msi /usr/share/wine/gecko/wine_gecko-2.47-x86_64.msi
ADD http://dl.winehq.org/wine/wine-gecko/2.47/wine_gecko-2.47-x86.msi /usr/share/wine/gecko/wine_gecko-2.47-x86.msi
RUN chown -R wine /usr/share/wine
Locked