Follow

How to Create a Trigger Point to Perform an Action When an Application Is Closed or Terminated

Product: ProfileUnity          

Product Version: 5.7+

Expires on: 365 days from publish date

Created: November 23, 2015

 

Problem:

Customer needs to create a trigger point that will launch an application and run a script when an application is closed or terminated.

 

Resolution:

1. Ensure that the filter you are planning to use has 'Trigger Points' checked under System Event.

 1_trigger.PNG

2. Under Configuration Management, create a new configuration and choose the Manual option.

3. Configure the modules you want to run when the application is closed/terminated. In the below configuration, Windows Media Player will open and a message box will pop up when the program is terminated.

  • Note: If running an application, specify the full path to the application executable.

2_app_launcher.PNG3_message_box.PNG

 

4. Very important: Save the new configuration to a different directory than your default .ini file. Otherwise the script will run at startup.

Suggestion: Create a 'scripts' directory off your main ProfileUnity directory and store the script there.

5. Make a copy of your license file and put it in the same directory as the secondary configuration.

6. Edit your main configuration, go to Trigger Points and select 'Add Trigger Point Rule'.

7. Add a Trigger Point rule for each item you are running in the secondary configuration.

  • A path is not needed under 'Application Name'. ProfileUnity monitors all system processes and the trigger will run when it sees the process close.
  • Make sure 'Module' matches the module you are running in the secondary configuration.
  • Click the blue 'Advanced' tab at the bottom of the window and populate the 'INI Path' with the full UNC path to the secondary .ini file.

5_trigger_point_rule_2.PNG4_trigger_point_rule.PNG

8. Once finished, there will be a separate Trigger Points item for every module you want to run when the application is closed.

6_each.PNG

9. Save this configuration and upload the .ini file to the ProfileUnity share.

 

With the items configured above, any time Wordpad is closed or terminated, a message box will pop up and Windows Media Player will launch.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.