Notify Users with a dialog (Windows)

Description

Use this Windows Fileset when you want FileWave to show users a notification while Filesets download, install, or finish activating. The example monitors the FileWave Client log and raises Windows Notification Center messages when the configured text patterns appear.

0yCjL74fkYJAQhji-embedded-image-hprku5pq.png

 The Fileset is designed to:

The service starts automatically when the user logs in. If the Fileset is disassociated, its pre-uninstallation script removes the service so the watcher does not keep running.

Ingredients

↓ Windows

kEXBT3xhdubSpUhS-embedded-image-3lz5vorf.png

Directions

For the example provided:

You can adjust the Fileset scripts for your environment. The local Windows service runs the script and uses pattern matching against the FileWave Client log. Add or remove patterns to control which client events trigger a user notification.

Windows

Locate the "BallonTipSwitchWatcher.ps1" file within the Fileset and choose to edit.  In the following code block snippet from this script, the switch statement is pattern matching text.  In the provided example the script is looking for lines that contain any one of the following:

Where found, the 'ShowBalloonTipInfo' function is being used to prompt the user:

BallonTipSwitchWatcher.ps1
$changeAction = Get-Content C:\ProgramData\FileWave\FWClient\fwcld.log -tail 1 -wait | ForEach-Object {
switch($_) {
{ $_ -match "Model version" -or $_ -match "Downloading Fileset" -or $_ -match "Done activating" -or $_ -match "Activate all" } { ShowBalloonTipInfo ("FileWave: ",$_.split("|")[4]) }

The second part of the switch statement is causing the script to exit.  The pattern match this time, is any line that contains:

BallonTipSwitchWatcher.ps1
{ $_ -match "Installation" } { break }

Notes

This example uses a Windows service to notify users about Fileset activity. You can adapt the same pattern for other user messages or different points in the deployment workflow.

Related Content


Revision #3
Created 2023-07-14 17:26:19 UTC by Josh Levitsky
Updated 2026-06-26 12:54:38 UTC by Josh Levitsky