Reading Config file content on before_install event

Feb 23 at 5:33 PM

Is it possible to include the config file of the wixsharp project into MSI and read the key, value from the file during msi_before install event?

I have some hardcoded values in this method and my client has raised escalation for this. Please suggest any work around. Thanks in advance.
Feb 24 at 8:05 AM
Yes it is possible. There are various ways to achieve this but I would rather pure .NET way.

Have your config/ini file as a managed resource in your WixSharp VS project. Then access the resorce content at runtime via resource managedr as you would do with any other resource (e.g. text file, image)

Please note that Wix# has migrated to GitHub: