I have a setup made with installshield 2012, framework 3.5 and I am generating a new setup. My problem is that my UpgradeCode had to be changed. So I need to Update mi .exe with a different UpgradeCode. My problem is tan when I have the old .exe versión running, the installation do not execute well and the .exe failed when execute. What I need to do is to CONFIRM that Old versión is not running before Install the new version. I have tried to include in my Installer class
public override void Install(IDictionary stateSaver)
{
Process[] processes = Process.GetProcessesByName(processID);
foreach (Process process in processes)
{
process.Kill();
process.WaitForExit();
process.Close();
}
}
But it does not work. Any Ideas? Thanks