Visual Basic Development Bookmark and Share   
 Home > Visual Basic IDE > Publish - Won't copy database on setup
 

Publish - Won't copy database on setup

I am using VB 2008 Express. When I publish my project, all files show up properly in the publish directory. When I go to setup.exe it installs with no errors. When I go to launch the program it says it is missing the database. Sure enough the database that is suppose to go along with the install does not get copied over. If I manually copy the file to the install directory and remove the .deploy from the name the program works like it should.

It is in the folder publish\application files\mydatabase.sdf.deploy and I checked the manifest and it is in there. For some reason it does not get copied over.

Any help would be appretiated. I've posted the publish folder on my webstite http://software.ozark-development.com/downloads/macping.zip.

Thank you,

Matt

Mattastica  Wednesday, January 23, 2008 12:00 AM

I was able to figure it out. If anyone ever has this problem here was the solution. Go to the project properites page. Select the publish tab >> application files >> find the file you are having issues with and change the settings to include and required.

Mattastica  Wednesday, January 23, 2008 2:43 PM

I was able to figure it out. If anyone ever has this problem here was the solution. Go to the project properites page. Select the publish tab >> application files >> find the file you are having issues with and change the settings to include and required.

Mattastica  Wednesday, January 23, 2008 2:43 PM
Was having the same problem Mattastica, thanks. Do you know where the DB (.sdf file) is installed if you run the setup.exe on a machine other than the one the app was developed on? I'm able to deploy and install on my machine (development machine) but I want others to be able to install my app, and the installation process doesn't tell me what files/folders are being created where.

I'm using VB Express 2008 with SQL Server Compact Edition 3.5.

Do others have to have the exact same project directory structure as I do prior to running setup.exe, or will the setup.exe create one for them?

The VB Express publisher/installer doesn't seem to have the usual Target Directory option, where you can choose where you would like to install a new application.

Any help would be appreciated!

Thanks,

Scott
scottydel  Thursday, November 12, 2009 5:44 PM

You can use google to search for other answers

Custom Search

More Threads

• Codes which i do not understand regarding BLOB please help.
• VB Refactoring In Visual Studio 2005 Beta 1
• Where are windows messages defined?
• Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta
• LoadDataRow into designer-configured datatable
• Controls lose methods?
• To Microsoft: Why have an overload that accepts LONG values if the maximum number is System.Int32.MaxValue ?
• IDE annoyances
• Crystal missing from Clickonce Preq
• changing the default indentation in Vis Studio 2008