Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Doug
>The only problem with ProgramData is that while it's read-write for the user that creates the folder, it's read-only for other users (unless you change folder permissions).
Have you tried writing to ProgramData using a VFP app that has a manifest built into it?
I have added a manifest to my app using Calvin Hsia's code that sets the requestExecutionLevel to 'asInvoker'.
I then carried out some tests using an Admin User and a Standard User and with UAC on and off.
It appears to me that c:\ProgramData is treated differently to c:\Program Files and c:\Windows. As far as I can tell my app with a manifest was able to successfully write to c:\ProgramData regardless of the User type or the UAC setting I chose, so even a lowly Standard User with UAC turned on was able to do it. I should stress that adding a manifest prevents virtualizaton from occuring so these were real writes and were not writes to a copy of the file in the VirtualStore.
I am concerned that nobody has yet come up with a clear indication of what should be done where we want to install an application that has data which is not user-specific. I would like to have my findings confirmed or disproved if anyone is interested enough to investigate this.
David
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement