Excel File opens as Read Only in Vista

V

Vish Tumu

Hi there. I have developed an Excel application which is stored in the
default Program Files folder by the Installer with a name; for example:
c:\program files\zxc\hello.xls. The problem I am running into is this file
opens as Read Only in Vista and this is interfering with the running of the
application. There is no such problem in Windows XP. I have been able to
narrow down the cause to the User Account Control system in Vista - if I turn
OFF User Account Control, the Excel file opens normally and my application
functions normally. Is there any other option to opening the Excel file
normally without turning OFF User Account Control because some users of my
application may find it unacceptable to turning OFF this security feature.
Ofcourse, one option is to install the application in another location
outside the Program Folder but the Packaging Wizard that I am using to
package the application does not allow me to install the application in any
other location and thus, the application installs in the Program Folder and I
am running into this probloem of the Exel file opening as Read Only. Is there
a way out of this situation?
 
D

Dave Mills

As Shane has pointed out this is a Vista/Windows issue. Vista implements
restrictions on what can be put into the Windows or Program Files folders. The
content should be Read Only except for Installation processes.

It is a very bad idea to grant write access to non administrators to either of
these folders and data should be stored elsewhere either in a folder for the
applications data or in the Users folder. XP lets you modify the permissions
easily but Vista implements protection to prevent this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top