467,879 Members | 1,259 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

adding enterprise library dlls into setup projects

I have a windows service and am also using Enterprise Library June 2005

version. Now i have created Setup and Deployment Project which installs

the service. but how do i add EL dlls- Common.dll, Logging.dll,
Configuration.dll, Data.dll into setup project so that it is also
installed automatically. It should perform what the 'Install
Services.bat ' performs.
I have created ProjectInstaller.cs file also

Dec 6 '06 #1
  • viewed: 3275
Share:
1 Reply
You are not getting the problem.

I already done what u told but that installs only the service but not
the associated Enterprise Library dlls. EL libraries also are required
to be installed as it has to register performance counters, event log,
etc.

What i want is also the dll should be installed the way the service
gets installed.

The setup installs the service and copies the output exe alongwith the
dlls to the application folder.

net2tech wrote:
You could create a SetUp project and your Service.exe and related dlls to
install along with it. This way you don't even have to run Installutil.exe to
install the service.

Here are the steps...

To add MyNewService.exe to the setup project
In Solution Explorer, right-click MyServiceSetup, point to Add, then choose
Project Output.

The Add Project Output Group dialog box appears.

MyNewService is selected in the Project box.

From the list box, select Primary Output, and click OK.

A project item for the primary output of MyNewService is added to the setup
project.

Now add a custom action to install the MyNewService.exe file.

To add a custom action to the setup project
In Solution Explorer, right-click the setup project, point to View, and then
click Custom Actions.

The Custom Actions editor appears.

In the Custom Actions editor, right-click the Custom Actions node and choose
Add Custom Action.

The Select Item in Project dialog box appears.

Double-click the Application Folder in the list box to open it, select
Primary Output from MyNewService (Active), and click OK.

The primary output is added to all four nodes of the custom actions -
Install, Commit, Rollback, and Uninstall.

In Solution Explorer, right-click the MyServiceSetup project and click Build.

To install the Windows Service
To install MyNewService.exe, right-click the setup project in Solution
Explorer and select Install.

Follow the steps in the Setup Wizard. Build and save your solution.

"rohan_from_mars" wrote:
I have a windows service and am also using Enterprise Library June 2005

version. Now i have created Setup and Deployment Project which installs

the service. but how do i add EL dlls- Common.dll, Logging.dll,
Configuration.dll, Data.dll into setup project so that it is also
installed automatically. It should perform what the 'Install
Services.bat ' performs.
I have created ProjectInstaller.cs file also
Dec 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Lord Brett Sinclair | last post: by
2 posts views Thread by =?Utf-8?B?am1hZ2FyYW0=?= | last post: by
2 posts views Thread by =?Utf-8?B?UG9sbHkgQW5uYQ==?= | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.