Pre-Install Hardlock Dongle

Got a problem you cannot solve? Try here.
Post Reply
MAcht
Posts: 2
Joined: Thu Sep 20, 2007 5:31 am
Location: Germany

Pre-Install Hardlock Dongle

Post by MAcht »

Hello, i am new to InstallAware.
I need to check if there is a Dongle-Driver installed, install them if not and to read a number out of the Dongle. This number defines which part of the installation the user is licenced to.
After that i can ask the user, which component the user wants and so on.
Is this possible with InstallAware 7?

M.Achterholt
-Germany-
Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Post by Gizm0 »

IF there is a .Dll wrapper you can call to read the Dongle or any other way to read it through Win32 API, then yes, it's possible.
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
Install[b]Aware[/b] Software Corporation
MAcht
Posts: 2
Joined: Thu Sep 20, 2007 5:31 am
Location: Germany

Post by MAcht »

Thank you for answer.
I think the problem is, that there are no files (dll,exe,... from the Driver) on the customer-computer before "Apply install" is executed. But i need these files on the very beginning of the setup. - Or do i think wrong?
Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Post by Gizm0 »

You can add your .dll as a SupportFile and call it like $SUPPORTDIR$\\my.dll etc. .You can do the same thing with an .exe wrapper.
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
Install[b]Aware[/b] Software Corporation
lextm
Posts: 23
Joined: Wed Aug 22, 2007 2:53 am
Contact:

Post by lextm »

I need to check if there is a Dongle-Driver installed, install them if not
==============
This part can be done perfectly if you create a Dongle-Driver runtime, and then add this runtime to your install project. In this way you can ensure that Dongle-Driver is always there. In this forum you can find sample code for BDE and WinPcap Driver runtime and much more in Sample Code section.

and to read a number out of the Dongle.
==============
Do not know how you get the number out of Dongle. If you need to run an executable, use MSIcode Run Program. If you need to call a function in DLL, you can Call Dll Function. The help document contains further information.
Post Reply