How do I write an installer for a .NET Windows application (need to install Access drivers)
I am writing a C# Windows .Ne开发者_运维知识库t application that reads/writes data from a Microsoft Access database.
How do I create an installer that will:
- Prompt the user to install the file to a chosen directory
- Install the files
- Install Access (Office will not be present on users computers) - is this possible?
- Install the version of .Net I am using
Is there a product from Microsoft that does this without costing an arm and a leg?
Why do you need to install Access? Are you only using the Access database file to store data? If so is this in MDB or ACCDB format? If MDB format as created in Access 2003 and earlier then Jet 4.0, DAO 3.6 and ADO have been included as part of the operating system since Windows 2000. If ACCDB format then you will need to install the freely downloable ACE DLLs as per 2007 Office System Driver: Data Connectivity Components
Now if you are actually using Access for forms and reports, and it's Access 2007 you can have your users install the Access 2007 runtime as per Access 2007 Download: Access Runtime Ahh, I see from your subject you specifically mention drivers. Ignore this paragraph then.
Deployment projects come with Visual Studio!
right-click on you solution and select add new project
Under Other Project Types select Setup and Deployment
Choose the setup and deployment wizard, it will step you through it.
Before you deploy, do a little googling on obfuscating your .net project, too.
精彩评论