How to install file in application data in installation project (C #)

I want to install my database in a separate folder (@C: \ Users \ User1 \ AppData \ Roaming \ Company1 \ database.mdb)

I am using a C # installation project.

How can i do this?

+4
source share
2 answers
  • Right-click the project and choose View → File System
  • on the screen of the new file system, right-click the root directory of the node (File system on the target machine) and select Add a special folder → User applications data folder
  • Select the newly added folder from the tree and create any subfolder structure that you need.
  • Finally, select the destination folder, right-click Add → File and select the .mddb file.
+5
source

Right-click the installation project → View → File System. Then you can add a custom folder and set its default location to [CommonAppDataFolder] :

enter image description here

Then add the database file to this folder.

+2
source

Source: https://habr.com/ru/post/1384294/


All Articles