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