$WINGROUP$ is assigned a value only if the WINGROUP command is used. It is assigned a value after the user has been prompted for the name of a Windows program group into which to install the software.

It takes on the value of whatever the user has entered.

For example, installing icons into the specified program group (with the WINITEM command).