Microsoft Access as the backend - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Microsoft Access as the backend

Hello,

I am interested to create an installer that
  1. Installs a MS Access database at ApplicationData\CompanyName\Application folder
  2. allows scripts to update the MS Access database
I read your help file, but most of them concern with SQL server, and have operations that are specifically related to SQL Server or MySQL. But for Microsoft Access I think I want a simpler solution, I just want to be able to
  1. Have a script that checks if the database exists
  2. If yes, check the version number to see whether there is a need for upgrade
  3. If no, create a fresh database

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Microsoft Access as the backend

Hi,

For MS Access you can try creating a data source in the ODBC page. This data source can then be used in the SQL Scripts page to create a connection. Using this connection you can run a script which does what you need (detect database, check the version number and create a fresh database).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
indeser
Posts: 3
Joined: Tue Dec 21, 2010 3:47 pm

Re: Microsoft Access as the backend

May you give an example of how to do it?

There are only 4 Connection types:

Microsoft SQL Server / MSDE
MySQL Server
PostgreSQL Server
Oracle SQL Server

But no one of them is OdbcConnection or OledbConnection or something like that. So, which one of them we should use to run scripts against MS Access?

Thanks for your help.

Benjamin Moles
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Microsoft Access as the backend

Hello Benjamin and welcome to the Advanced Installer Forums,

Since you are using a Microsoft Access data source, the appropriate connection type is "Microsoft SQL Server / MSDE".

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”