The forum
World in Conflict
Author |
Replies |
Kjella |
Tuesday 14 October 2008 at 20:23
|
Kjella![Anonymous](https://www.playonmac.com/images/anonymous.png)
|
World in Conflict script added, based on WINE AppDB instructions and works for me. Note that to work for other install languages than English this script will probably have to be tweaked as wicloc11.sdf is language-dependant.
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
cd "$REPERTOIRE/tmp"
FULLNAME="World in Conflict"
CODENAME="WorldInConflict"
LINKDIR="Program Files/Sierra Entertainment/World in Conflict"
LINKFILE="wic.exe"
ICONDIR="http://software.informer.com/icons/png/48/9"
ICONNAME="9304.png"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$FULLNAME" "Massive Entertainment" "http://www.worldinconflict.com" "Kjella" "$CODENAME"
select_prefixe "$REPERTOIRE/wineprefix/$CODENAME"
POL_SetupWindow_prefixcreate
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
wine $CDROM/setup.exe
# Wait and detect exit doesn't work for some reason
POL_SetupWindow_message "Please complete the Windows installer of $FULLNAME before continuing." "Post-install configuration"
# Download dlls
cd $REPERTOIRE/wineprefix/$CODENAME/drive_c/windows/system32
wget --referer=http://www.dlldump.com http://www.dlldump.com/cgi-bin/testwrap/downloadcounts.cgi?rt=count\&path=dllfiles/D/dxdiagn.dll
# Register dlls and other tweaks
rm -f dll.reg
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > dll.reg
echo "\"d3d10\"=\"disabled\"" >> dll.reg
echo "\"dxdiagn\"=\"native,builtin\"" >> dll.reg
echo "[HKEY_CURRENT_USER\Software\Wine\Direct3D]" >> dll.reg
echo "\"UseGLSL\"=\"disabled\"" >> dll.reg
echo "[HKEY_CURRENT_USER\Software\Wine\DirectSound]" >> dll.reg
echo "\"DefaultBitsPerSample\"=\"8\""
echo "\"DefaultSampleRate\"=\"22050\""
echo "\"EmulDriver\"=\"Y\""
regedit dll.reg
cp $CDROM/bin/binkw32.dll $REPERTOIRE/wineprefix/$CODENAME/drive_c/Program\ Files/Sierra\ Entertainment/World\ in\ Conflict/
cp $CDROM/bin/dbghelp.dll $REPERTOIRE/wineprefix/$CODENAME/drive_c/Program\ Files/Sierra\ Entertainment/World\ in\ Conflict/
cp $CDROM/bin/mss32.dll $REPERTOIRE/wineprefix/$CODENAME/drive_c/Program\ Files/Sierra\ Entertainment/World\ in\ Conflict/
cp $CDROM/ldata/English/wicloc11.sdf $REPERTOIRE/wineprefix/$CODENAME/drive_c/Program\ Files/Sierra\ Entertainment/World\ in\ Conflict/
cp $CDROM/ldata/All/wicloc12.sdf $REPERTOIRE/wineprefix/$CODENAME/drive_c/Program\ Files/Sierra\ Entertainment/World\ in\ Conflict/
# Set up the shortcut
cd $REPERTOIRE/icones
wget $ICONDIR/$ICONNAME
mv $ICONNAME $CODENAME.png
POL_SetupWindow_make_shortcut "$CODENAME" "$LINKDIR" "$LINKFILE" "$CODENAME.png" "$FULLNAME"
POL_SetupWindow_reboot
POL_SetupWindow_Close
exit
|
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com