It is an innosetup installer, so you can use those flags. You'll still get the boxes but the automation does work.
28 lines
1.5 KiB
Bash
28 lines
1.5 KiB
Bash
download "https://www.mm-galabo.com/sr/Download_files_srfv/shadowrine_fullvoice3.171.exe" "https://raw.githubusercontent.com/LordLuceus/sr-english-localization/master/language_en.dat"
|
|
export WINEARCH="win64" # Migrated to wine64 with WINETRICKS_FORCE=1
|
|
export winVer="win8"
|
|
install_wine_bottle
|
|
# Add bcrypt DLL override required for Shadow Line to run
|
|
cat > /tmp/bcrypt_override.reg << 'EOF'
|
|
[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
|
|
"bcryptprimitives"="native,builtin"
|
|
EOF
|
|
wine regedit /tmp/bcrypt_override.reg
|
|
rm /tmp/bcrypt_override.reg
|
|
{
|
|
echo "# Installing Shadow Line..."
|
|
timeout 300 wine "${cache}/shadowrine_fullvoice3.171.exe" /sp- /VERYSILENT /SUPPRESSMSGBOXES 2>&1 || true
|
|
echo "# Installation complete"
|
|
} | agm_progressbox "Installing Game" "Installing Shadow Line (this may take a few minutes)..."
|
|
# Kill any auto-launched game processes (installer lacks skipifsilent flag)
|
|
wineserver -k 2>/dev/null || true
|
|
mv -v "${cache}/language_en.dat" "${WINEPREFIX}/drive_c/Program Files (x86)/GalaxyLaboratory/ShadowRine_FullVoice/SystemData/language_en.dat"
|
|
add_launcher "c:\Program Files (x86)\GalaxyLaboratory\ShadowRine_FullVoice\play_sr.exe"
|
|
echo "Please set the language to English when the game opens."
|
|
echo "Go to options and press enter."
|
|
echo "Press down arrow 5 times and press enter."
|
|
echo "Press down arrow 1 time and press enter."
|
|
echo "Press up arrow 2 times and press enter."
|
|
echo "If everything worked as expected you should be back on the game menu and speech should work."
|
|
alert
|