PC Review


Reply
Thread Tools Rate Thread

Add / Remove Programs "Repair" function causes services error

 
 
=?Utf-8?B?QnJpYW4gUw==?=
Guest
Posts: n/a
 
      18th Jan 2005
I've created a Windows Service and Installer using the MSDN Walkthrough
article. However, if I select "Change" then "Repair" out of the Add / Remove
Programs list then I get the error "The specified service already exists"

Anyone know how to fix this error or disable the Repair function?

Thanks!
 
Reply With Quote
 
 
 
 
Phil Wilson
Guest
Posts: n/a
 
      18th Jan 2005
You get this because a repair is a reinstall, and a reinstall includes
running custom actions, and so the Installer class tries to reinstall the
Service.
You can correct this by adding a Condition of NOT REINSTALL on the Installer
class Install and Commit custom actions so that they don't get called during
a repair, when the Windows Installer REINSTALL property is set.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Brian S" <(E-Mail Removed)> wrote in message
news:6B8BE2F3-5A74-4BDF-9CA9-(E-Mail Removed)...
> I've created a Windows Service and Installer using the MSDN Walkthrough
> article. However, if I select "Change" then "Repair" out of the Add /
> Remove
> Programs list then I get the error "The specified service already exists"
>
> Anyone know how to fix this error or disable the Repair function?
>
> Thanks!



 
Reply With Quote
 
=?Utf-8?B?QnJpYW4gUw==?=
Guest
Posts: n/a
 
      18th Jan 2005
Adding the "NOT REINSTALL" to the Condition property of the Custom Action
solved the problem.

Thanks for the tip Phil! I'll have to take a look at that book of yours!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Did "Add Remove Programs" repair the updates as well? AAaron123 Windows XP General 9 3rd Aug 2009 08:58 PM
XP-no "add/remove" programs function NASCAR8 Windows XP Help 1 20th Aug 2007 01:25 AM
"Run Dll as an App" Error in "Add or Remove Programs" Steven Shelton Windows XP General 4 30th Oct 2004 12:36 PM
When I try to open Control Panel\"Add/remove programs", I get the message shown in the subject line of this message posting. When I then get in "Add/remove programs", I cannot uncheck box next to "Message Queuing" in Con =?Utf-8?B?cGJhZXJ3YWxk?= Windows XP Help 2 14th Jan 2004 03:11 PM
Control Panel error when opening "Add/Remove Programs" Luke Akins Microsoft Windows 2000 Applications 1 15th Sep 2003 11:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:29 PM.