Solved! Go to Solution.
Are you following the instructions outlined here? esriRegAsm is a command line utility but it sounds like you're trying to run it directly.
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/ESRIRegAsm_utility/0001...
By run directly I meant double-clicking it. In order to run the utility from the command line, the cmd window will need to be started as an administrator. To run it from an installer, the installer will have to run with elevated privileges. Also, you mentioned this was an add-in. Add-ins do not need to be registered; only the old-style COM components. All of our desktop extensions are COM so I have to run this utility in our installers as well. I have code in each installer class to run the utility. We then use WinRAR to create a self-extracting exe that contains the installer exe and msi. One of the settings on this self-extracting exe is to prompt to run with elevated privileges. We've never ran into any problems with the registration on machines that were properly configured but I don't know if any of them were running that OS.
Are you running:
C:\Program Files\Common files\ArcGIS\Bin\ESRIRegasm.exe
or
C:\Program Files (x86)\Common files\ArcGIS\Bin\ESRIRegasm.exe?
My suggestion, which you are not going to like, is to not run ESRIRegAsm in order to install your product. The way that we handle is to register the COM component and copy the ecfg file to the appropriate directory.
Neil,
I used an incorrect term, Add-in, to describe what I'm attempting to install. I apologize. I'm trying to install a product that consists of commands, tools, and auto-updaters. I'm new to ArcGIS, so I haven't quite gotten the hang of all the terminology, yet.
I did run the installer with elevated privileges and start the command prompt in administrator mode.
I'm starting to suspect that the machine may be missing some updates, but I don't have permissions to make those kinds of changes. I'll report back as I find more.
Thanks,
Jason
I was able to get the permissions needed to update the machine to the very latest, but ESRIRegAsm still doesn't run on the machine. ESRI support has been helping us and these are some of the other things we have tried/verified:
- Verified that .NET 3.5 SP1 is installed. Windows 2008 R2 SP1 has this by default and won't let you remove it.
- Ran process monitor to identify any permission problems. No permissions issues were encountered.
- Disabled the antivirus software to ensure it wasn't interfering. No change.
- Copied ESRIRegAsm.exe from a machine that it succeeds on to the machine it is failing on. No change.