Ok, now I understand.
Take some thoughts from these folks:
http://community.installshield.com/showthread.php?t=92019http://community.installshield.com/showthread.php?t=104752CA - Custom Action.
Capturing may not be a best idea of previous uninstallation however creating a custom action that will check for particular hive/entry of the earlier program and running the uninstall feature of the earlier program may work. You can look into the ideas as folks have mentioned in the linked threads.
Logical Example of how to look into the registry for uninstall:
IF EXISTKEY("HKEY_LOCAL_MACHINE\Software\Your Program") <> 0
? "Key does not exist"
GOTO ENDUNINSTALL
ELSE
IF EXISTKEY("HKEY_LOCAL_MACHINE\Software\Your Program") = 0
? "Key does exist!"
GOTO UNINSTALL
Also, can't you just invoke your uninstall script in AD which will uninstall the earlier app and then invoke your new .msi installation? I think it is possible (not sure though how to do it, not an AD guy...
🙂 )