PDA

View Full Version : How to prevent user launch same installer when first one is running?



jimmyliu
11-24-2005, 03:16 PM
Hi,
Is there a way to prevent user to launch same installer again for msi install when first one is still running? For example, if user click install msi, install dialog will show up, then if user click again, a new dialog will show up. The problem is if user complete first install, and also try to continue second install, some condition like "Installed" will meet, I have some custom actions doing uninstall things, and I give condition "Installed", then second install will run these custom actions doing something like remove customized copied files when installed, etc. This will cause installation damaged. The best way should be prompting error message "Installer already running, exit" to exit second install. Does anyone know how to do it? Or there is no way to do it, I have to handle this situation in my code? Or other condition I should set for "Uninstall"?

Thanks.