I have a question or two about the use of the serial number facility that can be used on the 'Customer Infofmation' dialog that can be used within an deployment project.

From the MSDN:

The SerialNumberTemplate property determines how the text boxes will appear in the dialog box and also whether the serial number is validated only for format, or validated according to a Windows Installer algorithm.

For example, setting the SerialNumberTemplate property to "<### - %%%%>" creates two text boxes separated by a dash surrounded by spaces. Validation for the first box (###) simply verifies that the user has entered three digits. The second box (%%%%) is validated by an algorithm that adds the digits together and divides the sum by 7.If the remainder is 0, validation succeeds; otherwise, it fails.
Is the algorithm always the same, ie total of '%' numbers, divided by 7?

If you set the template to <%% - %% - %%> does the algorithm add each of the three groups together, or take each group as a separate case, and divide each of them by 7?

Thanks for any help!