Brian Takita

My Handy Dandy Blog...

  Home  |   Contact  |   Syndication    |   Login
  12 Posts | 0 Stories | 1 Comments | 6 Trackbacks

News

Archives

My Blogs

One of the great things about Whidbey is ClickOnce Deployment. At work, I use it to deploy rich client internal applications

ClickOnce can be used to not only deploy .NET applications, but also to deploy files. Yesterday, I deployed an Access adp application to our organization. To do so, I simply...

  1. Create a Console Application
  2. Add the adp file to the project and set it as Content
  3. Write a bootstrapper application in the Main method
  4. Configure the ClickOnce deployment

Here is the bootstrap..

#region Using directives
using System;
using System.Diagnostics;
#endregion
namespace AdpApplication {
    class Program {
        static void Main(string[] args) {
            System.Diagnostics.Process p = new Process();
            p.StartInfo.FileName = "./file.adp";
            p.Start();
        }
    }
}

Nice and easy. Also, if you are using a web server to deploy the file, don't forget to set the MIME type.

posted on Saturday, September 18, 2004 10:21 PM