문제

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

I'm using a C# setup project.

How can I do it?

도움이 되었습니까?

해결책

  1. Right-click on the project and select View -> File System
  2. in the new File System screen, right-click the root node (File System on target Machine) and select Add Special Folder -> User's Application Data Folder
  3. Select the newly added folder form the treeview and create any sub-folder structure you need
  4. Finally select your destination folder, right-click, Add -> File and select the .mddb file.

다른 팁

Right click on your Setup project -> View -> File System. Then you could add a custom folder and set its default location to [CommonAppDataFolder]:

enter image description here

Then add your database file to this folder.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top