Hi,
Yes this is possible. Follow these steps:
- go to Custom Actions page
- right click Uninstall → Show Standard Actions → Before File Installation → InstallInitialize
- right click InstallInitialize → Add Predefined Custom Action →
DetectProcess
- right click InstallInitialize → New Custom Action →
Error Message
“DetectProcess” should have the Expression field from the Execution Condition group set to this value:
“Error Message” should have the Expression field from the Execution Condition group set to this value:
Code: Select all
(REMOVE="ALL") AND (AI_PROCESS_STATE="Running")
The links I provided above will help you understand how the two predefined custom actions work.
Regards,
Bogdan