Bernd Rose <
b.rose...@arcor.de> wrote:
> I hope, you didn't install Dialog into "C:\Program Files (x86)" or a
> similar protected folder? Else, this would be the cause of your
> Dialog installation corruption.
Yep, bad idea. Microsoft decided to protect the program folders
(C:\Program Files [x86]), so writing data files there by non-elevated
programs is not just no longer recommended, but results in problems
writing data there. That's why the Roaming, Local, and LocalLow data
folders showed up under your Windows profile folder (%userprofile%).
If you look at the permissions on the C:\Program Files folder, for
example, you won't find your account listed. Instead your account is
included under the Users security group. The Users group does NOT have
full control over this folder, or its children (subfolders). It only
had Read & Execute, List folder contents, and Read permissions, but not
Write permissions. That is how those folders are protected: user
processes cannot write there.
You would have to take ownership of that folder, and propagate ownership
to all it subfolders. Then either change permissions on the Users group
to Full Control, or add your Windows account with it having Full Control
for permissions, and then propagate those permission changes to all
subfolders. It's doable, but changing these permissions is committing
brain surgery on file system security, and could have unwanted side
effects.
For non-elevated programs that are coded to write data under their own
installation folder, like Dialog, I created a separate C:\Programs
folder, so it's separate of the C:\Program Files [x86] system folders,
and under there is where I put the Dialog folder. For me, Dialog is
under C:\Programs\40tude Dialog. I could've called it MyPrograms,
FullControlPermissionPrograms, or anything else I wanted (other than the
name of another existing folder at the same folder level). For those
type of programs wanting to write data into their installation folder,
they should be installed somewhere OTHER than C:\Program Files [x86].
By default, they won't have permissions to write data there.