Include exe file as a resource (solved)

Post Reply
alvaro533
Posts: 206
Joined: Sat Apr 19, 2008 10:28 pm
Location: Madrid, España

Include exe file as a resource (solved)

Post by alvaro533 »

Good afternoon,

I have created a small program in fwh64, for example, "myapp.exe." The program "myapp.exe" calls a utility, "pdftopng.exe," which is open-source and occupies 1MB, in the background. I would like to distribute my program as a single file, "myapp.exe." Is it possible to include "pdftopng.exe" within "myapp.exe" as a resource or library, or something similar? Then, when the client copies "myapp.exe" to their computer and runs it, it would check if "pdftopng.exe" is in the program's folder, and if it's not, extract it to be used.

Thank you and regards,

Alvaro
alvaro533
Posts: 206
Joined: Sat Apr 19, 2008 10:28 pm
Location: Madrid, España

Re: Include exe file as a resource (solved)

Post by alvaro533 »

In the rc file:

Code: Select all | Expand

FILE1 RCDATA "..\\..\\GeoTif\\utils\\pdftopng.exe"
in fwh

Code: Select all | Expand

RCDATATOFILE( GetResources(), "FILE1", "pdftopng.exe" )
Regards

Alvaro
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Include exe file as a resource (solved)

Post by Antonio Linares »

Very good!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
cnavarro
Posts: 6552
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Include exe file as a resource (solved)

Post by cnavarro »

Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Post Reply