Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How To Determine if we are in 'Repair' mode?
 

How To Determine if we are in 'Repair' mode?

I need to know if the installer is running in 'Repair' mode (when the user goes to the Add/Remove applet in the Control Panel, selects my app, clicks 'Change' and then selects 'Repair MyApp..'.)

Is there anyway I can obtain whether or not the installer in running in Repair mode from inside my CustomActions DLL code?
Ameya Barve  Tuesday, September 12, 2006 11:43 PM
Bump. Anyone?
Ameya Barve  Thursday, September 14, 2006 11:29 PM
If you're re-running a custom action because of a repair, the case-sensitive Installed property will be set because the product is already installed. A condition of Not Installed should stop your custom action running again during repair. The other property that's set IIRC is REINSTALL so a condition of Not REINSTALL should also work.
PhilWilson  Saturday, September 16, 2006 8:34 PM

You can use google to search for other answers

Custom Search

More Threads

• Avoid "Do you want to run or save this file?"
• Why would msi need vcredist if merge modules are included in a setup project?
• Custom Action not run during upgrade
• "The installed product does not match the installation source."
• making a setupfile
• How to make prerequisites Bootstrapper for Sqlserver 2008 Express Sp1
• clickonce error -Application cannot be started. Contact the application vendor - System.ComponentModel.Win32Exception
• Setup Project Custom Action Problem
• New user cant install app after I have posted updates?
• Data files not copied on updates