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 (http://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)…

0

This operation has been cancelled due to restriction in effect on this computer. Please contact your system administrator. Click ok

Some of the companies have a GPO ‘Run only allowed Windows Application’ set. For the Clickonce to work in this scenario here’s the list of exe and dlls that needs to be added. LaunchApp.exeMyAppName.exeMyAppName.exe.applicationMyAppName.exe.deployMyAppName.exe.manifestMyAppName.vshost.exedfsvc.exedfsvc.ni.exeAppLaunch.exerundll32.exedfshim.dll dfdll.dll  

0

Unable to install or run the application. The application requires that assembly <Assembly Name> Version 8.0.0.0 be installed in the GAC Assembly Cache first. Please contact your system administrator.

I ran into an interesting scenario today. “Unable to install or run the application. The application requires that assembly <Assembly Name> Version 8.0.0.0 be installed in the GAC Assembly Cache first. Please contact your system administrator.” I went and checked in the application files that it has been included as Prerequisite auto and changed that…

0