I have a question. I have created 4 installers with different upgrade codes to provide dedicated 32 and 64 bit installers, and installers that can be installed as administrators or individual users. Each have their own upgrade codes. There are problems if users have one version and try to install over the other as the old version isn't removed since the upgrade codes don't match. So, I've written a powershell script that I run inline that checks for the different installs, and if present, presents the user with the option to uninstall the current version and switch install types or will automatically download and install the correct version.
When the powershell script runs and finishes correctly, it just completes. If a user is prompted and cancels the process -- the script thows an exception and the process stops due to the setting in the inline powershell custom action where it fails on exception.
My problem is I'm running into antivirus programs (niche programs) that will block powershell from running. What I'd like to do is allow the install to continue if the script is blocked, but I can't tell if there is a way differentiate between the exception thrown when the user cancels the script action versus when the script is blocked from running.
Thanks,
--tr