Quote from saeid on May 24, 2021, 8:47 amHi.
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?
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?

Quote from Ivanes82 on May 24, 2021, 12:11 pmAs 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.
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.

Quote from HPW on May 24, 2021, 1:12 pmHello,
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
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
Quote from saeid on May 24, 2021, 1:28 pm@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.
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.

Quote from HPW on May 24, 2021, 7:11 pmHello,
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
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
Quote from saeid on May 25, 2021, 8:58 am@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.
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.

Quote from HPW on May 25, 2021, 5:46 pmHello,
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
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