Re-directing files from VirtualStore folder

G

Guest

I have a client application that usually stores .log and other files in the
C:\Program Files\(specific app folder).

With VISTA, these files are saved in hidden folders such as:
C:\Users\(USERNAME)\AppData\Local\VirtualStore\Program Files\(specific app
folder)

Is there a way to override this so that they are saved in the C:\Program
Files\(specific app folder)?

Where can I find information on this VirtualStore folder?

Regards,

Pete@prov
 
R

Rick Rogers

Hi,

By design, the security model of Vista runs programs within the user
environment, not the system. This is why your files end up in the
VirtualStore, it's where the application is run. You may be able to override
this programatically, but it will involve your having the change permissions
on the Program Files folder. You'd have to check with someone who know the
language you are writing the application in to see if it's possible.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Windows help - www.rickrogers.org
 
R

Ronnie Vernon MVP

Pete

There are a few changes that need to be made for your application. In most
cases these can be made by including a simple manifest file. The place to
ask the howto questions is on the MSDN forums. These forums are staffed by
MS developers who perform this type of programming on a daily basis.

MSDN Forums: Software Development for Windows Vista
http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=24&SiteID=1

Here are a few more links that will help.

Developing Applications that Run at Logon on Windows Vista:
http://msdn2.microsoft.com/en-us/library/bb325654.aspx

The Windows Vista Developer Story: Windows Vista Application Development
Requirements for User Account Control (UAC):
http://msdn2.microsoft.com/en-us/library/aa905330.aspx

Download details: Windows Vista Application Development Requirements for
User Account Control Compatibility:
http://www.microsoft.com/downloads/...69-A648-49AF-BC5E-A2EEBB74C16B&displaylang=en

Secure It:
http://msdn2.microsoft.com/en-us/windowsvista/aa904985.aspx

User Account Control Overview:
http://technet.microsoft.com/en-us/windowsvista/aa906021.aspx#E2G
 

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