Hi,
In order to achieve this you can follow the steps below which are also captured in the "
Detect and stop external process during installation" video:
- go in the Custom Actions page and add a "Detect process" custom action above the "Wizard Dialogs Stage -> Searches" action group
- in the "Action Data" text field, write the name of the process that you want to be detected (in your case
MSTSC.exe)
- add a "Display message box" custom action under the "Detect process" custom action with the following settings:
Code: Select all
MSTSC.exe is running. Do you want to stop it automatically?
- set the following condition for the "Display message box" custom action:
AI_PROCESS_STATE = "Running"
- add a "Terminate process" custom action under the "Display message box" custom action and in the "Action Data" text field write the name of the process that you want to stop
- set the following condition for the "Terminate process" custom action:
BTN_PRESSED = "IDYES"
- build and run the project
Let us know if this helped, otherwise give us more details about your scenario.
Best regards,
Eusebiu
FOLLOW US
Get the latest news in Application Packaging