Does anyone have a simple solution to this problem?
From within my program, I need to be able to search a user's computer drive to find all obsolete installs of my application (typically a DLL), and then run the uninstaller in that folder.
Due to migration from XP to Win7, and imposition of Managed Client, the default install location of my applications have changed. While I have tried to ensure that each version uninstalls earlier versions, this is not always possible. For some releases, I have asked users to uninstall previous versions, but they do not always do this. The consequence is intermittent runtime errors when the user loads an obsolete version unintentionally (and usually unknowingly), resulting in the application either failing to find the now out of date license file, or worse, simply crashing.
So I need a way of cleaning up all installs of my application, irrespective of the folder it was installed in, and do this for potentially multiple copies on the machine. I can tell the user to seach for all copies of the DLL and uninstall them, but if I can write a cleanup program to do it, even better.
Thanks for your assistance,
David