How to create setup project with database attached to it?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aswal
    New Member
    • Aug 2013
    • 38

    How to create setup project with database attached to it?

    I have created a setup project for my database application.

    Here is the connection string

    Code:
    con.ConnectionString=@"Data Source=|DataDirectory|\data\Employees.sdf";
    After its installation when i opened it, it is showing the following error

    Access to the database file is not allowed.

    How to solve it.
  • shoppingin
    New Member
    • Aug 2013
    • 10

    #2
    Have you created database connection and using that in your project?

    Comment

    • redz
      New Member
      • Aug 2013
      • 12

      #3
      what type of database are you using for?

      Comment

      • redz
        New Member
        • Aug 2013
        • 12

        #4
        suggestion:
        i think you have to use "Inno setup" to compile an exe file

        Comment

        Working...