How to register a .NET DLL using Inno Setup

前端 未结 2 1636
野的像风
野的像风 2021-02-20 17:50

I have written a class library using Visual Studio 2010 C# to read hardware information of a Computer (e.g. HDD/SSD). I will use this dll to create an installer using InnoSetup

2条回答
  •  孤独总比滥情好
    2021-02-20 18:00

    To do this, you MUST..

    1) make sure that .net 4.0 is installed (not by default on most machines yet)

    2) extract and register the DLL (you need to call regasm.exe on the extracted DLL)

    This is a lot to do just to "GetDiskDriveInformation" as the very first step of the install.

    It is far better to get the information natively in Inno or call a native DLL that doesn't have the prerequisites.

提交回复
热议问题