Hi Pete, I uninstalled my windows service using Add/Remove programs. I tried to reinstall after somechanges to my windows service, but I haven't changed anything to the Setup/Install Project.
Now I am getting error from Windows Installer "Another version of this product is already installed. Intallation of this version cannot continue. To configure or remove the existing version of this product use Add/Remove Programs on the Control Panel" I stopped the windows service. I tried to uninstall my Windows Service using installutil /u mywindowsservice.exe. I ran Add/Remove program again to remove the windows service. I deleted the directory of the windows directory. I restarted the machine. When I try to install it again I am getting the same error as "Another version .... blah blah blah" I don't know why doesn't allow to uninstall the service. Raj -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Brown, Peter Sent: Tuesday, September 09, 2003 9:37 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Automating Windows Service Installation You don't need to do all that if you add the custom installer to your project and then add a deployment project to the solution. I'm almost positive that installutil fails if you don't have the installer in your project anyway, so I'm not sure where the original disconnect is. Pete ------------------------------------------------------------------ Pete Brown - Lead Systems Architect, MCAD.Net, MCSD 5,6 Personal Site : http://www.irritatedVowel.com (wallpaper, games, .net, model railroading, birds, photography) ------------------------------------------------------------------ Be sure to check out www.vb-faq.com and www.codehound.com -----Original Message----- From: Paulo Sacramento [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 6:56 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Automating Windows Service Installation I'm not sure this is close to what you want, but here goes anyway. I wrote it with the same intention as you but with a command-line install. The parameter "string version" is the runtime version, which will be something like "v1.0.3705" or "v1.1.4322" (releases 1.0 and 1.1 respectively). It's a bit messy but it works: private static void RunProcess(string version) { Process p = new Process(); ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName="\""+Environment.GetEnvironmentVariable("windir")+"\\Microsoft. Net\\Framework\\"+version+"\\"+"installutil.exe\""; psi.Arguments = "BirthdayService.exe"; //replace this by the name of your service executable psi.UseShellExecute = false; psi.RedirectStandardOutput=true; p.StartInfo = psi; p.Start(); p.WaitForExit(); Console.WriteLine(p.StandardOutput.ReadToEnd()); } Paulo Sacramento =================================== 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 =================================== 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
