Because Notepad++ does not use the "trustInfo" field in its application manifest file it runs VIRTUALIZED on Windows VISTA,
causing all sorts of problems when editing files in "per-machine" disk locations, for example: "Common AppData".
Modifications to an existing file are always saved in the user's "Virtual File Store", even if the user is a member of the Administrator's group.
=> the original file in the "per-machine" disk location remains unchanged, and applications that run with elevated privileges will NOT see the file
modifications.
To solve the problem add the "trustInfo" field in the application manifest file:
This can be updated when building the executable file, or updated later by using the command-line tool "MT.exe"
from the latest "Windows SDK"/Platform SDK (at least version 6.0).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Because Notepad++ does not use the "trustInfo" field in its application manifest file it runs VIRTUALIZED on Windows VISTA,
causing all sorts of problems when editing files in "per-machine" disk locations, for example: "Common AppData".
Modifications to an existing file are always saved in the user's "Virtual File Store", even if the user is a member of the Administrator's group.
=> the original file in the "per-machine" disk location remains unchanged, and applications that run with elevated privileges will NOT see the file
modifications.
To solve the problem add the "trustInfo" field in the application manifest file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
...
/>
<description>Notepad++</description>
<dependency>
...
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
This can be updated when building the executable file, or updated later by using the command-line tool "MT.exe"
from the latest "Windows SDK"/Platform SDK (at least version 6.0).