PDA

View Full Version : Registering DLL Problem with Win ME and Win 98



NewsArchive
12-07-2001, 01:00 AM
I am using Installshield 6.31 to install my product and everything runs fine
on Windows 2000 but with 98 and ME the installation process gets to 100% and
then freezes. When the software is then started it gets an error message
because a certain .ocx file hadn't been registered during the installation
process (probably the reason for the freeze). Do you have any ideas to what
is causing this or how i can fix it. This is a major issue and needs to be
resolved soon so any response is greatly appreciated!

Thanks in advance!
Ryan Smith

NewsArchive
12-09-2001, 01:00 AM
Where do I place LaunchAppAndWait( "REGSVR32.EXE", "/s file.ocx", WAIT); in
my code - I'm fairly new to installshield - what sub routine do i place that
in? Thanks a lot for your help!

Ryan




"Ted" <Ted@t--x.org> wrote in message
news:3c1224c0$1@news.installshield.com...
> Test to make sure it can be registered manually using REGSVR32.EXE on the
98
> and Me machines. If it can sucessfully, then it's probably better if you
do
> the following in your code: LaunchAppAndWait( "REGSVR32.EXE", "/s
file.ocx",
> WAIT); Remove the OCX from the self-registration process.
>
> Ted.
>
> "Ken Fish" <kfish1@tampabay.rr.com> wrote in message
> news:3c11254d$1@news.installshield.com...
> > I am using Installshield 6.31 to install my product and everything runs
> fine
> > on Windows 2000 but with 98 and ME the installation process gets to 100%
> and
> > then freezes. When the software is then started it gets an error
message
> > because a certain .ocx file hadn't been registered during the
installation
> > process (probably the reason for the freeze). Do you have any ideas to
> what
> > is causing this or how i can fix it. This is a major issue and needs to
> be
> > resolved soon so any response is greatly appreciated!
> >
> > Thanks in advance!
> > Ryan Smith
> >
> >
>
>

NewsArchive
12-10-2001, 01:00 AM
That can go in a couple places. You want to make sure that all dependent
dll's are loaded, if any, before you try to register the file.

You can put in the OnInstalled event for the component if you're sure all
dependent files are loaded before this component, or you can put it in
OnMoved, which is called after all files are loaded.

If you put it in OnMoved, be aware that this event is called in first-time
installations and for maintenance installations, so you might want to
surround the code with conditions to prevent the code from trying to
register the file during an uninstall. Actually, if you register it by
hand, you should probably unregister it by hand during an uninstallation.

HTH
Kathy

"Ken Fish" <kfish1@tampabay.rr.com> wrote in message
news:3c138d60$1@news.installshield.com...
> Where do I place LaunchAppAndWait( "REGSVR32.EXE", "/s file.ocx", WAIT);
in
> my code - I'm fairly new to installshield - what sub routine do i place
that
> in? Thanks a lot for your help!
>
> Ryan
>
>
>
>
> "Ted" <Ted@t--x.org> wrote in message
> news:3c1224c0$1@news.installshield.com...
> > Test to make sure it can be registered manually using REGSVR32.EXE on
the
> 98
> > and Me machines. If it can sucessfully, then it's probably better if
you
> do
> > the following in your code: LaunchAppAndWait( "REGSVR32.EXE", "/s
> file.ocx",
> > WAIT); Remove the OCX from the self-registration process.
> >
> > Ted.
> >
> > "Ken Fish" <kfish1@tampabay.rr.com> wrote in message
> > news:3c11254d$1@news.installshield.com...
> > > I am using Installshield 6.31 to install my product and everything
runs
> > fine
> > > on Windows 2000 but with 98 and ME the installation process gets to
100%
> > and
> > > then freezes. When the software is then started it gets an error
> message
> > > because a certain .ocx file hadn't been registered during the
> installation
> > > process (probably the reason for the freeze). Do you have any ideas
to
> > what
> > > is causing this or how i can fix it. This is a major issue and needs
to
> > be
> > > resolved soon so any response is greatly appreciated!
> > >
> > > Thanks in advance!
> > > Ryan Smith
> > >
> > >
> >
> >
>
>