just to say the original posters method is useful when deploying to multiple sites with multiple serial numbers via SCCM, so you only need a single MSI package. It will cut down our deployment package requirement by dozens of GB (up to now we have been deploying a separate custom MSI per site)
so yes glad you were clever