This project is read-only.

regsvr32 not found

Oct 17, 2013 at 3:22 PM

We are trying to deploy our app with a MapWinGIS 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?

Oct 18, 2013 at 8:57 AM
If you go to 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.

Oct 18, 2013 at 12:03 PM
Edited Oct 18, 2013 at 1: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?
Oct 21, 2013 at 8:59 AM
Most likely your gdal_data environment variables are not correct.
Look at how to set them.
Oct 21, 2013 at 7:07 PM

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

Thanks Again.