Making the setup button change when product is already installed.

Jun 3, 2011 at 7:05 PM


When the setup is installed and everything is fine, how can I make it so when a user runs setup again instead of showing "Install" button it shows "Maintenance" and it opens the setup which allows them to either modify, repair, uninstall.



Jun 8, 2011 at 12:08 AM

There's no really nice answer. DNI doesn't do maintenance - it's already complicated enough with install/uninstall with the hundreds of edge cases. This is basically what your MSI would do if it were to just rerun, so if you don't have a condition for installation, it would just try to reinstall it and show that UI you want.