Making the setup button change when product is already installed.

Jun 3, 2011 at 6: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 7, 2011 at 11:08 PM

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.