473,320 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Install several services using MSI (setup project)



Hi all,

I continue with installation.

I create three windows services. Each service has a Installer class.

I create a Setup Project (MSI) for install all services.

I want one MSI, not three MSI for each service.

Is it possible install all services using one MSI ? any help, please

Thanks in advance

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Sep 18 '08 #1
4 3677
I believe you just include them all in the install and put them all in the
custom actions for it.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Alhambra Eidos Desarrollo" wrote:
>

Hi all,

I continue with installation.

I create three windows services. Each service has a Installer class.

I create a Setup Project (MSI) for install all services.

I want one MSI, not three MSI for each service.

Is it possible install all services using one MSI ? any help, please

Thanks in advance

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft
Sep 18 '08 #2
I believe you just include them all in the install and put them all in the
custom actions for it.
Thanks, all is right. It's works fine !!

I guess now, the services can be installed by MSI, and too using installutil
command. If the service has Installer class, all is right.

My question now, how can I know, in my code in Installer class, if the
caller is MSI or installutil ??

Thanks again.
Sep 18 '08 #3
OK, there seems to be some confusion here, let me give you a run down of how
I do it.

I include the project outputs of my service projects in an installer.
This then copies the binaries onto the machine during the install.
Then I add the project outputs to the AfterInstall custom actions section of
the installer.
This causes the MSI to install the services on the machine services list so
they run.

These steps get the services onto the machine, and setup as a service in
windows.

InstallUtil is used at the command prompt to install/uninstall a service by
passing it the path to the exe file for the service. This is normally done
when a system admin just wants to copy the service exe to a machine and
install it manually rather than by using and MSI installer.
If there is just a minor change to the service,this is not required, you
should be able to stop the service, copy the new version over the old and
start the service.

If you really want to know what has caused your code to run, I dont know of
a built in way of doing it with information accessible in the installer class
apart from using the Process class to get the current process. Then looking
at the exe name to see if is MSIExec or installutil.

Does this clear up everything for you.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Alhambra Eidos Desarrollo" wrote:
>
I believe you just include them all in the install and put them all in the
custom actions for it.

Thanks, all is right. It's works fine !!

I guess now, the services can be installed by MSI, and too using installutil
command. If the service has Installer class, all is right.

My question now, how can I know, in my code in Installer class, if the
caller is MSI or installutil ??

Thanks again.
Sep 18 '08 #4
You have multiple threads covering the same topic now. You seem to think MSI
and InstallUtil are interchangeable, but you need to use both. MSI to get
the stuff in the right place, and InstallUtil to setup the service.

"Alhambra Eidos Desarrollo" wrote:
>
I believe you just include them all in the install and put them all in the
custom actions for it.

Thanks, all is right. It's works fine !!

I guess now, the services can be installed by MSI, and too using installutil
command. If the service has Installer class, all is right.

My question now, how can I know, in my code in Installer class, if the
caller is MSI or installutil ??

Thanks again.
Sep 18 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: DraguVaso | last post by:
Hi, I developped a Windows Service in VB.NET (2005). I need to have it installed two times on 1 machine. When I want to install it a second time, the setup doesn't allow me to install it again...
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
13
by: cab0san | last post by:
I downloaded the DB2 runtime client, but the Client Base support and the TCP protocol do not install. I re-run the setup select them to run from disk, and they still show as not installed. What am...
2
by: raghavendra | last post by:
Hi, How to run automatically windows service by using setup deployment insatllation script using visual studio 2003.? What i did is :-- 1. created a windows service & tested the same. 2....
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
1
by: Scott Chang | last post by:
Hi all, 1)I used Microsoft Visual C++.NET (2002) on my Windows Me and Windows XP Home Edition for the last one and half years. 4-5 weeks ago, I upgraded my PC from Windows XP Home Edition to...
1
by: Luther Miller | last post by:
I've created a web setup project that works great for installing an ASP.NET application to a virtual directory on a server. I'd like to be able to use the same setup program to install multiple...
6
by: Jean-Marc Blaise | last post by:
Hi, How can I make MSSQL2K5 setup install everything in the install path I have choosen - it keeps installing some files in ¨%SystemRoot% ? Thanks, JM
3
by: JM | last post by:
Hi, I have created a Solution in VS 2005 with 2 simple projects. First project is simple Windows Service which writes an entry into event log when it starts and when it stops. Nothing else. I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.