I want to check that a process is not running when I run the installer. I have got this to work by:
- Adding a DetectProcess to the Custom Actions InstallUISequence -> Begin with Action Data of 'notepad.exe'
- Adding a custom launch condition with a condition of 'AI_PROCESS_STATE = "Stopped"' and a description of 'Please close notepad'
This works for attended installations but fails for /passive and /quiet installations - for quiet and passive the log always says "Please close notepad" even when notepad is not running.
Any ideas?
FOLLOW US
Get the latest news in Application Packaging