wine and aladdin hasp hardware dongle

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
frk
Newbie
Newbie
Posts: 3
Joined: Fri Jul 11, 2008 3:14 am

wine and aladdin hasp hardware dongle

Post by frk »

Hi,
I have shifted to linux fews months ago with a great satisfaction and i don't want to use windows anymore. But... i need to use a windows program protected by a dongle. I had tried wine without succeed to run it, so i tried virtualbox but it does not support parallel port, so I'm back to wine !.

The problem is that the dongle driver cannot be installed, it returns me :

Installing the Device driver failed, the error message is :
Failed to query processes accessing the driver
Failed to query the registry

I can also use shell command with options like: wine HINSTALL.exe -option

I have tried some option without success. But a different message appear when i have tried like this :

Failed to write the hasp value in the DOS devices key in the Database Registry
Failed to open registry0x200200a 0x10001 0x2

despite the error, the -info option returns that the driver is installed !. But my program refuses to run and returns HASP device driver not installed (-100). So i'm stuck!

I'm a beginner in Linux and of course with wine. Is there any solutions or tricks to go ahead ?

driver HASP 4.81
Linux Ubuntu 8.04
Wine 1.0

Thank a lot,
Frank
Usurp
Level 4
Level 4
Posts: 161
Joined: Sat Apr 19, 2008 7:16 am

Re: wine and aladdin hasp hardware dongle

Post by Usurp »

frk wrote:Hi,
I have shifted to linux fews months ago with a great satisfaction and i don't want to use windows anymore. But... i need to use a windows program protected by a dongle. I had tried wine without succeed to run it, so i tried virtualbox but it does not support parallel port, so I'm back to wine !.

The problem is that the dongle driver cannot be installed, it returns me :

Installing the Device driver failed, the error message is :
Failed to query processes accessing the driver
Failed to query the registry
http://wiki.winehq.org/FAQ#head-8021e00 ... 621b9d9366
jeffz
Level 5
Level 5
Posts: 345
Joined: Thu Mar 13, 2008 10:03 pm

Re: wine and aladdin hasp hardware dongle

Post by jeffz »

Usurp wrote:
frk wrote:Hi,
I have shifted to linux fews months ago with a great satisfaction and i don't want to use windows anymore. But... i need to use a windows program protected by a dongle. I had tried wine without succeed to run it, so i tried virtualbox but it does not support parallel port, so I'm back to wine !.

The problem is that the dongle driver cannot be installed, it returns me :

Installing the Device driver failed, the error message is :
Failed to query processes accessing the driver
Failed to query the registry
http://wiki.winehq.org/FAQ#head-8021e00 ... 621b9d9366
Someone actually posted a patch to wine-devel for support of USB dongles - it might be worth a try...

http://www.winehq.org/pipermail/wine-de ... 67114.html
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

same kind of problem

Post by TimFR »

Hi,
I' d like to add this patch to my Wine (version 1.1.2, running on Ubuntu hardy) in order to use the SafeNet dongle, but I don't really know how to do it...

Please can someone help me?

PS: Thanks JeffZ for telling me this patch exists! :)
jeffz
Level 5
Level 5
Posts: 345
Joined: Thu Mar 13, 2008 10:03 pm

Re: same kind of problem

Post by jeffz »

TimFR wrote:Hi,
I' d like to add this patch to my Wine (version 1.1.2, running on Ubuntu hardy) in order to use the SafeNet dongle, but I don't really know how to do it...

Please can someone help me?

PS: Thanks JeffZ for telling me this patch exists! :)
You need to get a copy of the Wine source, either through git or the version of Wine that the patch is intended for.

sudo apt-get install build-essential

cd to the root of the wine source tree, eg cd ~/wine
patch -p1 < ~/path-to-earlier-downloaded-usb.patch
./configure && make

If the build completes successfully, then you have a patched version of wine runnable from ~/wine, so to run the patched version type in full: ~/wine/wine foo.exe


nb. if you're using 64bit Ubuntu you'll need to refer to the wiki page which shows you how to symlink 32bit libs into your wine tree and then pass the correct LD and gcc flags.
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Re: Re: same kind of problem

Post by TimFR »

Thanks again JeffZ, I'll try it right now!
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Post by TimFR »

So,
I've done what you said, but when I make the build it finish with this line:
"configure: error: no suitable flex found. Please install the 'flex' package."

I guess this means the build doesn't completes successfully :cry:
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

wine and aladdin hasp hardware dongle

Post by austin987 »

On Mon, Aug 11, 2008 at 9:16 AM, TimFR <[email protected]> wrote:
So,
I've done what you said, but when I make the build it finish with this line:
"configure: error: no suitable flex found. Please install the 'flex' package."

I guess this means the build doesn't completes successfully [Crying or Very sad]





http://wiki.winehq.org/Recommended_Packages
John Drescher

wine and aladdin hasp hardware dongle

Post by John Drescher »

On Mon, Aug 11, 2008 at 10:16 AM, TimFR <[email protected]> wrote:
So,
I've done what you said, but when I make the build it finish with this line:
"configure: error: no suitable flex found. Please install the 'flex' package."

I guess this means the build doesn't completes successfully [Crying or Very sad]
Do exactly what it says. Find flex in your package manager and install it.

John
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Post by TimFR »

Sorry I didn't think enough before to ask, it was obvious..

So now I've installed flex package, (and bison and freetype dev that where needed), so the build goes further , but now it ends with:
"configure: error: could not make ./config.status"

Do you have an idea why? I will retry after installing all the recommended packages, it will probably work better ..
Last edited by TimFR on Mon Aug 11, 2008 9:37 am, edited 2 times in total.
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Post by TimFR »

After I installed all recommended packages, it still end with this line:
"configure: error: could not make ./config.status"

Someone has an idea?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

TimFR wrote:After I installed all recommended packages, it still end with this line:
"configure: error: could not make ./config.status"

Someone has an idea?
Did you always run everything as a user?
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Post by TimFR »

I'm not sure to understand what you mean by "as a user",
but if this means not as root user yes, I ran everything as a user.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

TimFR wrote:I'm not sure to understand what you mean by "as a user",
but if this means not as root user yes, I ran everything as a user.
Please pastebin complete output of the ./configure --verbose and post the link here.
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Post by TimFR »

So I did a ./configure --verbose and this is what i got:

http://pastebin.com/m4380b057
(there is too much lines so the first lines at the beginning did disappear before I can copy them... )
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

TimFR wrote:So I did a ./configure --verbose and this is what i got:

http://pastebin.com/m4380b057
(there is too much lines so the first lines at the beginning did disappear before I can copy them... )
Check if ./config.status file exists. And if it's writable by you.
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Post by TimFR »

There is no config.status file (only a config.log)
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

TimFR wrote:There is no config.status file (only a config.log)
Can you write into current directory? What 'ls -lad .' say?
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Post by TimFR »

It seems I can write in the directory;
'ls -lad' says:
drwxrwxr-x 11 user user 4096 2008-08-12 16:07 .
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

TimFR wrote:It seems I can write in the directory;
'ls -lad' says:
drwxrwxr-x 11 user user 4096 2008-08-12 16:07 .
Then look inside configure.log. Somewhere at the end it should say why it couldn't create this file.
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Post by TimFR »

i've looked but I don't understand enough those lines to detect the problem.
Here is my config.log:

part 1 : http://pastebin.com/m44d2cfd3
part 2 : http://pastebin.com/m57e8ff14
part 3 : http://pastebin.com/m2aef7df8
TimFR
Level 2
Level 2
Posts: 12
Joined: Mon Aug 11, 2008 6:07 am

Post by TimFR »

I guess I'll have to wait for this patch to be include in wine, as I'm not able to make it myself..
I hope it will be added soon! :wink:
Locked