469,648 Members | 1,144 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

Detecting an MSI "Repair" in an Install class

I have a Windows Service that I created using Visual Studio.NET 2003. No
custom code, just an empty Windows Service.

In VS.NET, I right click on the service, and say "Add Installer", to create
a custom installer for it inside my project. No custom code, just an empty
installer as generated by VS.NET.

I then create a Deployment project, and set the "custom action" for each of
the steps to run the installer found in the Windows Service project.

This method works perfectly for Install and Uninstall. It fails utterly for
"Repair". The MSI engine, on repair, appears to just call the install step.
The install step then errors out with "The specified service already
exists". How do I fix this?

I was also expecting to be able to go into the install step in the custom
installer and add something to the effect of:
If Repairing then
Do something
Do Something Else
end if

.... but I can't figure out how to determine if I'm in the middle of a fresh
install or a Repair.

Any thoughts?

Chris Mullins
Jul 21 '05 #1
0 1806

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by msnews.microsoft.com | last post: by
4 posts views Thread by Big D | last post: by
reply views Thread by Chris Mullins | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.