Freigeben über


How to add a .net dll within your application setup (Windows Installer Package) using Visual Studio 2005/2008

There are two methods to do it. 

Method 1: Create a registry file for registration of the DLL file using regasm.exe utility (https://msdn.microsoft.com/en-us/library/tzat5yw6(VS.71).aspx)

Ex: %windir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe myTest.DLL /regfile:C:\myTest.reg

Now you need to import the registry within the Visual Studio Setup Project (Right-click “Registry on Target Machine”, click “Import”, and then browse to the .reg file) and build the Setup project.

Method 2: Deploy the assembly to the target computer in the global assembly cache (GAC)  

· Right-click “File System on Target Machine”, click “Add Special Folder”, and then click “Global Assembly Cache Folder”.

· By default, the assembly is inserted in the Application Folder (by default, it is a side-by-side installation). Drag the assembly to the Global Assembly Cache Folder.

· Build the Setup Project.

Comments

  • Anonymous
    July 28, 2014
    0024000004800000940000000602000000240000525341310004000001000100D973BDA91F71752C78294126974A41A08643168271F65FC0FB3CD45F658DA01FBCA75AC74067D18E7AFBF1467D7A519CE0248B13719717281BB4DDD4ECD71A580DFE0912DFC3690B1D24C7E1975BF7EED90E4AB14E10501EEDF763BFF8AC204F955C9C15C2CF4EBF6563D8320B6EA8D1EA3807623141F4B81AE30A6C886B3EE1