My GOG installer script doesn't work, exits before installation

Hi folks!

I’m doing my first Lutris install script and went into trouble.

The game is “Star Wars Battlefront II” and I’d like to do the GOG version, which would be an easy task: Create wine prefix, install the game via GOG installer, done.

As this game doesn’t need anything else, this wouldbe fine.

This is my script for now:

files:
- game: N/A:Please select the GOG.com Windows installer
game:
  arch: win32
  exe: drive_c/game/GameData/BattlefrontII.exe
  prefix: $GAMEDIR
installer:
- task:
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- task:
    args: /VERYSILENT /SP- /NOCANCEL /SUPPRESSMSGBOXES /NOGUI /DIR="C:/game" /LOG="C:\log.txt"
    description: Installing...
    executable: game
    name: wineexec
    prefix: $GAMEDIR
wine:
  version: staging-2.15-i386

But while it wants to begin installing, it just jumps to “installation finished” without anything done. I guess it is because it can’t show the next installer page, which could be because of an EULA agreement (not sure about that, but as it’s in there, it could be). How to I fix this?

If I run the installer in GUI mode, it installs fine and shit, but I’d like to have a /(VERY)SILENT installer, as I see this is commonly used for GOG installers.

Anything else I should be wary of or implement?

This is the installer’s log file:

2017-10-04 04:41:35.283   Log opened. (Time zone: UTC+02:00)
2017-10-04 04:41:35.283   Setup version: Inno Setup version 5.5.9 (u)
2017-10-04 04:41:35.283   Original Setup EXE: Z:\home\cedric\Downloads\BF2\setup_star_wars_-_battlefront_2_1.1_xplay_(14073)_(g).exe
2017-10-04 04:41:35.283   Setup command line: /SL5="$10054,185856,0,Z:\home\cedric\Downloads\BF2\setup_star_wars_-_battlefront_2_1.1_xplay_(14073)_(g).exe" /VERYSILENT /SP- /NOCANCEL /SUPPRESSMSGBOXES /NOGUI /DIR=C:/game /LOG=C:\log.txt /LANG=en
2017-10-04 04:41:35.283   Windows version: 6.1.7601 SP1  (NT platform: Yes)
2017-10-04 04:41:35.283   64-bit Windows: No
2017-10-04 04:41:35.283   Processor architecture: x86
2017-10-04 04:41:35.283   User privileges: Administrative
2017-10-04 04:41:35.285   64-bit install mode: No
2017-10-04 04:41:35.285   Created temporary directory: C:\users\cedric\Temp\is-PJFET.tmp
2017-10-04 04:41:35.287   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\innocallback.dll
2017-10-04 04:41:35.291   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\botva2.dll
2017-10-04 04:41:35.292   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\crcdll.dll
2017-10-04 04:41:35.295   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\EULA.txt
2017-10-04 04:41:35.297   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\GOG_EULA.txt
2017-10-04 04:41:35.298   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\OpenSans-Regular.ttf
2017-10-04 04:41:35.304   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\OpenSans-Semibold.ttf
2017-10-04 04:41:35.348   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\gog_installer_background.jpg
2017-10-04 04:41:35.378   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\md5log.ini
2017-10-04 04:41:35.379   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\BigOK.png
2017-10-04 04:41:35.379   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\BigFail.png
2017-10-04 04:41:35.379   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\BigWarn.png
2017-10-04 04:41:35.380   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\bottombar.png
2017-10-04 04:41:35.380   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_browse.png
2017-10-04 04:41:35.380   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_skip.png
2017-10-04 04:41:35.380   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_continue.png
2017-10-04 04:41:35.381   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_close.png
2017-10-04 04:41:35.381   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_exit.png
2017-10-04 04:41:35.381   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_launch.png
2017-10-04 04:41:35.382   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_options.png
2017-10-04 04:41:35.382   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_md5.png
2017-10-04 04:41:35.383   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_save_as.png
2017-10-04 04:41:35.383   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\btn_start.png
2017-10-04 04:41:35.384   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\error.png
2017-10-04 04:41:35.384   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\error_icon.png
2017-10-04 04:41:35.384   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\EULAAccepted.png
2017-10-04 04:41:35.384   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\EULAShow.png
2017-10-04 04:41:35.385   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\GOG_new.png
2017-10-04 04:41:35.385   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\ok.png
2017-10-04 04:41:35.385   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\progress_center.png
2017-10-04 04:41:35.385   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\progress_left.png
2017-10-04 04:41:35.386   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\progress_right.png
2017-10-04 04:41:35.386   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\track_center.png
2017-10-04 04:41:35.386   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\track_left.png
2017-10-04 04:41:35.386   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\track_right.png
2017-10-04 04:41:35.387   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\trackbar_btn.png
2017-10-04 04:41:35.387   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\trackbar_back.png
2017-10-04 04:41:35.562   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\goggalaxybbrd.ini
2017-10-04 04:41:35.563   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\galaxy01_english.png
2017-10-04 04:41:35.610   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\galaxy02_english.png
2017-10-04 04:41:35.652   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\galaxy03_english.png
2017-10-04 04:41:35.687   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\slideshow.ini
2017-10-04 04:41:35.688   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1421404887_english.jpg
2017-10-04 04:41:35.716   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1207664393_english.jpg
2017-10-04 04:41:35.746   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1207658768_english.jpg
2017-10-04 04:41:35.775   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1436951929_english.jpg
2017-10-04 04:41:35.808   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1847879387_english.jpg
2017-10-04 04:41:35.834   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1207659144_english.jpg
2017-10-04 04:41:35.861   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1422870624_english.jpg
2017-10-04 04:41:35.899   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1447688349_english.jpg
2017-10-04 04:41:35.928   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1207658683_english.jpg
2017-10-04 04:41:35.956   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1432208050_english.jpg
2017-10-04 04:41:35.987   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1351624781_english.jpg
2017-10-04 04:41:36.014   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1438268682_english.jpg
2017-10-04 04:41:36.044   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1207658804_english.jpg
2017-10-04 04:41:36.071   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1454067812_english.jpg
2017-10-04 04:41:36.100   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1207659244_english.jpg
2017-10-04 04:41:36.131   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1207659073_english.jpg
2017-10-04 04:41:36.157   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1421404581_english.jpg
2017-10-04 04:41:36.185   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1421404508_english.jpg
2017-10-04 04:41:36.216   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1207666093_english.jpg
2017-10-04 04:41:36.245   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1207660064_english.jpg
2017-10-04 04:41:36.274   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1458826738_english.jpg
2017-10-04 04:41:36.303   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1452681468_english.jpg
2017-10-04 04:41:36.330   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1436885138_english.jpg
2017-10-04 04:41:36.359   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1459790972_english.jpg
2017-10-04 04:41:36.389   Extracting temporary file: C:\users\cedric\Temp\is-PJFET.tmp\1445516929_english.jpg
2017-10-04 04:41:36.483   Current Page: Welcome
2017-10-04 04:41:36.483   Failed to proceed to next wizard page; aborting.
2017-10-04 04:41:36.483   Got EAbort exception.
2017-10-04 04:41:36.483   Deinitializing Setup.
2017-10-04 04:41:36.650   Log closed.

Not an expert and rather looking at writing a GOG installer myself but should the full name of the executable be at this step?

  • task:
    args: /VERYSILENT /SP- /NOCANCEL /SUPPRESSMSGBOXES /NOGUI /DIR=“C:/game” /LOG=“C:\log.txt”
    description: Installing…
    executable: game
    name: wineexec
    prefix: $GAMEDIR

No. Using the file id is fine.