I am evaluating your software now. I created a script to install certain plug-in for Microsoft products. Before I can install/uninstall, I need to make sure that the processes for these products are terminated.
I have followed the example shown in http://www.advancedinstaller.com/user-g ... n-dll.html to create a custom dll to kill all the processes
I have insert the custom action as the first custom action in Install sequence at InstallExecuteSequence, But the installer seem to never call the dll.
Here is a code snipret for dll:
UINT __stdcall KillOfficeApps(MSIHANDLE hInstall)
{
::MessageBox(0, _T("Checking..."), _T(MSG_BOX_TITLE), MB_ICONSTOP);
int appRunning = DoKillApps();
if(appRunning <= 0)
{
::MessageBox(0, _T("There are no instances running."), _T(MSG_BOX_TITLE), MB_ICONSTOP);
return 0;
}
else
{
::MessageBox(0, _T("There are still instances of apps."), _T(MSG_BOX_TITLE), MB_ICONSTOP);
// fail the installer
return 1;
}
}
Did I do something wrong?
Thanks,
P.
FOLLOW US
Get the latest news in Application Packaging