Help running cash register program

Questions about Wine on Linux
Locked
mattig89ch
Level 2
Level 2
Posts: 24
Joined: Sat Aug 07, 2010 11:52 pm

Help running cash register program

Post by mattig89ch »

Hidy ho all,

I wanted to see if it was possible to run a program my company sells to clients in linux. Its an exe program, which we don't own the rights to, so I can't make changes to how its compiled.

This program acts like a cash register, interacting with a local sql database, scanners, printers, ect.

Whenever I run the installer program using wine I get an error stating the installer was interrupted during the install process and no changes were made.

When I fire up the installer via the cli it says I don't own or have rights to the folder the installer is in. I have tried moving the installer around via the gui, but the results are always the same. I don't own /home/user/.wine folder. I have tried taking ownership of this folder via the cli with the "sudo chown -R user /home/user/.wine" command, but I keep getting the same error message.

Is there a trick to running windows installers that i don't know? Or is there another way to run installers then the ui and command line?

I'm running Ubuntu 14.04.2 LTS with the Cinnamon UI. And I have a topic over on the Ubuntu forums as well (http://ubuntuforums.org/showthread.php?t=2279863), but I figured posting here would increase my chances of getting this topic answered
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help running cash register program

Post by dimesio »

Basic info on running installers: http://wiki.winehq.org/FAQ#head-f351523 ... 8da63be66f
Basic info on running apps from the command line: http://wiki.winehq.org/FAQ#head-3b297df ... b8edc21619
When I fire up the installer via the cli it says I don't own or have rights to the folder the installer is in. I have tried moving the installer around via the gui, but the results are always the same. I don't own /home/user/.wine folder. I have tried taking ownership of this folder via the cli with the "sudo chown -R user /home/user/.wine" command, but I keep getting the same error message.
The user you are logged in as when you are trying to use Wine must own the wineprefix you are trying to use, or Wine will refuse to run. Did you ever run Wine as sudo/root? Doing that will mess up the permissions of the wineprefix. http://wiki.winehq.org/FAQ#run_as_root

If none of that helps, post terminal output from trying to run an installer, including the command used to run it.
mattig89ch
Level 2
Level 2
Posts: 24
Joined: Sat Aug 07, 2010 11:52 pm

Re: Help running cash register program

Post by mattig89ch »

username@matt-vboxubuntu:~/Downloads/Rms2.0$ sudo root wine MSDRMS20_SO_enUS.exe
sudo: root: command not found

I installed wine via the software center, if that helps any.

Edit: when I use the ui to run the installer, and tell it to put the output in the console, it shows the attached pictures output
Attachments
Wineoutput.JPG
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help running cash register program

Post by dimesio »

mattig89ch wrote:username@matt-vboxubuntu:~/Downloads/Rms2.0$ sudo root wine MSDRMS20_SO_enUS.exe
sudo: root: command not found
https://help.ubuntu.com/community/RootSudo.

And why, exactly, did you try to do that after I told you that doing so would mess up the permissions of the wineprefix and linked you to an FAQ entry whose first words are Never run Wine as root!?
I installed wine via the software center, if that helps any.
Probably irrelevant, but what Wine version?
Edit: when I use the ui to run the installer, and tell it to put the output in the console, it shows the attached pictures output
In the future, please copy and paste console output as plain text, not a screenshot.

Try a clean wineprefix: delete ~/.wine and then run wineboot to recreate it. If your app is 32 bit, and you are on a 64 bit system, you should probably try a 32 bit wineprefix. Do that by running wineboot with the WINEARCH variable set:

Code: Select all

WINEARCH=win32 wineboot
After you've recreated ~/.wine as 32 bit, try installing your app to it.
mattig89ch
Level 2
Level 2
Posts: 24
Joined: Sat Aug 07, 2010 11:52 pm

Re: Help running cash register program

Post by mattig89ch »

In order
This is a virtual machine. I have made some customizations to it, but I don't use it daily, and could delete it tomorrow if needed. So I can mess up this machine as much or a little as I like without fear of issues. That said, I thought I was following your reccomendation. Looking back, I did mis-read that one. Ah well. Do I need to do anything to fix any/all damage that command caused? Or is it the type of damage that needs a system wipe?

This version is 1.6.2

And I did try to copy and paste the output first. But I was unable to do so. Cntrl+C closed the window, and right click de-selected the text.

I'll try those commands and get back to you.

Edit: ok, so heres the output after running those commands:

username@matt-vboxubuntu:~$ sudo rm -rf ~/.wine
[sudo] password for username:
username@matt-vboxubuntu:~$ winearch=win32 wineboot
wine: created the configuration directory '/home/username/.wine'
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:iphlpapi:NotifyAddrChange (Handle 0x103e2b8, overlapped 0x103e2d0): stub
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:iphlpapi:NotifyAddrChange (Handle 0x10fe890, overlapped 0x10fe89c): stub
wine: configuration in '/home/username/.wine' has been updated.

I tried running the installer through the ui again, and got the same output as the screenshot I posted.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help running cash register program

Post by dimesio »

mattig89ch wrote: username@matt-vboxubuntu:~$ winearch=win32 wineboot
That should be WINEARCH=win32. Linux is case-sensitive. You recreated the wineprefix (the rest of the output is normal), but if you have 64 bit Wine installed then the wineprefix would be created as 64 bit by default because the incorrectly typed variable would be ignored. So you will have to do that again.

1.6.2 is about two years old, so you should upgrade to the development branch. Ubuntu does (finally) have packages for 1.7.44 in the Wine PPA; that's one version behind, but should be recent enough for testing at this point. You will have to add that PPA to your package manager if you haven't already. And please run the installer from the command line following the instructions in the FAQ that I linked you to.

As for the issue with copying from the console, I am on KDE and use Konsole, and right-clicking doesn't deselect the text, so I can't help you much with that. Consult the documentation for whatever program you're using, or ask on the Ubuntu forum.
mattig89ch
Level 2
Level 2
Posts: 24
Joined: Sat Aug 07, 2010 11:52 pm

Re: Help running cash register program

Post by mattig89ch »

Oh I see, should I just re-delete the .wine folder again? Or do I need to do a fresh install?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help running cash register program

Post by dimesio »

Just re-delete the ~/.wine folder and recreate it as before, but type WINEARCH all caps. Please upgrade Wine first, though, because it is possible that merely upgrading will solve the problem (especially with a version that old).
mattig89ch
Level 2
Level 2
Posts: 24
Joined: Sat Aug 07, 2010 11:52 pm

Re: Help running cash register program

Post by mattig89ch »

Rodger walnut. I posted on the ubuntu forums on how to add that package to the software store thing.
mattig89ch
Level 2
Level 2
Posts: 24
Joined: Sat Aug 07, 2010 11:52 pm

Re: Help running cash register program

Post by mattig89ch »

Just keeping the thread updated.

I managed to get Wine 1.7 installed via the command line (that was a pain in my temples). I haven't had time to try and running an install just yet. Will post annother update when I do.

Also, srry for the double post. I don't see a way to edit my previous post to include that update.
mattig89ch
Level 2
Level 2
Posts: 24
Joined: Sat Aug 07, 2010 11:52 pm

Re: Help running cash register program

Post by mattig89ch »

Whelp,

I managed to get the installer to run just fine.

Now, whenever I try to run the program, its throwing up an error. But the installer seems to run!
Locked