I’d like a user to download an exe from my website, where (synchronously upon download) an XML file is injected into this application. This XML file contains a public key, and a signature.
How do I inject the file prior to downloading and reference it later during execution?
Ideally I won’t be using a shell to inject the file, rather a native .NET api.
You could that easily with Mono.Cecil, you’d just have to write something like:
To inject the signature.xml resource from the signature.xml file, and sign back your assembly with your keypair.snk that you used to sign Application.exe.
And at runtime, you’d just have to use:
To retrieve the resource.