Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 6 Dec 2007 07:30:00 -0800 (PST),    group: microsoft.public.dotnet.myservices        back       


Deployment of Windows Service Project   
Hi,

I've created a solution with a project of type "Windows Service" and
deployment project for this service that creates installation package.

I want to have more then one copy of this service installed on one
machine. Since it is not possible to have two services with the same
name I faced the problem: how to parametrize installation wizard? I
mean, I would like to be able to modify service name during
installation. Is it possible?

/M
date: Thu, 6 Dec 2007 07:30:00 -0800 (PST)   author:   unknown

Re: Deployment of Windows Service Project   
On 6 Dec, 15:30, ocho...@gmail.com wrote:
> Hi,
>
> I've created a solution with a project of type "Windows Service" and
> deployment project for this service that creates installation package.
>
> I want to have more then one copy of this service installed on one
> machine. Since it is not possible to have two services with the same
> name I faced the problem: how to parametrize installation wizard? I
> mean, I would like to be able to modify service name during
> installation. Is it possible?
>
> /M

In the projectInstaller class add events
ProjectInstaller_BeforeInstall
and
ProjectInstaller_BeforeUninstall

In there I call a method called ChangeName which simply does:

MyLittleServiceInstaller.ServiceName = m.TheName;


In this case m is a mini dialog. It just pops up and asks for the new
name, but you can do what ever you like. Read it from a file, get it
from a web service, etc.
date: Thu, 6 Dec 2007 08:08:30 -0800 (PST)   author:   DeveloperX

Re: Deployment of Windows Service Project   
On 6 Gru, 17:08, DeveloperX  wrote:
> On 6 Dec, 15:30, ocho...@gmail.com wrote:
>
> > Hi,
>
> > I've created a solution with a project of type "Windows Service" and
> > deployment project for this service that creates installation package.
>
> > I want to have more then one copy of this service installed on one
> > machine. Since it is not possible to have two services with the same
> > name I faced the problem: how to parametrize installation wizard? I
> > mean, I would like to be able to modify service name during
> > installation. Is it possible?
>
> > /M
>
> In the projectInstaller class add events
> ProjectInstaller_BeforeInstall
> and
> ProjectInstaller_BeforeUninstall
>
> In there I call a method called ChangeName which simply does:
>
> MyLittleServiceInstaller.ServiceName = m.TheName;
>
> In this case m is a mini dialog. It just pops up and asks for the new
> name, but you can do what ever you like. Read it from a file, get it
> from a web service, etc.


There is no projectInstaller class. How can I add it?

/M
date: Thu, 6 Dec 2007 23:37:15 -0800 (PST)   author:   unknown

Re: Deployment of Windows Service Project   
On 7 Dec, 07:37, ocho...@gmail.com wrote:
> On 6 Gru, 17:08, DeveloperX  wrote:
>
>
>
>
>
> > On 6 Dec, 15:30, ocho...@gmail.com wrote:
>
> > > Hi,
>
> > > I've created a solution with a project of type "Windows Service" and
> > > deployment project for this service that creates installation package.
>
> > > I want to have more then one copy of this service installed on one
> > > machine. Since it is not possible to have two services with the same
> > > name I faced the problem: how to parametrize installation wizard? I
> > > mean, I would like to be able to modify service name during
> > > installation. Is it possible?
>
> > > /M
>
> > In the projectInstaller class add events
> > ProjectInstaller_BeforeInstall
> > and
> > ProjectInstaller_BeforeUninstall
>
> > In there I call a method called ChangeName which simply does:
>
> > MyLittleServiceInstaller.ServiceName = m.TheName;
>
> > In this case m is a mini dialog. It just pops up and asks for the new
> > name, but you can do what ever you like. Read it from a file, get it
> > from a web service, etc.
>
> There is no projectInstaller class. How can I add it?
>
> /M- Hide quoted text -
>
> - Show quoted text -

Here's a link that describes it. Will save me some typing :)

http://www.devx.com/dotnet/Article/20849/1763/page/2
date: Fri, 7 Dec 2007 02:56:43 -0800 (PST)   author:   DeveloperX

Re: Deployment of Windows Service Project   
On 7 Gru, 11:56, DeveloperX  wrote:
> On 7 Dec, 07:37, ocho...@gmail.com wrote:
>
>
>
> > On 6 Gru, 17:08, DeveloperX  wrote:
>
> > > On 6 Dec, 15:30, ocho...@gmail.com wrote:
>
> > > > Hi,
>
> > > > I've created a solution with a project of type "Windows Service" and
> > > > deployment project for this service that creates installation package.
>
> > > > I want to have more then one copy of this service installed on one
> > > > machine. Since it is not possible to have two services with the same
> > > > name I faced the problem: how to parametrize installation wizard? I
> > > > mean, I would like to be able to modify service name during
> > > > installation. Is it possible?
>
> > > > /M
>
> > > In the projectInstaller class add events
> > > ProjectInstaller_BeforeInstall
> > > and
> > > ProjectInstaller_BeforeUninstall
>
> > > In there I call a method called ChangeName which simply does:
>
> > > MyLittleServiceInstaller.ServiceName = m.TheName;
>
> > > In this case m is a mini dialog. It just pops up and asks for the new
> > > name, but you can do what ever you like. Read it from a file, get it
> > > from a web service, etc.
>
> > There is no projectInstaller class. How can I add it?
>
> > /M- Hide quoted text -
>
> > - Show quoted text -
>
> Here's a link that describes it. Will save me some typing :)
>
> http://www.devx.com/dotnet/Article/20849/1763/page/2

OK, that works, but only partially :(
Looks like it is not even possible to run setup when one instance of
the product (service) is already installed. When I launch it I'm asket
whether to remove or repair the installation.
Is it possible to tell the installer to omit this check? Then I would
be able to specify different installation directory and different
service name.

/M
date: Fri, 7 Dec 2007 08:56:25 -0800 (PST)   author:   unknown

Re: Deployment of Windows Service Project   
Windows Installer is designed to work with versions , whenever you install 
service change the product version of setup project  lets say 5.0

install the service the way DeveloperX has explained.

Now when you wish to install another copy of the service change the  Product 
version of the setup project to something higher lets say 6.00, build setup 
project and install. 

It should work 

-- 
Tarun Upadhyaya
MCP (VB.NET, ASP.NET & SQL Server 2000)
NB: If you find my post helpful pls click the yes button.  


"ochocki@gmail.com" wrote:

> On 7 Gru, 11:56, DeveloperX  wrote:
> > On 7 Dec, 07:37, ocho...@gmail.com wrote:
> >
> >
> >
> > > On 6 Gru, 17:08, DeveloperX  wrote:
> >
> > > > On 6 Dec, 15:30, ocho...@gmail.com wrote:
> >
> > > > > Hi,
> >
> > > > > I've created a solution with a project of type "Windows Service" and
> > > > > deployment project for this service that creates installation package.
> >
> > > > > I want to have more then one copy of this service installed on one
> > > > > machine. Since it is not possible to have two services with the same
> > > > > name I faced the problem: how to parametrize installation wizard? I
> > > > > mean, I would like to be able to modify service name during
> > > > > installation. Is it possible?
> >
> > > > > /M
> >
> > > > In the projectInstaller class add events
> > > > ProjectInstaller_BeforeInstall
> > > > and
> > > > ProjectInstaller_BeforeUninstall
> >
> > > > In there I call a method called ChangeName which simply does:
> >
> > > > MyLittleServiceInstaller.ServiceName = m.TheName;
> >
> > > > In this case m is a mini dialog. It just pops up and asks for the new
> > > > name, but you can do what ever you like. Read it from a file, get it
> > > > from a web service, etc.
> >
> > > There is no projectInstaller class. How can I add it?
> >
> > > /M- Hide quoted text -
> >
> > > - Show quoted text -
> >
> > Here's a link that describes it. Will save me some typing :)
> >
> > http://www.devx.com/dotnet/Article/20849/1763/page/2
> 
> OK, that works, but only partially :(
> Looks like it is not even possible to run setup when one instance of
> the product (service) is already installed. When I launch it I'm asket
> whether to remove or repair the installation.
> Is it possible to tell the installer to omit this check? Then I would
> be able to specify different installation directory and different
> service name.
> 
> /M
>
date: Fri, 21 Dec 2007 04:52:00 -0800   author:   Tarun Upadhyaya t a r u n u p a d h y a y a @ y a h o o . c o . i n

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us