I
irekzielinski
Hello to all Vista wizards 
I have an application that I want to make Vista "Standard User
Account" compatible.
My application used to store data in Program Files directory and users
were forced to run it in admin mode in Vista - so there are some files
in Program Files that are created and owned by administrator. I plan
to release new version that in installer will move all data from
Program Files to CSIDL_APPDATA. It works fine (I move files as my
installer has admin rights).
But then main application that works as standard user can not modify
those files - reason: those were created by user with administrator
token and can not be changed by my application with standard token.
How can I as a part of installation process move files to new location
and change the attributes so my none-privileged application can use
and change those?
Thanks for your time and help!
Kind regards,
Irek

I have an application that I want to make Vista "Standard User
Account" compatible.
My application used to store data in Program Files directory and users
were forced to run it in admin mode in Vista - so there are some files
in Program Files that are created and owned by administrator. I plan
to release new version that in installer will move all data from
Program Files to CSIDL_APPDATA. It works fine (I move files as my
installer has admin rights).
But then main application that works as standard user can not modify
those files - reason: those were created by user with administrator
token and can not be changed by my application with standard token.
How can I as a part of installation process move files to new location
and change the attributes so my none-privileged application can use
and change those?
Thanks for your time and help!
Kind regards,
Irek