c# - Deploying an Excel UDF -


I have an excellent UDF that makes a web service call The UDF code is an automation addin code which is a C # class library And for this I have created an installer. When I run the set up, any description of the specific adin code toos -> addins -> automation addins list appears in Excel and does not function in the formula bar. I am using VS 2008 and Excel 2003.

Am I missing something here? Should I define the path that Excel has to choose from some DLL so that it points to the DLL generated from the UDF code? Or are there any security issues that should be taken care of? The level of security in the client machine is set to full trust, yet addin does not appear in the list.

Am I missing something here?

This is because the custom "CLSID {GUID"} is required to install the automation add-in } \ Programmable "entries are created in the registry, which is controlled by creating an automation add-in, usually by including the marked methods along with your class and within. These classes are registered when you run RegAsm in your assembly.

While using a visual studio setup package, however, ComRegisterFunctionAttribute and ComUnregisterFunctionAttribute are silently ignored. This is because the Setup project runs to generate a .reg file containing all the necessary registry keys by using the RegAsm / regfile switch. This is an .reg file that is used when the .msi package is run on the client site. The problem is that when RegAsm / regfile runs through the switch, the resulting .reg file does not contain any registry updates created by user-defined register functions (such as those marked with the Comragster Function Attribute and Comuergenist Function Attribute). As a result, your custom "CLSID {GUID} \ programmable" registry entry is not being created and therefore, your automation add-in is not showing in the Automation add-in list.

To resolve this situation, you have to create your own, custom "CLSID {GUID} \ Programmable" entry in other ways. This setup is easy to do by using the section of the package.

It is a bit complicated to control all the steps in the setup package for an automation add-in. Fortunately, I have a step-by-step explanation how to do it (as well as why A detailed explanation of what is happening) as the answer to the question.

Hope it helps!

Mike


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -