regsvr32 not found

Oct 17, 2013 at 2:22 PM
Hi,

We are trying to deploy our app with a MapWinGIS 4.8.8.1 map control included.

On some of the end-user machines, we have found that the 'C:\windows\system32' has been removed from the %PATH% system variable. When the RegMapWinGIS.cmd is run from a command prompt, these 2 lines:

regsvr32 /u /s MapWinGIS.ocx
regsvr32 /s MapWinGIS.ocx

result in an error 'regsvr32 not found'.

So, we would like to build our own installer for the .ocx and any dependent .dll or other folders/files. Where might we be able to find a list of the files required for us to create this installer and have our app avoid the dreaded 'CLASS_NOT_REGISTERED' COM error?

TIA
Coordinator
Oct 18, 2013 at 7:57 AM
If you go to https://mapwingis.svn.codeplex.com/svn/MapWinGIS/branches/4.8.8/Installation/ you'll see a .iss file.
This is the file we use with INNOSetup to create the installer. It is plain text you should be able to find all the depending files.

Paul
Oct 18, 2013 at 11:03 AM
Edited Oct 18, 2013 at 12:35 PM
Thanks for the quick reply.

We found this iss file and have built an installer using vs2010 deployment/setup project.

It kind of works, with a strange exception which we have isolated to a call to .ImportFromEPSG(). When we use your installer, the call successfully loads the EPSG definition for epsg 4326. When we use our installer, the call fails. The error returned by this call is # 8 (Incorrect Variant Type).

Are we missing something?

We are registering only the .ocx using alternate methods of regsvr32 and the settings in the deployment project.

We are also using the SetEnv executable to set the GGDAL_DATA and PROJ_LIB environment variables to point to the newly installed repective directories as done in regMapWinGIS.cmd

Any Ideas?
Coordinator
Oct 21, 2013 at 7:59 AM
Most likely your gdal_data environment variables are not correct.
Look at http://svn.mapwindow.org/svnroot/MapWindow4Dev/Bin/regMapWinGIS.cmd how to set them.
Oct 21, 2013 at 6:07 PM
Hi,

You are right. We were inadvertently adding a space between the 'GDAL_DATA=' and its value.

Thanks Again.