Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista security

Vista - UAC and Virtual Store during installation

Reply
 
Old 02-25-2007   #1 (permalink)
PeteM


 
 

UAC and Virtual Store during installation

Hello,

I understand that the virtual store feature redirects requests to folders
outside key system areas when a user uses a program and doesn't have admin
privileges. So far so good.

QUESTION: What happens in terms of folder redirection to virtual stores
during the setup process of an application? Most setups have to be run as
administrator.... I installed an application of mine and was confused that
this app was able to write files to c:\windows and c:\windows\system32. I saw
it during setup, I verified those files being in these folders after setup -
and they were not redirected.

Does this virtual store thing only work until AFTER the apps are installed?
Wouldn't that mean that some sluggish application's files could still mess up
some key OS files and cause instabilities or the OS to fail altogether?

Thanks.

My System SpecsSystem Spec
Old 02-25-2007   #2 (permalink)
Kerry Brown


 
 

Re: UAC and Virtual Store during installation

While running as administrator a program can write to protected system
areas. When installing a program you may need administrator privileges.
Files that all users need to read and/or execute have to be stored somewhere
that all users can read. Where the problem lays is if you store files that a
user needs to modify in these protected areas. When you try to do this is
when the virtual store kicks in. If you use Run as administrator to run the
program then the program can do whatever it wants. If you don't use Run as
administrator then the virtual store may be used. If your program needs to
have files that can modified by all users then you have to find a spot to do
this. Check out the MSDN articles for programming for Vista. Here's a good
starting point.

http://msdn2.microsoft.com/en-us/win.../aa904977.aspx

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


"PeteM" <PeteM@discussions.microsoft.com> wrote in message
news:C1B2C387-ACED-4C9D-A250-44E36780BE00@microsoft.com...
> Hello,
>
> I understand that the virtual store feature redirects requests to folders
> outside key system areas when a user uses a program and doesn't have admin
> privileges. So far so good.
>
> QUESTION: What happens in terms of folder redirection to virtual stores
> during the setup process of an application? Most setups have to be run as
> administrator.... I installed an application of mine and was confused that
> this app was able to write files to c:\windows and c:\windows\system32. I
> saw
> it during setup, I verified those files being in these folders after
> setup -
> and they were not redirected.
>
> Does this virtual store thing only work until AFTER the apps are
> installed?
> Wouldn't that mean that some sluggish application's files could still mess
> up
> some key OS files and cause instabilities or the OS to fail altogether?
>
> Thanks.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Virtual Store Vista General
virtual store folder!!!!! Vista file management
question about Virtual Store Vista file management
Vista Virtual Store Vista security
Virtual Store Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46