PDA

View Full Version : Help! Delphi 2.01 ISX fails to register Netmanage OCX



NewsArchive
07-10-1997, 12:00 AM
I'm having _major_ hassle trying to get an installation program to register
the OCX controls used by my executable. I've followed Borland's TI
document, I've tried the FAQ at

http://www.ellipse-data.com/ISX.FAQ.html#Question3

but to no avail. The app's finished but I'm left with a dodgy install
program which is not impressing the customer a great deal.

I'm using InstallShield Express Delphi 2(.01) Edition

Here's the details:

Groups and Files (in top to bottom order in the script):

CLIENT
My Executable

OCX AND SUPPORT
nmocod.dll
nmsckn.dll
nmftpsn.dll
nmw3vwn.dll
nmorenu.dll
olepro32.dll
mfc40.dll
msvcrt40.dll
msvcrt.dll
msvcirt.dll
licenses.reg
winsck.ocx

Licenses.reg is the registry file with keys for the Netmanage Internet OCX
controls supplied with Delphi. I have copied these keys and values into the
Registry section of the install script.

The OCX I am actually using is the TCP control on the Internet tab in the
Delphi Component palette, so I could probably lose the nmftpsn.dll and
perhaps others, but I'm not too bothered about installing too much at the
moment, I just want to get the thing to work!

What basically occurs is that the installation finishes, and when I run the
EXE, I get an error at the first point in the program where it tries to use
the TCP control. If I find the Licenses.reg file and double-click on it to
add the keys to the registry, and then rerun the EXE, it works fine. I
would like to know why the install script doesn't do the equivalent of me
double-clicking on licenses.reg automatically.

I took note of the order of the files, making sure the DLLs go before the
OCX. Is there a dependency on the order of the DLLs with respect to other
DLLs?

Anyway, that's my problem. I've just run out of 'clean' machines to test
the installation too, and I'm not sure how to undo the effects of
double-clicking on licenses.reg to make a machine a clean machine again.


Please help!


Chris Sexton

NewsArchive
07-10-1997, 12:00 AM
On 10 Jul 97 08:09:05 GMT, "Chris Sexton" <csexton@his.co.uk> wrote:
>controls supplied with Delphi. I have copied these keys and values into the
>Registry section of the install script.

That is wrong. You should use the Registry keys and Values as shown in the
FAQ. That does the trick.

>the TCP control. If I find the Licenses.reg file and double-click on it to
>add the keys to the registry, and then rerun the EXE, it works fine. I
>would like to know why the install script doesn't do the equivalent of me
>double-clicking on licenses.reg automatically.

InstallShield Express Professional and InstallShield Express 2.0 have an
option where you can merge a .REG file into the Registry. This option
however is NOT present in the Custom Editions of InstallShield Express.


Stefan
ellipse data systems

NewsArchive
07-15-1997, 12:00 AM
Many thanks for replying Stefan. I think it's great that you put the effort
in to provide advice on the subject, particularly in the absence of any
clear support from Installshield themselves. I mean, they've got the
newsgroups so why don't they bother to monitor them and perhaps start
helping people out a bit more.

This problem is clearly a problem which affects many people - just look at
the Delphi newsgroups - those run by Borland and the usenet ones - there
are many problems deploying these controls.

I do, however, still have an issue with your response. You wrote:

>
> On 10 Jul 97 08:09:05 GMT, "Chris Sexton" <csexton@his.co.uk> wrote:
> >controls supplied with Delphi. I have copied these keys and values into
the
> >Registry section of the install script.
>
> That is wrong. You should use the Registry keys and Values as shown in
the
> FAQ. That does the trick.
>

.....but the registry values you show on your FAQ page are exactly the sam
as those in the licenses.reg file, hence whichever I use makes no
difference.

Also, why do you suggest I deploy the licenses.reg file with the other
support files if in an ideal world all of the keys will be added? Is that
not unnecessary, since all you can do with it is double-click to merge it
into the registry? Is this not the same desired effect as is achieved by
adding the keys and values manually into the install script.

Anyway, apologies if I sound pissed off with you, because I'm not. I'm
grateful for any advice you can give me, because this problem has reached a
head as they say, and I cannot resolve it.

I think it would be a great idea if InstallShield themselves took one of
the Delphi Internet Solutions Pack examples, and published an example
script of how to install it with registration of the controls, so that
people could just download it and change the relevant parts.


Regards

Chris Sexton