Hello,
I am new to this forum so bear with me please.
I experienced problems with a couple of installers in that they all failed to set $CDROM correctly and, consequently, the setup file.
For instance, if I do something like (in my shortcut for Total Annihilation that I got from this site and adjusted a bit):
#find setup file
POL_SetupWindow_cdrom
if [ -e "$CDROM/SETUP.EXE" ]; then
setup_file = "SETUP.EXE"
fi
# DEBUG=========================================================================
echo -e "The variable CDROM is:\n"
echo -e "--------------------------------------------------------------------\n"
echo $CDROM
echo -e "--------------------------------------------------------------------\n"
pwd
ls
echo -e "--------------------------------------------------------------------\n"
echo -e "The variable setup_file is:\n"
echo -e "--------------------------------------------------------------------\n"
echo $setup_file
echo -e "--------------------------------------------------------------------\n"
# DEBUG=========================================================================
POL_SetupWindow_check_cdrom "$setup_file"
I get (doing playonlinux --run "TA", that's the name of my shortcut):
[main] Message: PlayOnLinux (4.2.10) is starting
[clean_tmp] Message: Cleaning temp directory
Script started /home/user/.PlayOnLinux/shortcuts/TA
[POL_SetupWindow_Init] Message: Creating new window for pid 13958
[POL_SetupWindow_menu] Message: menu answer: Other
[POL_SetupWindow_cdrom] Message: CD-ROM selected: Other
[POL_SetupWindow_textbox] Message: textbox answer: /media/user/virtual-drive/1
[POL_SetupWindow_cdrom] Message: cdrom answer: /media/user/virtual-drive/1
The variable CDROM is:
--------------------------------------------------------------------
/media/user/virtual-drive/1
--------------------------------------------------------------------
/media/user
data
--------------------------------------------------------------------
The variable setup_file is:
--------------------------------------------------------------------
--------------------------------------------------------------------
[POL_SetupWindow_check_cdrom] Warning: Unable to find the CD-ROM
Even though I mounted the game .iso successfully to /media/user/virtual-drive/1 and SETUP.EXE is indeed there.
So why are $CDROM and $setp_file empty?