Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add file an .EXE after it is built?
Message
From
16/04/2019 10:06:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01668100
Message ID:
01668110
Views:
51
>>>Hi,
>>>
>>>Is it possible to add/include a file to an EXE file? As if the file was included at design/compile time?
>>>
>>>TIA
>>
>>I have to ask, why? There could be other way to accomplish what you need.
>
>One of the files used by SDT is SDTMeta.dbf. Sometimes I get an error from the customer that this file cannot be read by the application. To prevent these errors, ideally, I would include this file into the application (into the .EXE).

We keep a separate meta\ folder off our main folder, and when there are SDTMeta.dbf errors, or our main .DBC errors, or other fixed file errors, we can copy them over from our meta\ folder.

>But, for some customers, this file has to be updated/changed, when the application is being updated. Reason is that these customers have custom fields or some other custom settings that require this file to be different from other customers.
>Therefore, I would like to include this file, SDTMeta.dbf into the EXE; but for those that need to have a custom version, modify it - during the update - and then store it into the .EXE

If your customers allow you to have those backup files, you can store them locally, possibly in a .ZIP file, and then extract them or copy them over as needed. You can even do a comparison to see if the live version matches the meta version, and if not update it before the error occurs.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform