I want to run a Windows executable (a console application) from a shell script. This script is part of a bigger project that automatically builds packages, so I need to avoid user interaction.
Actually I use something like this:
export WINEARCH=win64
export WINEPREFIX=/somewhere/$WINEARCH
wine pgen.exe
It basically works but with with the following problems:
- If
WINEPREFIX
is empty (and this is the case in the first run), a dialog appears showing to wait for configuration. I'd like to avoid depending on an X server running. - If not previously installed,
wine
shows a window asking to install Gecko and requiring user intervention. WINEPREFIX
needs to be owned by the user calling wine, so I don't know how to provide a system-wide wrapper to run the above application.
Apart the latter issue (that I can live without), the other ones are blocking. At the end I just want to run a console application.