Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 13 of 13
  1. #1
    Join Date
    May 2005
    Location
    Conecticut
    Posts
    23

    Registering .net DLL's

    Is there a way to register .net Dll's with SF7???

    Also is there a Crystal module???


    Thanks

    Joe

  2. #2
    Join Date
    May 2005
    Location
    Conecticut
    Posts
    23

    Huh?

    Anyone?
    Help....
    Please.......

  3. #3
    Join Date
    Mar 2005
    Location
    Indianaoplis, IN USA
    Posts
    127
    I haven't personally worked with the .net stuff, but I believe those .dlls can be registered just like the old VB .dlls. The simplest was is to include those .dlls in you install, and make sure the "register com interfaces" is checked on the advanced tab of the file properties window for the .dlls in question.

    I've been working on making a Crystal Runtime, but haven't had much time lately to devote to it. I've got something working in my project, but Crystal's licensing is such that I can distribute the files with my project, but not to you (as a developer). That means I need to make a project to distribute to developers that will build another project from the runtimes on the development machine, than you can then distribute to your clients... so its a bit of a pain.

  4. #4
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    The .NET dlls should register fine through Setup Factory 7.0.

    As far as Crystal Reports goes, if it were strait forward we would have created a module. The licensing on this technology is quite a hassle. Plus different files are needed depending on different features of Crystal that you used.

    Adam Kapilik

  5. #5
    Join Date
    May 2005
    Location
    Conecticut
    Posts
    23
    Thanks for the help.

    I'll give it try.

  6. #6
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    Just a side note, most .NET assemblies will never need to be "registered" like the dlls of old. They should be installed into the application folder (xcopy) just like any other file in your SF7 project...I specifically turn off the register as a dll option. .NET assemblies can be registered as previous dlls were because you can support COM interop but there are specific requirements of the assembly to achieve this previous functionality. (link)

    In the case of more than one application sharing a single assembly(dll), it should be placed in the GAC (global assembly cache) and there are specific steps that must be taken to achieve this. (link)

    I have not run into the need to add an assembly to the GAC as of yet so I am not sure if SF7 has the option to install an assembly to the GAC (using the gacutil command).

  7. #7
    Join Date
    May 2005
    Location
    Conecticut
    Posts
    23
    SF7 built in function for registering .NET Dll's does not work.
    I had my fingers crossed.

    any other suggestions?

    I going to look into some more tomorrow.

  8. #8
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    One of the beauties of .NET is the ability to xcopy your application to a machine and it will run. You do not need to register a .NET assembly unless it is going to the GAC.

    If you give me a description of the error(s) you are getting after installing your app, I will see if I can point you in the right direction.

  9. #9
    Join Date
    May 2005
    Location
    Conecticut
    Posts
    23
    Yes it is goin to the Gac.

    I am currently not getting an error. It's just not Registering.

  10. #10
    Join Date
    May 2005
    Location
    Conecticut
    Posts
    23
    I guess this in the way to do it. I was hoping that SF7 would have a built in function or command.

    UNREGISTER:

    "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\RegA sm" "DLL_PATH_HERE\DLL_NAME_HERE.dll" /Unregister


    REGISTER:

    "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\RegA sm" " DLL_PATH_HERE\DLL_NAME_HERE.dll"

  11. #11
    Join Date
    May 2005
    Location
    Conecticut
    Posts
    23
    This is what I ended up doing. So far it seems to work. I need to do some more testing to know for sure.

    --UNREGISTER:
    File.Run(SessionVar.Expand("\"%WindowsFolder%\\Mic rosoft.NET\\Framework\\v1.1.4322\\RegAsm\" \"%ConsoleFolder%\VMIApp\\MaxQ_VMI_Agent_InvtTrans actions.dll\ /Unregister\""), "", "", SW_SHOWNORMAL, false);

    --REGISTER:
    File.Run(SessionVar.Expand("\"%WindowsFolder%\\Mic rosoft.NET\\Framework\\v1.1.4322\\RegAsm\" \"%ConsoleFolder%\VMIApp\\MaxQ_VMI_Agent_InvtTrans actions.dll\""), "", "", SW_SHOWNORMAL, false);

  12. #12
    Join Date
    Jul 2005
    Posts
    1

    Registering in easy way

    I have used the following command command in bat file to register the dll silently :
    Code:
    regsvr32 %systemroot%\system32\somedll.dll /s


    later I executed the reg.bat file by file.run() method.

    Hope this might solve the problem.

    regards,
    Dibyendra

  13. #13
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    The only thing with hard coding the patch is that it limits your installer to a single version of the runtime. I found a few more interesting links and some code to install and remove assemblies from the GAC.

    Here is a MS KB article that lists some GAC APIs not documented in the .NET SDK: KB Article

    And here is a simple code sample to install/remove an assembly to the GAC using managed code:

    Code:
    System.EnterpriseServices.Internal.Publish foo = new System.EnterpriseServices.Internal.Publish();
    foo.GacInstall("AssemblyPath\myassembly.dll");
    foo.GacRemove("AssemblyPath\myassembly.dll");
    System.EnterpriseServices.Internal.Publish Class

    I would write a simple command-line 'GAC Manager' using the above class that I could pass in my assembly locations to be installed in the GAC and use the managed code. You could call the 'GAC Manager' app from SF and pass in the assemblies to be installed in the GAC and remove them the same way during uninstall.
    Last edited by bnkrazy; 08-12-2005 at 07:55 AM.

Similar Threads

  1. Dependency Module: Microsoft .NET Framework 1.1
    By Darryl in forum Setup Factory 8.0 Examples
    Replies: 12
    Last Post: 06-10-2008, 02:26 AM
  2. Sorry quick question Boolean
    By slafta in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 06-05-2005, 12:37 AM
  3. vb .net & mdac install
    By charlesc in forum Setup Factory 6.0
    Replies: 2
    Last Post: 08-31-2004, 12:25 PM
  4. Registering dll's via setup factory
    By Egghead in forum Setup Factory 6.0
    Replies: 1
    Last Post: 10-16-2002, 11:50 AM
  5. Oder of registering dlls
    By JohnD in forum Setup Factory 6.0
    Replies: 0
    Last Post: 04-11-2002, 06:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts