将运行中程序进程杀掉,并清理干净占用残留文件;
//卸载事件
function OnMaintUIBefore()
szApplicationPath = WINSYSDIR^"taskkill.exe";
szApplicationCmdLine = "app.exe";//应用程序名称
LongPathToQuote( szApplicationPath, TRUE );
szCmdLine = szApplicationPath + " " + "/f" + " " + "/im" + " " + "\"" + szApplicationCmdLine + "\"";
//MessageBox (szCmdLine, SEVERE);
LaunchAppAndWait ("", szCmdLine, WAIT);
DeleteDir (TARGETDIR,ALLCONTENTS);//删除安装目录下占用残留文件