Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have created a windows service application in c#. I want to create msi installer to install multiple instance of the same service application on the single project. For that I have added one dialog to take instance name at installation time from user.

At the time of fresh installation, all going well. But when I run msi installer second time with transforms(which is transforming productname & productcode and one added property MSINEWINSTANCE) using following command.

msiexec /I setup.msi TRANSFORMS=transformfilename.mst MSINEWINSTANCE=1

It is launching installer for new install. Installer takes parameters and finally installation process completed successfully,but It is not installing service application. Infect it is not invoking serviceinstaller class.

What is the thing I am missing ?

I really need this thing in my application. Please replay.

Thanks in Advance.

Niraj
Posted
Comments
Sergey Alexandrovich Kryukov 23-Jun-11 12:07pm    
Why on Earth installing the same Windows Service twice? What is it supposed to do?
--SA
patel niraj 23-Jun-11 12:20pm    
Hi SAKryukov,

My application is an connector between two system. And I want to make this connector running without interrupt. So I want to install all the connector service between different instances on the same machine(server).

Thanks
Niraj
fjdiewornncalwe 23-Jun-11 12:30pm    
Why on earth aren't you using properly structured threading instead?
patel niraj 23-Jun-11 12:41pm    
Hi, Marcus Kramer

All the instances need to have multiple different parameters, configuration files. And yes main thing is that, all the instances are for different parties. So it can be possible to configure accordingly and need to restart as per the client requirement.

Thanks
Niraj
videlin 23-Jun-11 15:33pm    
Are you sure the name of the second windows service is different?

1 solution

I am not sure what you are trying to do is the best way to do it, will leave it with you.

However coming to the problem with the installer. I think in this case its best to use sc util with create command to install services.

For more details refer to How to create a Windows service by using Sc.exe[^]
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sc.mspx?mfr=true[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900