Continuing the thread to myself . <g> . I wanted to use ShellExecute, but could not get that to work. The good, old-fashioned RUN command did the trick:
run msiexec.exe /uninstall {402564EF-ECC5-4A76-8A57-AAB931A28A8D}
Using ShellExecute to run MSIEXEC "by itself", which just displays a dialog with some help text, did work for me, but passing the parameters was not working. Perhaps I was somehow calling it incorrectly with the parameters.
>Oops, maybe I was too optimistic. It's returning a 2 (bad association) . . . still investigating, help appreciated.
>
>>Answering my own question . . . I did find it with Google after a little more searhing . . . I should be able to run MSIEXEC.EXE -I{app_guid} where app guid is the guid assigned to the app I want to uninstall.
>>
>>>I'd like to be able to programmatically uninstall the previous version of my application from VFP. This is a side-by-side install and once the new version is installed and certain update tasks are performed, I'd like to launch the uninstall program just as if I'd gone to the Add/Remove Programs control panel applet and clicked Remove. I've been Googling for this, but no luck, yet. Anyone done this before?
>>>
>>>Russell