Advanced Installer MSI - Only Writing to ProgramData when Running WPF App as Administrator

40 views Asked by At

I have a WPF App I am saving a configuration file in.

I am attempting to write to:

Environment.SpecialFolder.CommonApplicationData (C:\ProgramData\My App)

However, when I run the App (non Adminstrator) it writes the file here:

C:\Users\MyUser\AppData\Local\VirtualStore\ProgramData\My App

When I run the App as Administrator, it correctly writes to ProgramData.

This way I can share the settings file across users. Is there a special way the installer needs to be run or configured?

Is there another suggested way to share a configuration file without having to run the App as Administrator?

I am using Advanced Installer.

0

There are 0 answers