locked
UAC Virtualization RRS feed

  • Question

  • I am having trouble getting to grips with UAC.

     

    I wrote a simple install.exe program that copies the application to C:\Program Files\Test and the application's data files to c:\ProgramData\Test.  That seemed to work fine.  However, when I try to run my application, it virtualizes C:\ProgramData\Test.

     

    I thought that all users had full access rights (or do I permissions?) to C:\ProgramData so virtualization should not happen.

     

    If I want to use an install program to avoid virtualization, what should I do?  I have tried reading the "Windows Vista Application Development Requirements for User Account Control Compatibility" but it is a) hard to read and b) does not address this problem.

     

    I want to install so that all users can access the same data.

     

    Any help would be much appreciated.

    Monday, June 25, 2007 3:40 PM

All replies

  • Your installer needs to set appropriate ACLs on c:\ProgramData\Test to allow all users to write there. Usually this is a case of assigning the Users group Modify (Read/Write) permissions.
    Monday, June 25, 2007 3:47 PM
  • you can run your install application as administrator. so your application doesn't use uac virtualization. or require not to be virtualized from operating system by some code. I think you may find it in msdn libraries.
    Sunday, March 15, 2009 1:31 AM
  • Yes, but in this case, it's entirely unnecessary.  You want to reduce your need for administrative privileges, in general.  Which means designing for the standard user and caring about things like ACLs.
    Monday, March 16, 2009 5:56 PM