473,545 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Add/Remove Programs: The specified service does not exist as an installed service

I am trying to write a Windows Service in C# .NET Version 1.1.

I followed Microsoft's directions:

(http://msdn.microsoft.com/library/de...pplication.asp)

to the letter and everything worked fine.

Then I went into Windows Explorer and changed the name of my files to
what I really want....

When I try to Remove Program MyServiceSetup from Start -> Settings ->
Control Panel -> Add/Remove Programs, I get the error message ...

"An exception occurred while uninstalling. This exception will be
ignored and the uninstall will continue. However, the application
might nut be fully uninstalled after the uninstall is complete. -->
The specified service does not exist as an installed service"

.... and the program stays.

The good news is that my C# .NET framework can still compile and
install the Service that I want, with the same error message, and the
Service is indeed updated, but I would rather not have error messages
appear during my development.

I have also tried from the command line: `installutil /u ...` and I
get similar error messages.

Any ideas on how to install a renamed service without any error
messages?
Nov 16 '05 #1
1 13534
Windows installer keeps track of installed files by recording their names
and locations, and whenever necessary the commit and rollback commands (in
this case the installutil). Whe you try to uninstall a program, the
installer searches for te files, if they are not found, or their locations
change, then -logically-, the uninstall operation fails.

If you changed the names of files, and you want to uninstall, then simply
revert the file names back to their original names. And if necessary, if you
have uninstalled any service that the installer registers, then try to
register it back using installutil. Afterwards, run the uninstaller,
otherwise you will not be able to remove the application automatically.

<ch************ ********@yahoo. com> wrote in message
news:dd******** *************** ***@posting.goo gle.com...
I am trying to write a Windows Service in C# .NET Version 1.1.

I followed Microsoft's directions:

(http://msdn.microsoft.com/library/de...-us/vbcon/html
/vbwlkwalkthroug hcreatingwindow sserviceapplica tion.asp)
to the letter and everything worked fine.

Then I went into Windows Explorer and changed the name of my files to
what I really want....

When I try to Remove Program MyServiceSetup from Start -> Settings ->
Control Panel -> Add/Remove Programs, I get the error message ...

"An exception occurred while uninstalling. This exception will be
ignored and the uninstall will continue. However, the application
might nut be fully uninstalled after the uninstall is complete. -->
The specified service does not exist as an installed service"

... and the program stays.

The good news is that my C# .NET framework can still compile and
install the Service that I want, with the same error message, and the
Service is indeed updated, but I would rather not have error messages
appear during my development.

I have also tried from the command line: `installutil /u ...` and I
get similar error messages.

Any ideas on how to install a renamed service without any error
messages?

Nov 16 '05 #2

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

Similar topics

5
53301
by: KC | last post by:
Hello I installed MySQL ver 4.0.20d on a Windows XP Professional PC. I created a user and database that I would like to delete, and at this point I would just like to uninstall MySQL and do a fresh installation. I have deleted MySQL by going to Start > Settings > Control Panel > Add or Remove Programs. However, when I reinstall MySQL, ...
1
6400
by: charismatic_evangelist | last post by:
I am trying to write a Windows Service in C# .NET Version 1.1. I followed Microsoft's directions: (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughcreatingwindowsserviceapplication.asp) to the letter and everything worked fine. Then I went into Windows Explorer and changed the name of my...
5
26519
by: Jacobus Terhorst | last post by:
I created a simple windows service. However when I built it again a couple of days later I could no longer install the service. The InstallUtil.exe cannot UNINSTALL the service because "The specified service does not exist as an installed service" However InstallUtil.exe cannot INSTALL the service because "The specified service already...
0
2821
by: Charles Leonard | last post by:
I need opinions regarding Web Service Namespace usage and/or suggestions regarding how to handle deployment. Our web service application will exist in two different domains and is likely to exist in multiple domains. There is a prevailing opinion here at my office that the Web Service Namespace should match the domain where it is...
2
4268
by: Kristopher Wragg | last post by:
hi I'm wondering whether there is a way in C# to be able to see whether a program has been installed or not? I want to create a distributional executeable that will have a few components and show which has been installed already and if it hasn't been installed then allows them to install it, also not allowing them to install a certain...
3
6268
by: craigbennett | last post by:
Hi, I am trying to use std::remove to delete a file and have been encountering some problems. My goal is to pass std::remove a std::string and remove the file of that name, for example. Std::string a = "C:\\Documents and Settings\\a.txt"; Std::remove(a.c_str()); However the process fails and returns error code 267 The directory name
10
1910
by: Number 11950 - GPEMC! Replace number with 11950 | last post by:
Hi all, Playing VS2005 was more fun than Doom III, and I do enjoy my games. Anyway, it's back to work for me and I'm bogged down in my familiar VB6 stomping grounds because I don't want my secrets exposed to casual inspection via MSIL. VB6 doesn't do this to me, whereas, if I read Balena correctly, VB2005 always will. The one single and...
61
3219
by: arnuld | last post by:
I have created a program which creates and renames files. I have described everything in comments. All I have is the cod-duplication. function like fopen, sprint and fwrite are being called again and again. I know to remove code-duplication I have to make functions and pass arguments to them but I am not able to think of a way doing it....
6
10425
by: Jean-Marc Blaise | last post by:
Hi, I have installed DB2 9.5 directly from FP1 on Windows in custom mode with COMP=CONNECT_SUPPORT. I then added my DB2 Server license. I am surprise that db2licm refers to a DB2 Connect Server. Is there a way to remove the product I have never installed ? db2licm -l Product name: "DB2 Enterprise Server Edition"
0
7682
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7449
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7780
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6009
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5351
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.