Updating embedded files - Forum

Forum Navigation
You need to log in to create posts and topics.

Updating embedded files

Hi.

I have a .csv file in my embedded files as my data bank. In my software the data bank should be able to update by the user.

Does anyone have idea about updating embedded files during using the compiled software?

As far as I know, I think that is not possible. Embedded files cannot be modified within the exe. They can be extracted and modified, but not re-embedded.

@ivanes82

Do you have any idea to put update ability in a software?

Hello,

Why not leave the CSV external in a user/Appdata folder? Any reason?

You may use encrytion or another database format with password protection.

Regards

Hans-Peter

 

@hpw

Hi,

Thanks for your reply.

I want to give the user only an .exe file or a setup file. Actually, it's not desirable to leave the .csv file inside the folder where the .exe file exists.

Hello,

I did not meant the exe folder for data storage.

The exe is usally installed in 'Programm'. There you should not store data.

The UAC from MS will not like storing data there.

So the exe could extract the data file to user/appdata/yourfolder on the first startup and use it further from there.

At least I do not know your motivation about your wish.

Regards

Hans-Peter

 

@hpw

Do you mean that I should create a setup program and extract my .csv file during installation?

if yes, How should I do that? How can I extract a file during installation?

Would you please explain clearer?

Thanks for your time.

Hello,

A setup programm is only one option.

You can do it in your exe.

I the startup action you can use "FolderExist" or "FileExists" to check if your folder and datafile is present in the file-system.

If so use it. If not create your folder and extract your CSV file first time.

https://winhelp.visualneo.com/Files1.html#EXTRACTFILE

There you can change it as you like.

Regards

Hans-Peter

 

 

@hpw

Thanks a lot for your help.