VB6清单不能在Windows 7上运行 [英] VB6 Manifest not working on Windows 7
问题描述
我为在Windows 7上运行的VB6应用程序创建了清单文件(不是为了进行任何视觉样式更改,只是为了确保它访问公用注册表而不是虚拟注册表)
I have created a manifest file for a VB6 application that is running on Windows 7 (not for any visual style changes, just to make sure it accesses the common registry and not a virtualised one)
exe名称为Capadm40.exe,清单文件名为Capadm40.exe.manifest,其中包含以下内容:
The exe name is Capadm40.exe, the manifest is named Capadm40.exe.manifest and contains the following:
<?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="CompanyName.Capadm40"
type="win32"/>
<description>Administers the System</description>
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
但是,这似乎没有任何区别.也就是说,应用程序仍在使用虚拟化注册表配置单元.奇怪的是,在我取消了应用程序exe属性中的以管理员身份运行该程序"选项后,Windows仍然在应用程序图标上显示了一个盾牌,导致我认为这是Windows安装的问题,而不是明显的错误.有什么想法吗?
However, this doesn't seem to make any difference. ie the application is still using the virtualised registry hive. What is also strange is the after I unticked the 'Run this program as an administrator' option in the properties of the application exe, windows still shows a shield on the application icon, leading my to think this is some issue with my windows installation rather than a fault with the manifest. Any ideas?
推荐答案
我会利用LaVolpe的清单创建器,它非常适合XP,Vista和7:
I would take advantage of LaVolpe's manifest creator, works great for XP, Vista and 7: http://www.vbforums.com/showthread.php?t=606736
这篇关于VB6清单不能在Windows 7上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!