View previous topic :: View next topic |
Author |
Message |
PaulS
Joined: 03 Jul 2013 Posts: 24
|
Posted: Mon May 21, 2018 5:17 pm Post subject: How to add DLLs |
|
|
We have been encrypting only the main exe of a project and this works great. Can you give step by step instructions for adding additional project DLLs to encryption as well? |
|
Back to top |
|
 |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue May 22, 2018 11:10 am Post subject: |
|
|
You encrypt additional DLLs in exactly the same way as for the main exe using a prebuild event to call NetEncryptor. You then add the encrypted assembly to your project as an embedded resource as described in the Help under the section "Adding your own Assemblies".
That's all you need to do. .NET Encryptor handles attempts to load new assemblies and will automatically looking in the applications resources for the corresponding encrypted assembly and unpack and load it on demand. _________________ Infralution Support |
|
Back to top |
|
 |
PaulS
Joined: 03 Jul 2013 Posts: 24
|
Posted: Sat May 26, 2018 9:07 pm Post subject: |
|
|
What about the case where the main exe is not encrypted but you want to use an encrypted dll? |
|
Back to top |
|
 |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon May 28, 2018 7:48 am Post subject: |
|
|
If for some reason your main assembly can't be encrypted then you can use the LoadAssemblyFromFile to load DLL assemblies and then execute methods using reflection. See http://www.infralution.com/phpBB2/viewtopic.php?t=2591 _________________ Infralution Support |
|
Back to top |
|
 |
|