Hello. I've been trying to make a combat arms script (combatarms.nexon.net) and naturally, I would like some help. It's supposed to download the installer, install the game, and then let you put a shortcut where you want. (Yes it does make a prefix). If you see anything that's wrong with what it is supposed to do, please inform me. Remember: It downloads installer and then installs it. Here is where I have gotten so far:
#!/bin/bash
#12/11/09
#Wine version: 1.1.34
#Link to combat arms image is: http://img.informer.com/icons/png/48/910/910869.png
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
POL_SetupWindow_Init
POL_SetupWindow_presentation "Combat Arms" "Nexon" "combatarms.nexon.net" "Bilal Itani" "CAV.33"
select_prefixe "$REPERTOIRE/wineprefix/CAV.33"
POL_SetupWindow_prefixcreate
Set_GLSL "On"
Set_WineVersion_Session "1.1.34"
cd "$REPERTOIRE/wineprefix/CAV.33/drive_c/"
POL_SetupWindow_download "Downloading Combat Arms..." "Downloading Combat Arms..." "http://download3.nexon.net/Game/CombatArms/Downloader/CombatArmsDownloaderV33.exe"
POL_SetupWindow_wait_next_signal "Installation in progress..." "Combat Arms"
wine "$REPERTOIRE/wineprefix/CAV.33/drive_c/CombatArmsDownloaderV33.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_make_shortcut "CAV.33" "Nexon/Combat Arms" "CombatArms.exe" "" "Combat Arms"
POL_SetupWindow_reboot
POL_SetupWindow_Close
exit
Thanks for your help. ;-)
Edited by AmaturePenguin