[SOLVED] Installer Exits with Code 18432 (Star Trek: Starfleet Command II - Empires at War)

Hi all,

I’m working on an installer for Star Trek: Starfleet Command II - Empires at War and I’ve run into an issue where manually installing the game works well, but replicating those steps through the installer fails with exit code 18432.

The only other mention of this exit code I could find is this reddit thread for a Lego Racers installer.

Again, I have the game up and running through lutris if I follow these steps manually, but I’d like to offer an installer if possible.

Any assistance is deeply appreciated.

Error Reports and Logs

  1. The file created by running lutris --submit-issue in a terminal. Link
  2. Output of lutris -d. Kill Lutris and run lutris -d through a terminal. Reproduce your problem and share the output. Link
  3. The installer exits with code 18432 after the initial Setup.exe is completed. If files are not removed after the installer aborts and are configured to run through Lutris, the following logs are available after launching the game:
lutris-wrapper: Star Trek: Starfleet Command II - Empires at War
Started initial process 10155 from gamemoderun /home/rob/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /home/rob/Games/lutris/man/starfleet-command-ii-empires-at-war/drive_c/Program Files (x86)/Taldren/Starfleet Command II/StarFleet2.exe
Start monitoring process.
gamemodeauto: 
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
Monitored process exited.
Initial process has exited (return code: 0)
Exit with return code 0
  1. N/A

EDIT: The suggestion below solved this issue for me

this is what it is failing at:

Started initial process 3177 from /home/rob/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /home/rob/.cache/lutris/installer/starfleet-command-ii-empires-at-war/cdrom/Setup.exe

so verify the file exists in this folder, has correct permissions etc

1 Like

Thank you for the reply and suggestion. I can confirm that the Setup.exe does exist in ~/.cache/lutris/installer/starfleet-command-ii-empires-at-war/cdrom/Setup.exe. I’ve also given everything in that folder 755. Unfortunately, this has not let me proceed past the exit condition.

Started initial process 2908 from /usr/bin/bash -c find /home/rob/.cache/lutris/installer/starfleet-command-ii-empires-at-war/cdrom -name 'Setup.exe'
Start monitoring process.
/home/rob/.cache/lutris/installer/starfleet-command-ii-empires-at-war/cdrom/Setup.exe
Monitored process exited.
Initial process has exited (return code: 0)
All processes have quit
Exit with return code 0
DEBUG    2024-03-01 08:44:44,230 [command.on_stop:219]:Process 2906 has terminated with code 0
DEBUG    2024-03-01 08:44:45,083 [commands._monitor_task:441]:Return code: 0
DEBUG    2024-03-01 08:44:45,083 [interpreter._iter_commands:317]:Installer command: {'execute': {'command': 'ls -la $CACHE/cdrom'}}
lutris-wrapper: /usr/bin/bash
Started initial process 2915 from /usr/bin/bash -c ls -la /home/rob/.cache/lutris/installer/starfleet-command-ii-empires-at-war/cdrom
Start monitoring process.
total 686260
drwxr-xr-x 6 rob rob      4096 Mar  1 08:44 .
drwxr-xr-x 6 rob rob      4096 Mar  1 08:44 ..
drwxr-xr-x 3 rob rob      4096 Mar  1 08:44 API
-rwxr-xr-x 1 rob rob        46 Mar  1 08:44 Autorun.inf
-rwxr-xr-x 1 rob rob   2633728 Mar  1 08:44 Autostart.exe
-rwxr-xr-x 1 rob rob 600978059 Mar  1 08:44 data1.cab
-rwxr-xr-x 1 rob rob    296095 Mar  1 08:44 data1.hdr
-rwxr-xr-x 1 rob rob  97185453 Mar  1 08:44 data2.cab
-rwxr-xr-x 1 rob rob       104 Mar  1 08:44 DATA.TAG
drwxr-xr-x 2 rob rob      4096 Mar  1 08:44 DirectX7a
-rwxr-xr-x 1 rob rob         1 Mar  1 08:44 disk1
-rwxr-xr-x 1 rob rob         1 Mar  1 08:44 disk2
-rwxr-xr-x 1 rob rob    297989 Mar  1 08:44 _INST32I.EX_
-rwxr-xr-x 1 rob rob     27648 Mar  1 08:44 _ISDel.exe
-rwxr-xr-x 1 rob rob      4679 Mar  1 08:44 lang.dat
-rwxr-xr-x 1 rob rob       883 Mar  1 08:44 layout.bin
drwxr-xr-x 2 rob rob      4096 Mar  1 08:44 Movies
drwxr-xr-x 2 rob rob      4096 Mar  1 08:44 MPlayer
-rwxr-xr-x 1 rob rob       450 Mar  1 08:44 os.dat
-rwxr-xr-x 1 rob rob     25045 Mar  1 08:44 readme.txt
-rwxr-xr-x 1 rob rob    165400 Mar  1 08:44 setup.bmp
-rwxr-xr-x 1 rob rob     34816 Mar  1 08:44 _Setup.dll
-rwxr-xr-x 1 rob rob     71680 Mar  1 08:44 Setup.exe
-rwxr-xr-x 1 rob rob        94 Mar  1 08:44 SETUP.INI
-rwxr-xr-x 1 rob rob     59710 Mar  1 08:44 setup.ins
-rwxr-xr-x 1 rob rob        49 Mar  1 08:44 setup.lid
-rwxr-xr-x 1 rob rob      4710 Mar  1 08:44 sfc2.ico
-rwxr-xr-x 1 rob rob    175312 Mar  1 08:44 _sys1.cab
-rwxr-xr-x 1 rob rob      3905 Mar  1 08:44 _sys1.hdr
-rwxr-xr-x 1 rob rob    663793 Mar  1 08:44 _user1.cab
-rwxr-xr-x 1 rob rob      4737 Mar  1 08:44 _user1.hdr

I should clarify that Setup.exe can run and does run. This was the case with the installer script initially.

The resulting files in $GAMEDIR are a well installed game. If I choose not to remove files after the installer aborts, I can configure Lutris to run it.

So my problem is understanding what signal Lutris is seeing in that install process to exit early. Since this is an older game that requires multiple patches and configuration to run optimally, it would be great to run past the game setup file.

Apologies for not completely describing my problem, I’ve edited the initial post to add clarity.

Thank you again for the reply and suggestions. It is appreciated.

Cheers!

Maybe jump to the discord server (link on the lutris.net site) - interesting problem

1 Like

if you are sure everything installed correctly, you can use an option to ignore error, in your script, below wineexec add:
return_code: 18432

1 Like

Thank you both (@OJ1 and @legluondunet) for the help offered here and on the discord. Disabling the exit code in the wineexec task by adding return_code: 18432 allowed the installer to continue past that point and complete successfully.