The forum

Trying to understand POL_SetupWindow_cdrom

... and how $CDROM is defined

Author Replies
amarsianin Saturday 1 October 2016 at 11:10
amarsianinAnonymous

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?

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