472,959 Members | 1,659 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,959 software developers and data experts.

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
1 3526
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lord Brett Sinclair | last post by:
Hello everybody I created a windows services with an msi file. I have another small vb.net exe that I would like to install when I install the windows service. I tried to create a merge module...
2
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple...
0
by: KrisR | last post by:
I have an ASP.NET application that makes use of the configuration and data access blocks from the June 2005 release of Enterprise Library. The application works perfectly in my development...
0
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't...
7
by: rockdale | last post by:
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my...
12
by: JMO | last post by:
I can import a csv file with no problem. I can also add columns to the datagrid upon import. I want to be able to start importing at the 3rd row. This will pick up the headers necessary for the...
0
by: =?Utf-8?B?YW5rMmdv?= | last post by:
Hi, Thanks in advance for reading this. Not sure where to post this question, but I hope someone in here can help. Trying to write to Event Log in VS 2005 (.NET 2.0) using Enterprise Library...
2
by: =?Utf-8?B?am1hZ2FyYW0=?= | last post by:
i've been tearing my hair out over this for hours. i can reference a C++ library from my C# code on my dev machine, but when i copy the entire Debug directory to another computer my code fails,...
2
by: =?Utf-8?B?UG9sbHkgQW5uYQ==?= | last post by:
Hi, I have been successfully using the EHAB & Logging Application Block. Now however I get the error below and looking on line I was told that I have not set references to all the dlls. I have...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.