Home All Groups Group Topic Archive Search About
Author
5 Apr 2006 11:45 AM
Nikolay Petrov
I would like to embed a file in my EXE and extract it at runtime. Is
this possible? If so how?
the file is a MS Access Database. Would like to check if the file
doesn't exists in the application directory to extract it from the exe
and place it there.

Author
5 Apr 2006 1:19 PM
Herfried K. Wagner [MVP]
"Nikolay Petrov" <Nikolay.V.Pet***@gmail.com> schrieb:
>I would like to embed a file in my EXE and extract it at runtime. Is
> this possible? If so how?
> the file is a MS Access Database. Would like to check if the file
> doesn't exists in the application directory to extract it from the exe
> and place it there.

<URL:http://groups.google.de/group/microsoft.public.dotnet.languages.vb/msg/7f73b72ab0a88452>

Instead of creating an icon object from the resource stream, write the
stream's data to a 'FileStream' object.  Maybe it's even better to hold the
default database in a template directory and simply copy this template
database to the desired location instead of blowing up the resource by
embedding larger files.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
5 Apr 2006 1:41 PM
Nikolay Petrov
Thanks Herfried