Product Version: 5.7+
Expires on: 365 days from publish date
Created: November 23, 2015
Customer needs to create a trigger point that will launch an application and run a script when an application is closed or terminated.
1. Ensure that the filter you are planning to use has 'Trigger Points' checked under System Event.
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.
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.
8. Once finished, there will be a separate Trigger Points item for every module you want to run when the application is closed.
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.