473,703 Members | 2,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.d ll, Data.dll into setup project so that it is also
installed automatically. It should perform what the 'Install
Services.bat ' performs.
I have created ProjectInstalle r.cs file also

Dec 6 '06 #1
1 3600
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.ex e 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.ex e 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.ex e, 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_mar s" 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.d ll, Data.dll into setup project so that it is also
installed automatically. It should perform what the 'Install
Services.bat ' performs.
I have created ProjectInstalle r.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
1550
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 for the exe, and added it to the windows service...but somehow, I can not get the exe to be installed. Can somebody can point me to the right direction ? Regards LBS
2
2856
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 DLLs and a test application (an .EXE). The .EXE is my startup application. All the DLLs are shared components. This means that they contain a key and are stored in the GAC. When I go to run the test application in the IDE, it will not execute...
0
1220
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 environment but I can't get it to work in production. I've followed the advice on Tom Hollander's blog (http://blogs.msdn.com/tomholl/archive/2005/02/18/376187.aspx) and rebuilt the common project without the conditional compilation properties...
0
2643
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 any method or component to wrote registry) After I used "InstallUtil" to registry Enterprise Library (those DLLs) to the deployment server, the application runs smoothly. Now I wonder why i need to registry those Enterprise Library DLLs into
7
2714
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 project so that I can debug better. But I all those examples I found are reference the compiled dll only. What are the steps to include the source code of Microsoft Enterprise Library into my project? I created a new dir and copy Microsoft...
12
6215
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 datagrid. Once I can get to that point I need some way to be able to add new data only to the new columns that were added. Here is some of my code: //Function For Importing Data From CSV File public DataSet ConnectCSV(string filetable)
0
4606
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.0 on a XP Pro SP2 Machine
2
4928
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, giving a "Could not load file or assembly <nameofC++library>...the application configuration is incorrect." To repro, I first create a C++ CLR class library and add one class with a simple function "int GetAge()" that returns the number 20. I then...
2
1799
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 set references to the following dlls to enable logging in the EHAB - Microsoft.Practices.EnterpriseLibrary.Configuration.Design.dll, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.Design.dll,...
0
8669
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9251
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4432
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3123
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2450
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2069
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.