Under Win7/vista, how do I run exe in compatibility mode? https://msdn.microsoft.com/en-us/library/dd371711 (vs.85). aspx problem Description: Run the WTL program in the version above Vista, sometimes prompting "this program may be installed correctly ..." error, As shown: Workaround: Need to be set in VS, Project Properties->configuration properties->manifest tool->input and Output->addition Manifest files, setting the path to the Wtl.exe.manifest file, as shown in: Where the Wtl.exe.manifest file contains the following:
1<?xml version="1.0"encoding="UTF-8"Standalone="Yes"?>2<assembly xmlns="urn:schemas-microsoft-com:asm.v1"manifestversion="1.0">3<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">4<application>5<!--the ID below indicates application support forWindows Vista--6<supportedos id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>7<!--the ID below indicates application support forWindows7-8<supportedos id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>9</application>Ten</compatibility> One</assembly>
Run the WTL program in the version above Vista, sometimes prompt "This program may install correct ..." error