Hello Experts. First let me say I am not a programmer :P I need help tweaking an uninstall script I found here:
I've updated the strKeyPath to reference the correct program to uninstall and it works. The problem is if it runs after the uninstall has taken place. For example, a user logs in and the script runs and it does the uninstall successfully. The next time the user logs in and the script runs it returns the following error:
Error: Unable to wait for process.
Is there a way to set an IF statement that checks the registry for the uninstall string for the particular program and if it exists to run the script otherwise kick out? Or you may know of a better way to accomplish this.
Also, I would like the script to check for 2 programs to uninstall. For example, first it will check to see if program1 is installed, if so it runs the commands to uninstall it. If not, it checks to see if program2 is installed. If so it runs the uninstall commands and if not it ends.
Thanks for your help,