Use flags for installing Shadow Line.
It is an innosetup installer, so you can use those flags. You'll still get the boxes but the automation does work.
This commit is contained in:
@@ -9,26 +9,15 @@ cat > /tmp/bcrypt_override.reg << 'EOF'
|
|||||||
EOF
|
EOF
|
||||||
wine regedit /tmp/bcrypt_override.reg
|
wine regedit /tmp/bcrypt_override.reg
|
||||||
rm /tmp/bcrypt_override.reg
|
rm /tmp/bcrypt_override.reg
|
||||||
wine "${cache}/shadowrine_fullvoice3.171.exe" /sp- &
|
{
|
||||||
xdotool sleep 30 key --clearmodifiers --delay=500 Return
|
echo "# Installing Shadow Line..."
|
||||||
xdotool key --clearmodifiers --delay=500 Return
|
timeout 300 wine "${cache}/shadowrine_fullvoice3.171.exe" /sp- /VERYSILENT /SUPPRESSMSGBOXES 2>&1 || true
|
||||||
xdotool key --clearmodifiers --delay=500 Return
|
echo "# Installation complete"
|
||||||
xdotool key --clearmodifiers --delay=500 Return
|
} | agm_progressbox "Installing Game" "Installing Shadow Line (this may take a few minutes)..."
|
||||||
echo "Running installer, this will take approximately 3 minutes..."
|
# Kill any auto-launched game processes (installer lacks skipifsilent flag)
|
||||||
xdotool sleep 180 key --clearmodifiers --delay=500 Down
|
wineserver -k 2>/dev/null || true
|
||||||
xdotool key --clearmodifiers --delay=500 space
|
mv -v "${cache}/language_en.dat" "${WINEPREFIX}/drive_c/Program Files (x86)/GalaxyLaboratory/ShadowRine_FullVoice/SystemData/language_en.dat"
|
||||||
xdotool key --clearmodifiers --delay=500 alt+f
|
add_launcher "c:\Program Files (x86)\GalaxyLaboratory\ShadowRine_FullVoice\play_sr.exe"
|
||||||
wineserver -w
|
|
||||||
# Move installation from Program Files (x86) to Program Files (game expects this path)
|
|
||||||
mv -v "${WINEPREFIX}/drive_c/Program Files (x86)/GalaxyLaboratory" "${WINEPREFIX}/drive_c/Program Files/"
|
|
||||||
# Update registry paths from (x86) to normal Program Files
|
|
||||||
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "Inno Setup: App Path" /t REG_SZ /d "C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice" /f
|
|
||||||
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "InstallLocation" /t REG_SZ /d "C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice\\" /f
|
|
||||||
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "QuietUninstallString" /t REG_SZ /d "\"C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice\\unins000.exe\" /SILENT" /f
|
|
||||||
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "UninstallString" /t REG_SZ /d "\"C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice\\unins000.exe\"" /f
|
|
||||||
wine reg add "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\ShadowRine FullVoice Edition ~The Eternal Hope~_is1" /v "Readme" /t REG_SZ /d "C:\\Program Files\\GalaxyLaboratory\\ShadowRine_FullVoice\\ReadMe.html" /f
|
|
||||||
mv -v "${cache}/language_en.dat" "${WINEPREFIX}/drive_c/Program Files/GalaxyLaboratory/ShadowRine_FullVoice/SystemData/language_en.dat"
|
|
||||||
add_launcher "c:\Program Files\GalaxyLaboratory\ShadowRine_FullVoice\play_sr.exe"
|
|
||||||
echo "Please set the language to English when the game opens."
|
echo "Please set the language to English when the game opens."
|
||||||
echo "Go to options and press enter."
|
echo "Go to options and press enter."
|
||||||
echo "Press down arrow 5 times and press enter."
|
echo "Press down arrow 5 times and press enter."
|
||||||
|
|||||||
Reference in New Issue
Block a user