The 'WinService_InstallUtil' shows how to access installed files at the end of installation while being elevated. This is what you are looking for.
However, managing licences is a typical configuration task and as such it should not be coupled with any deployment action. The actual licence activation itself should be implemented outside of MSI. The typical solution for your scenario is to start a "Licence Activation/Management" app at the end of the deployment.
However, managing licences is a typical configuration task and as such it should not be coupled with any deployment action. The actual licence activation itself should be implemented outside of MSI. The typical solution for your scenario is to start a "Licence Activation/Management" app at the end of the deployment.