MsiExec.exe /X{9BA100BF-B59D-4657-9530-891B6EE24E31};
I need to run this command through my cpp project in main. This is a new version of a piece of software that needs to remove the older version before installing. I want to do this using the Uninstall String from the application's registry. Is there a way to do this in cpp? I'm using Qt 5.5. Thanks.
One of the simplest ways is to use the system function.
I.e.:
Other more Windows specific ways involve the use of CreateProcess or ShellExecute Windows Win32 API functions.