How to not store file in virtual store when UAC is turn on? Ans: Use trust info in your manifest info. It can announce UAC not to use virtual store(Virtual Store Redirection was implemented to maximise compatibility of applications moving into the more secure Windows Vista environment without the need to recompile application code).
What if you don't want to save file in virtual store when your privilege is not administrator? (Just let don't let user to write file in such C:\Program Files; C:\; C:\Windows ... etc)
If you add follow code in you manifest, virtual store will be disable. <security> <requestedPrivileges> <requestedExecutionLevel level="asInvoker" uiAccess="false"/> </requestedPrivileges> </security>
Does UAC really safe for us? Ans: There is also an interesting news which Symantec: Don't Trust Windows Vista UAC Prompts!. This news show, Symantec found Microsoft can use RunLegacyCPLElevated.exe(Which is designed to provide backward compatibility by allowing legacy Windows Control Panel plug-ins to run with full administrative privileges.) to get full administration privilege to call interface "CPlApplet", which is then called with a number of different parameters depending on the action being performed.