When I need to embed exe or dll files into the exe I found a workaround to do that:
Copy the file and rename the file extension to something else (like '.dat' or so), this will allow you to add the file in the project manager under Textfiles.
When starting the application, you can copy the files using the original file name:
STRTOFILE(FILETOSTR("MySql.Data.dat"),"MySql.Data.dll")
Of course you have to check if the file exists already and if you have write access at that moment, but that is the basic approach that I used successfully in those situations.
>Hi all,
> I use vb.net , mysql and download the ADO.NET Driver for MySQL (Connector/NET) driver, wrote the program (reference
>Mysql.data in C:\Program Files\MySQL\MySQL Connector Net 6.4.4\Assemblies\v2.0\MySql.Data.dll) , so the develop computer
>can execute, no error.
> But run to client computer display error.
> System.IO.FileNotFoundException: Can not find this file or module 'MySql.Data, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
>
> How can i embedding MySQL.Data.dll to exe. thank you ~~~
Christian Isberner
Software Consultant