Server Management Suite

 View Only
  • 1.  Registering a .NET assembly using RegAsm explicitly

    Posted Apr 15, 2009 04:21 AM
    I would like to register some .net assemblies which would be dumped during installation.

    i'm calling Execute Program from Destination custom action .. below  Execute Action section of User Interface
    but it's giving some problems ..Error 1722 .am i doing in the corect way?
    Can anyone tell me how to register the assemblies using regasm ?


  • 2.  RE: Registering a .NET assembly using RegAsm explicitly

    Posted Apr 15, 2009 05:34 AM

    Are you trying to register .NET assemblies that are already on the target system?
    If you are installing the assemblies, then it is pointless trying to register them from the User interface, as the files have not been installed yet - that only happens during the DEFERRED sequence.

    If the files are already on the system, are you specifying the complete path to both regasm and the .NET assembly?

    Try setting up a batch file to perform the registration - if that works., then you can use the same command lines in your custom action.



  • 3.  RE: Registering a .NET assembly using RegAsm explicitly

    Posted Apr 15, 2009 05:36 AM
    Also, a 1722 error is just reporting a problem with a custom action. That could be due to what you are trying to do, but could also be due to something as simple as a typing error.
    So don't make any assumptions about the reason for the error. Just simplify the code and add debugging messages to help determine what is going on.
    If using vbscript, remember that you cannot use the wscript. object - so where you might have wscript.createobject, inside a vbscript custom action, you can only use createobject.