Solved

Installation of MDE and MDB in Vista

Posted on 2008-10-02
4
545 Views
Last Modified: 2012-05-05
Hi everyone,

We use the Microsoft Access Developers toolkit for Access 2003 to create an installer for our access application.

The installer installs the two database files required to run, they are an MDE and an MDB.

They get installed to C:\Program Files\Our Application\

On Windows XP this is totally fine but on Vista it creates a copy of the database files each time we run which causes lots of issues because C:\Program Files on Vista is read only.

Where would be the best place to install the application on Vista. Or could we programmatically make our folder in Program Files Read/Write enabled.

Also, how could we detect that Vista is the operating system in Access VBA????
0
Comment
Question by:Milks
  • 2
4 Comments
 
LVL 53

Expert Comment

by:McKnife
ID: 22629411
"C:\Program Files on Vista is read only" - no, it ain't. But without the so called elevation, you cannot write into %program files% even when running as administrator. So elevate or alter the ntfs rights to users: modify.
0
 

Author Comment

by:Milks
ID: 22629536
Mcknife please explain what you mean by ekevate or alter NTFS rights.

Could you provide me with a documentation, or user guide on how to change this??
0
 
LVL 53

Accepted Solution

by:
McKnife earned 500 total points
ID: 22629599
To elevate a program, rightclick its executable and select "run as administrator". [setups usually self-elevate, you see the "grey curtain" togther with the dialog "windows needs your permission to continue" - that's elevation].
NTFS-permissions can be altered by rightclicking the file/folder and selecting properties - security. The users group will need modify rights on that subfolder of c:\progfiles, I suppose.
There are commandline tools for both tasks. For elevation, see here: http://technet.microsoft.com/en-us/magazine/cc162321.aspx, for NTFS permissions: use icacls.exe (belongs to any vista installation).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now