472,374 Members | 1,267 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 software developers and data experts.

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 1923

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

Similar topics

by: msnews.microsoft.com | last post by:
I am using Visual .NET studio to create a deployment project. When you run the setup.exe again, there will be two options for the user: uninstall or repair. I wonder how to disbale the repair...
by: Dirk Försterling | last post by:
Hi all, a few days ago, I upgraded from PostgreSQL 7.2.1 to 7.4, following the instructions in the INSTALL file, including dump and restore. All this worked fine without any error (message). ...
by: Xiphias | last post by:
Hi, Hope you can help me on this... I got 1 form with a sub form. On this subform there are only parts of records, so you can select the one you want to edit. When you dubbel click that...
by: John Phelan | last post by:
Continue to get error message. Here is an update of my problem and everything that I have done to correct it. I have created a front-end application and back-end database. I have code that...
by: Big D | last post by:
I recently got a new system, and re-installed studio. It was working fine, but now whenever I start it I get a prompt that says: "Please wait while windows configures visual studio .net -...
by: Agnes | last post by:
I need to disable the exit button in the form . However, the min. and max. button need to keep it How ? Thanks a lot From Agnes
by: Chris Mullins | last post by:
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...
by: mamoon | last post by:
I am using RHEL4. Last time while booting it shows "repair filesystem". i have used in this way sda1,sda2 and others are ok. BUT when i run this command on sda7 (which is mounted on root) it...
by: LBryant | last post by:
This is a more general question, although I rely mostly on VBA for my Access design. This issue only started recently and has me worried. I have a dabase named Media calendar.mdb. When I use the...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

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.