hi
can anyone tell me in which site i'll find good detail steps for deployment steps in vb.net 2005

Dani AI

Generated

A short, practical checklist and some gotchas for deploying VB.NET 2005 apps (answers pulled together from the thread and expanded for the database question).

As asked about deployment, and and pointed to official docs, here are concrete steps that work in most cases and a direct answer to about a database inside the project folder.

Pick the installer type

  • ClickOnce is easiest for per-user installs, auto-update, and no-admin installs.
  • A Setup (MSI) project is needed for machine-wide installs, services, COM registration, or when you must put files in Program Files.
    Include prerequisites (at minimum the .NET 2.0 runtime for VS2005; include SQL Server Express if your app needs it).

Database deployment (for the question from )

  • If you ship a file-based DB (.mdf/.sdf) inside the project, include it as a content file in the installer and avoid leaving it in Program Files (that folder is read-only for normal users).
  • Use the |DataDirectory| substitution or set it at runtime to point to a writable folder (per-user AppData or CommonApplicationData) so the app can open and update the file. Example (VB.NET) to set DataDirectory at startup:
AppDomain.CurrentDomain.SetData("DataDirectory", _
  System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MyCompany", "MyApp"))

Practical tips and checks

  • Store connection strings in app.config and update them for the target environment at install time.
  • If you need multi-user access, prefer a server-hosted SQL instance over a file-attached .mdf.
  • Test the installer on a clean VM, include the bootstrapper for prerequisites, sign manifests (ClickOnce), and verify file permissions.
  • Watch "Copy to Output Directory" — if set to Always it may overwrite a DB on updates; use "Copy if newer" or move the DB to a writable data folder.

Recommended Answers

All 4 Replies

read this.... it may help you
http://www.startvbdotnet.com/extras/deploy.aspx

i am trying to do the same, but my project has a database and i dont know how to react in this. i use a connection string to my database which is recide inside my project folder; any idea?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.