I just need a little reassurance here. I am creating a basic C# program that, among other things, will uninstall and reinstall the most current version of a program (I can't build this functionality into the program itself). The way I am doing it is by:
MsiExec.exe /X{[UninstallString]} /passive
in a command prompt process. I have a couple of questions:
- Obviously you don't know the history of the program (I don't either to tell you the truth), but is that uninstall string generally the same every time for every version? Does it change?
- Is there any possible way that the uninstallstring could accidentally be a different program's string on another computer? I don't want to uninstall anything else.
Basically I just want to know if this is safe. If not, or if there is a better way to do this programatically, let me know! Thanks!