Problem registering GDViewerPro4.ocx on Windows XP

Discussions about document viewing.
Post Reply
TaraD
Posts: 5
Joined: Mon Apr 19, 2010 4:58 pm

Problem registering GDViewerPro4.ocx on Windows XP

Post by TaraD » Mon Apr 19, 2010 5:24 pm

I am having trouble registering GDViewerPro4.ocx on Windows XP, I get error 'The applicationor DLL c:\WINDOWS\system32\gdViewerpro4.ocx is not a valid windows image'. This is for a VB6 application and I only get this when installing using setup.exe. If you manually register using regsvr32 it works fine. As per technical reference, the installer copies gdpdfplug.dll and gdimgplug.dll to system32 but does not register them. It is installing on XP so don't copy or register GDIPLUS.dll. GDViewerPro.ocx is copied to system32 and registered by installer.

Any ideas appreciated.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Problem registering GDViewerPro4.ocx on Windows XP

Post by Loïc » Mon Apr 19, 2010 5:41 pm

Hi,

Please try to be more clear. I don't understood what is your problem :(

With best regards,

Loïc

TaraD
Posts: 5
Joined: Mon Apr 19, 2010 4:58 pm

Re: Problem registering GDViewerPro4.ocx on Windows XP

Post by TaraD » Mon Apr 19, 2010 5:51 pm

We should be able to register gdviewerpro4.ocx using installer (which is simply copying to system32 and registering file) not manually as we only want to send one installer to client. Error message when registering file is in first post. What other details would help?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Problem registering GDViewerPro4.ocx on Windows XP

Post by Loïc » Mon Apr 19, 2010 5:54 pm

Hi,

The first page of the reference guide explain everything related to distribution. Did you read it ?
If your problem persists, please explain all the step you are following to see what is wrong.

With best regards,

Loïc

TaraD
Posts: 5
Joined: Mon Apr 19, 2010 4:58 pm

Re: Problem registering GDViewerPro4.ocx on Windows XP

Post by TaraD » Mon Apr 19, 2010 6:28 pm

Yes I have read reference guide, it says: -

2. Installing & Redistributing the Control

All needed files can be found on the "Redist" folder of the directory where the toolkit has been installed.

• Required files:

You must copy the msvbvm60.dll and the gdviewerpro4.ocx into c:\%Windows%\System32\ .
Note: gdviewerpro4.ocx need to be registered on your system by running the folowing command: regsvr32 c:\%Windows%\System32\gdviewerpro4.ocx

We have gdviewerpro4.ocx version 4.11.0.15. The gdviewer is included when creating the package and the Setup.lst copies this file to system32 and registers it as stated in instructions above. Line in setup.lst shown below: -

File79=@gdimgplug.dll,$(WinSysPath),,,6/22/2009 3:48:12 PM,2155656,1.6.2.3
File80=@gdpdfplug.dll,$(WinSysPath),,,6/22/2009 3:48:10 PM,1304200,1.10.0.1
File81=@GdViewerpro4.ocx,$(WinSysPath),$(DLLSelfRegister),,6/22/2009 3:47:52 PM,1372808,4.11.0.15


• Optional files:

- If your application runs under windows 98, NT4, ME or 2000 you must copy the gdiplus.dll into c:\%Windows%\System32\ or into your application directory.

We don't include this in package as we are installing on XP.

- PDF viewing functions are included in gdpdfplug.dll. This library is needed if your application includes PDF View support.
You must copy this file into c:\%Windows%\System32\ or into your application directory. You don't need to register this library on your system.

Yes we use this file so we have included it when packaging the files but we don't register it as per advise above. See lines from Setup.lst above.

- The gdimgplug.dll library can be redistributed in order to increase the speed of image decoding and to extend the supported image formats to jpeg 2000, TGA, EXR, PSP...
You must copy this file into c:\%Windows%\System32\ or into your application directory. You don't need to register this library on your system.

Yes we use this file so we have included it when packaging the files but we don't register it as per advise above. See lines from Setup.lst above.

TaraD
Posts: 5
Joined: Mon Apr 19, 2010 4:58 pm

Re: Problem registering GDViewerPro4.ocx on Windows XP

Post by TaraD » Mon Apr 19, 2010 6:29 pm

[Bootstrap Files]
File1=@VB6STKIT.DLL,$(WinSysPathSysFile),,,7/15/2000 2:00:00 AM,101888,6.0.84.50
File2=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,5/31/1998 2:00:00 AM,22288,4.71.1460.1
File3=@STDOLE2.TLB,$(WinSysPathSysFile),$(TLBRegister),,6/17/1998 9:13:00 AM,17920,2.30.4261.1
File4=@ASYCFILT.DLL,$(WinSysPathSysFile),,,6/18/1998 8:32:00 PM,147728,2.30.4261.1
File5=@OLEPRO32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,6/18/1998 8:33:00 PM,164112,5.0.4261.1
File6=@OLEAUT32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,6/18/1998 8:33:00 PM,598288,2.30.4261.1
File7=@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,4/14/2008 4:33:32 AM,1384479,6.0.98.2
File8=@VB5DB.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,6/18/1998 12:00:00 AM,89360,6.0.81.69

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Problem registering GDViewerPro4.ocx on Windows XP

Post by Loïc » Mon Apr 19, 2010 6:30 pm

Hi,

You forgot msvbvm60.dll

Kind regards,

Loïc

TaraD
Posts: 5
Joined: Mon Apr 19, 2010 4:58 pm

Re: Problem registering GDViewerPro4.ocx on Windows XP

Post by TaraD » Mon Apr 19, 2010 6:36 pm

Thats also copied and register, see bootstrap file section of setup.lst in last post

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Problem registering GDViewerPro4.ocx on Windows XP

Post by Loïc » Mon Apr 19, 2010 6:39 pm

Unfortunately I don't see what can be the problem.

I suggest to contact the provider or your deployment tool to get some tips. Here we have experience with Innosetup & InstallShield if this can help.


Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest