you may add a postinstaller to your setup application. this can be a .NET application which runs installutil.exe or it shells a bat file which in turn runs installuti.exe. The later one more flexible bcos the bat file can be revised any time without having to recompile which is the case if it was a .net app.
your .net postinstaller will call shell method in Main(). (ex) vb.net
sub Main() Shell(AppDomain.CurrentDomain.BaseDirectory & "\postinstall.bat " & AppDomain.CurrentDomain.BaseDirectory) End Sub
postintall.bat should have the following stmt.
installutil.exe bin\yourservice.exe
HTH Ravi
From: Muthuraj Velayutham <[EMAIL PROTECTED]> Reply-To: "Moderated discussion of advanced .NET topics." <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Automating Windows Service Installation Date: Mon, 8 Sep 2003 16:57:27 -0400
Hi,
I have a Windows Service, which has to be installed on to our clients Servers. During the development i can use installutil provided in .NET SDK to install the Windows service and test it.
Now as a part of deployment I am building a setup project to install this Windows service. When I tried to install to one of my test box, I figured out that the installation only copies the file. I need to run the installutil.exe to configure the Windows Serivce.
I don't want my clients to do this. I am sure there is a way to program this in the Setup Project instead of the user doing it.
Any help on this will be appreciated.
Raj
=================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in:
2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet
Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet
View archives and manage your subscription(s) at http://discuss.develop.com
_________________________________________________________________ Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es
=================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in:
2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet
Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet
View archives and manage your subscription(s) at http://discuss.develop.com
