I had a similar problem: for my configuration extension (custom action) I need administrator privileges that raised the elevation frame. After I started the application at the end of “Just for me”, the process had settings that were made for the administrator context. For example, my user account likes to see all file extensions in Windows Explorer, but the administrator account has been configured to hide them. Therefore, in every open file box I could not see the extension. To cure this piece of code, follow these steps:
ProcessStartInfo startInfo = new ProcessStartInfo(ShortcutTarget); startInfo.LoadUserProfile = true; startInfo.UseShellExecute = false; Process.Start(startInfo);
It works only in the "Only for me" mode, in "All" the administrator settings are used. But this is normal for me.
AndresRohrAtlasInformatik
source share