I have 2 programs(A and B) with the same upgrade code - when one is installing the other one is uninstalled. Now I have to install both programs on the same machine, in order to do that I changed the upgrade code from one program(A) My problem is that if I already have an old version of A installed on my pc MSI doesn't recognize the new upgrade code and makes a new install. How can I uninstall the old version? Is there a way to do that from installShield? I tried to make a custom script :
LAAW_SHELLEXECUTEVERB = "runas";
MessageBox("result incercam uninstall",INFORMATION);
command_e = "wmic product where \"description='IP Office Admin Lite'\" uninstall";
LaunchApplication( "cmd.exe",
"/C " + command_e,
"",
SW_MINIMIZE, 0, LAAW_OPTION_WAIT );
But somehow it doesn't work everytime, I think is has something to do with timing. What do you think?