Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > SetUp Project .msi deploying MS Database
 

SetUp Project .msi deploying MS Database

My project has a ms Access database which has which has been added as data source in the root of my project. The properties set: Build Action �Content and Copy to output directory �Do Not Copy.

My problem is: when deployed using SetUp project .msi the database is visible in its original state in the deployed folder.

SetUp dependences include: Content file from MySetup (active) �Primary output from MySetup (active) �XML Serialization assemblies from MySetup (active) Although I can protect the DB with password it’s more secure to not visible.

There is no problem using ClickOnce. Have I missed a configuration?

hemo

hemo  Saturday, July 18, 2009 11:09 PM
Hi Hemo,

You can install the Access database file to the user's Application Data Folder rather than the target installation directory where the executable is installed. Open the Setup project. In the File System view, add the "User's Application Data Folder" under the File System on Target Machine and move the database file to this Application Data Folder.

Hope this helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
  • Marked As Answer byhemo Thursday, July 30, 2009 9:03 PM
  •  
Linda Liu  Wednesday, July 29, 2009 10:02 AM
Hi Hemo,

> when deployed using SetUp project .msi the database is visible in its original state in the deployed folder.

Do you mean that the database file is installed on the target machine? The MS Access database is a file-based database, so the Access database file must be installed on the target machine for the application to retrieve data from it.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Tuesday, July 28, 2009 10:27 AM

Hello Linda

Yes my query is that the database on the target PC is accessibly.

Is password protection the only method to preserve integrity ?

Regards

hemo

hemo  Tuesday, July 28, 2009 3:10 PM
Hi Hemo,

You can install the Access database file to the user's Application Data Folder rather than the target installation directory where the executable is installed. Open the Setup project. In the File System view, add the "User's Application Data Folder" under the File System on Target Machine and move the database file to this Application Data Folder.

Hope this helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
  • Marked As Answer byhemo Thursday, July 30, 2009 9:03 PM
  •  
Linda Liu  Wednesday, July 29, 2009 10:02 AM
hello Linda

Thank you, this really does help. I think this will solve my problem

Regards

hemo

hemo  Thursday, July 30, 2009 9:06 PM

You can use google to search for other answers

Custom Search

More Threads

• How to force updates to download
• Use ClickOnce to check update for late bound dll
• How can i trace and download whole web site ?
• Registry Update during un-install
• ClickOnce - Publisher
• mage.exe -Update and error MSB3113: Could not find file '***.config'
• Bootstrapper and URL Parameters
• Uninstall shortcut
• ClickOnce and DEP
• PostBuild modified Assemblies