Hello,
I got a new cmputer the other day and it came with Windows 7 64bit,but I noticed some of my db projects are not working, and keep comming up with this error

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

I use this code to open the database.

Code:
            ConnectStr = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + _dbfile;

            //Create new connection
            cnn = new OleDbConnection(ConnectStr);
            try
            {
                cnn.Open();
            }
            //Error flag
            catch(Exception err)
            {
                MessageBox.Show(err.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Close();
                return;
            }
I also downloaded the database access components, but for some reason the installer just does not work. eveything worked fine in Windows Vista. anyway hope someone can help thanks.