Help installing software with multiple cd's

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
doctordruidphd
Level 2
Level 2
Posts: 33
Joined: Thu Jan 22, 2009 4:02 pm

Help installing software with multiple cd's

Post by doctordruidphd »

I have been trying to install several games, and all of the ones that have more than one disk fail, one way or another, at the point of changing cd's. Some (doom3) just quit [there exists an alternative plan for doom3], and others (Baldur's Gate-SoA) lock up the cd and won't let go. The only way to get the cd out is to kill the installer. I found the instructions on WineHQ, which say to run the installer this way:

Code: Select all

wine start /unix /media/cdrom/setup.exe
When I do that, the installer starts, but unless I mount the cdrom first, it can't find any files on it, and if I do mount it, I can't get the cdrom out when the change disk message appears. The only way to get the cd out without killing the installer is to open a shell and do an 'eject -m', but then linux won't mount or read the new cd.
Well, some people have this working. Any suggestions how I install an application with multiple cd's, where the above instructions do not work? Maybe there is something else I don't have set up right? Thanks in advance.

kUbuntu-9.04
Wine ?.18
User avatar
Daemon
Level 4
Level 4
Posts: 101
Joined: Wed Nov 12, 2008 2:24 pm

Post by Daemon »

You should be able to open the exe from Konqueror(?) with the wine windows program loader. Either that or burn the Cds to iso and use an Iso loading program - Gmountiso or whatever the equivalent is in KDE land.
doctordruidphd
Level 2
Level 2
Posts: 33
Joined: Thu Jan 22, 2009 4:02 pm

Post by doctordruidphd »

Tried both. Running from Konqueror, the system refuses to eject the CD when the installer asks for disk2.
I tried the iso route, and the installer claims it cannot find the files it wants when I try to change to the mounted iso image.
I mounted the install disk on /media/install, and the disk2 image on /media/cdrom. When it asks for disk2, and I give it Z:/media/cdrom, it says it can't find a file.
This program is rated "gold" in the appdb, so someone has it working. I tried transferring my windows install, but it says the program isn't installed (registry problems?).
Maybe I don't know how to do it right? Maybe someone could explain in more detail?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Help installing software with multiple cd's

Post by vitamin »

doctordruidphd wrote:I can't get the cdrom out when the change disk message appears.
http://wiki.winehq.org/FAQ#head-dc33f7e ... ebb1f024f7
Warren Dumortier

Help installing software with multiple cd's

Post by Warren Dumortier »

Little question: will wine ever handle multiple discs without using wine
eject? It's very annoying, but if i remember it is because it doesn't eject
due to

2009/4/5 vitamin <[email protected]>
doctordruidphd wrote:
I can't get the cdrom out when the change disk message appears.
http://wiki.winehq.org/FAQ#head-dc33f7e ... ebb1f024f7





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Help installing software with multiple cd's

Post by austin987 »

On Sun, Apr 5, 2009 at 3:32 AM, Warren Dumortier <[email protected]> wrote:
Little question: will wine ever handle multiple discs without using wine
eject? It's very annoying, but if i remember it is because it doesn't eject
due to
The problem is that there's a file handle open in *nix, e.g., the bash terminal.

--
-Austin
perryh

Help installing software with multiple cd's

Post by perryh »

Austin English <[email protected]> wrote:
On Sun, Apr 5, 2009 at 3:32 AM, Warren Dumortier <[email protected]> wrote:
Little question: will wine ever handle multiple discs without
using wine eject? It's very annoying, but if i remember it is
because it doesn't eject due to
The problem is that there's a file handle open in *nix, e.g., the
bash terminal.
Ideally, wine would figure out that the application has requested
a disk change and do "wine eject" internally. In practice, the
detection would probably turn out to be a Turing test.

What *could* be done would be to access removable devices (at least,
CDs and floppies) without having them mounted, using something along
the lines of mtools. I've never understood the point of having the
whole-device symlinks (such as $WINEPREFIX/dosdevices/d::) unless
they were intended to be used for access to unmounted devices.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Help installing software with multiple cd's

Post by vitamin »

perryh wrote:Ideally, wine would figure out that the application has requested
a disk change
They never do. They just tell user to put next CD. There is no way for Wine to know about this. The only thing Wine might do is to listen to dbus/HAL for the unmount request from user (when user pushes the button to eject CD).
perryh wrote:What *could* be done would be to access removable devices (at least, CDs and floppies) without having them mounted,
Nothing. This is not Wine's job to mount devices.
perryh wrote:I've never understood the point of having the
whole-device symlinks (such as $WINEPREFIX/dosdevices/d::)
Then you have no clue about object manager. I'd suggest you to read up on that subject.
perryh

Help installing software with multiple cd's

Post by perryh »

"vitamin" <winehq.org![email protected]> wrote:
perryh wrote:
Ideally, wine would figure out that the application has
requested a disk change
They never do. They just tell user to put next CD.
Telling the user to put in the next CD is exactly what I mean by
"requesting a disk change."
There is no way for Wine to know about this. The only thing Wine
might do is to listen to dbus/HAL for the unmount request from
user (when user pushes the button to eject CD).
Or it could notice that the app has put up a modal dialog containing
text that asks for the next CD. Yes, that sort of recognition could
be tricky -- probably no two installers use exactly the same message
-- which is why I acknowledged that it might amount to a Turing test.
It is surely possible in principle, but not necessarily practical.
perryh wrote:
What *could* be done would be to access removable devices
(at least, CDs and floppies) without having them mounted,
Nothing. This is not Wine's job to mount devices.
Not to mount them, but to access them without needing them to be
mounted. This would be a much better match to Windows, which has
no concept of mounting and unmounting removable disks, and it would
not be difficult to do for floppies and other FAT-formatted disks
because the functionality is already implemented in mtools. All
that's needed is for wine to call mtools to read files instead of
accessing them via the filesystem. Of course mtools would need to
be given the proper device name, which wine can get by reading the
a:: (or d::, etc.) symlink.

I don't know offhand whether a similar tool already exists for CDs,
but if not it might be worth writing one since it would solve the
mount/unmount problem once and for all.
Plamen.Vassilev
Level 2
Level 2
Posts: 25
Joined: Thu Mar 13, 2008 7:41 am

Help installing software with multiple cd's

Post by Plamen.Vassilev »

On Monday 06 April 2009 10:22:26 [email protected] wrote:
"vitamin" <winehq.org![email protected]> wrote:
perryh wrote:
Ideally, wine would figure out that the application has
requested a disk change
They never do. They just tell user to put next CD.
Telling the user to put in the next CD is exactly what I mean by
"requesting a disk change."
There is no way for Wine to know about this. The only thing Wine
might do is to listen to dbus/HAL for the unmount request from
user (when user pushes the button to eject CD).
Or it could notice that the app has put up a modal dialog containing
text that asks for the next CD. Yes, that sort of recognition could
be tricky -- probably no two installers use exactly the same message
-- which is why I acknowledged that it might amount to a Turing test.
It is surely possible in principle, but not necessarily practical.
It's not a viable solution at all. There is no way from programming point of
view to detect CD change request. If you think otherwise - send patches to
devs.
perryh wrote:
What *could* be done would be to access removable devices
(at least, CDs and floppies) without having them mounted,
Nothing. This is not Wine's job to mount devices.
Not to mount them, but to access them without needing them to be
mounted. This would be a much better match to Windows, which has
no concept of mounting and unmounting removable disks,
Windows does have a concept of mounting and unmounting disks. It is hidden
from the user's point of view for Hard drives, CDs and Floppies, but clearly
seen when using USB flash memory sticks for example, or other media that can
be disconnected in the middle of read/write operation.
and it would
not be difficult to do for floppies and other FAT-formatted disks
CDs are usually not FAT formatted.
because the functionality is already implemented in mtools. All
that's needed is for wine to call mtools to read files instead of
accessing them via the filesystem. Of course mtools would need to
be given the proper device name, which wine can get by reading the
a:: (or d::, etc.) symlink.

I don't know offhand whether a similar tool already exists for CDs,
but if not it might be worth writing one since it would solve the
mount/unmount problem once and for all.
As always - devs will enjoy your patches.


--
regards
Plamen Vassilev
Software Engineer & System Administrator

Bulgaria, Varna
T: +359 5105 4155
C: +359 899 989647
ICQ: 73027127
Skype: plamen.vassilev
E: [email protected]
Cloudef
Level 4
Level 4
Posts: 138
Joined: Wed Mar 18, 2009 3:10 pm

Post by Cloudef »

Open up terminal and type wine eject
James Mckenzie

Help installing software with multiple cd's

Post by James Mckenzie »

Plamen Vassilev <[email protected]> wrote on April 6th:
perryh wrote: Nothing. This is not Wine's job to mount devices.
Not to mount them, but to access them without needing them to be
mounted. This would be a much better match to Windows, which has
no concept of mounting and unmounting removable disks,
Windows does have a concept of mounting and unmounting disks. It is hidden
from the user's point of view for Hard drives, CDs and Floppies, but clearly
seen when using USB flash memory sticks for example, or other media that can
be disconnected in the middle of read/write operation.
That is the application that shows up in the system part of the taskbar. In early versions of Windows changing floppies was a challange. This was fixed, very quickly. This may require another look at MSDN to figure out what is called when the user pushes the button on the CD door. The solution was to recognize the change disk light on the floppy drive. BTW, this was also broken in OS/2 until IBM figured it out. There was a method that was employed that did not use the light anymore as they were (and still are) not reliable as a method to detect that a disk has changed.
and it would
not be difficult to do for floppies and other FAT-formatted disks
CDs are usually not FAT formatted.
CDs should not be formatted FAT as that is not supported by most systems. Programs like Roxio CD Creator create a pseudo-FAT and file system.

Still the problem remains that a user needs to change CDs for whatever reason and Wine has difficulties with this. There should be some method to send a umount/eject to the device specified through dosdevices.

James McKenzie
Vincent Povirk

Help installing software with multiple cd's

Post by Vincent Povirk »

On Mon, Apr 6, 2009 at 9:55 AM, James Mckenzie
<[email protected]> wrote:
Still the problem remains that a user needs to change CDs for whatever reason and Wine has difficulties with this.  There should be some method to send a umount/eject to the device specified through dosdevices.
Autohotkey has a "Drive" command that seems to do exactly that:
http://www.autohotkey.com/docs/commands/Drive.htm

It may make a good test case for this.

Vincent Povirk
Locked