Your best solution is to install the application in:
%LOCALAPPDATA%\ClintonSoft
e.g.
C:\Users\Clinton\AppData\Local\ClintonSoft
That is a folder that a user is allowed to modify.
Or you can turn off virtualization
You can opt-out of File and Registry Virtualization. You do this by adding an entry to your assembly manifest by indicating requestedExecutionLevel of asInvoker
:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="client"
type="win32"
/>
<description>Clinton's Reilly Factor</description>
<!-- Disable file and registry virtualization -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Warning
By opting out of File and Registry virtualization , your application will fail with the exact same ACCESS_DENIED
errors you would get on Windows XP.