
To embed manifest to disable virtualization in vista
This will disable the virtualization for your application.On Vista machine, this manifest can be used for security requirements for an application.For example, on Vista, applications are not allowed to write into “Program Files” or Windows directories.
If there is no requestedExecutionLevel set to true, then the registry and file virtualization will be turned on. The program will be writing to “Program Files”, but it’s really writing to C:\Users\\AppData\Local\VirtualStore\Program Files. The registry redirects HKEY_LOCAL_MACHINE\Software to HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\
In order to disable the virtualization we need to create a Manifest file and add the manifest file in the application build events
Manifest file is to disable the Virtualization in Vista for your application.
If there is no requestedExecutionLevel set to true, then the registry and file virtualization will be turned on. The program will be writing to “Program Files”, but it’s really writing to C:\Users\
In order to disable the virtualization we need to create a Manifest file and add the manifest file in the application build events
Manifest file is to disable the Virtualization in Vista for your application.
Top image shows the post build event
Right click the project and click the properties in left side menu need to click the compile menu Compile menu we have this Build Events on click of the build events we will have this Post-build event command line below that we will have test box.
Below is the link for the manifest file
http://msdn.microsoft.com/en-us/library/bb545961.aspx
uiAccess needs to set to false and level should be asinvoker
Virtualization
Before adding the below line code in that post build command line text box. We need to find the path of the MT.exe usually it will be in “C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\MT.exe” otherwise please search and find the path of it.
To build and embed the manifest file to the automatically to the application we need to add the below code in post build event of the application and keep this manifest file in the application path
.
"Path of the MT.exe" -manifest "$(ProjectDir)[application name].exe.manifest" -outputresource:"$(TargetDir)$(TargetFileName)";#1For more information regarding Windows issues check the below link
