windows 7兼容性系列课程(5):windows 7徽标认证
Post on 29-Nov-2014
1.215 Views
Preview:
DESCRIPTION
TRANSCRIPT
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 1
Windows 7Windows 7兼容性系列课程兼容性系列课程(5)(5)::Windows 7Windows 7徽标认证徽标认证
吴慧锋MVP 测试与技术支持工程师www ssw com auwww.ssw.com.auE-mail / MSN: WilsonWu@ssw.com.au
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 2
议程议程
概述概述
程序资格程序资格
版本变更版本变更
认证流程认证流程
策略和要求策略和要求
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 3
概述概述
在在MSDNMSDN上搜索上搜索Wi dWi d 77 LL在在MSDNMSDN上搜索上搜索WindowsWindows 77 LogoLogo::相关文档相关文档
WindowsWindows 77 RCRC版后会有相关工具发布版后会有相关工具发布
完成所有自动测试完成所有自动测试完成所有自动测试完成所有自动测试
在在WindowsWindows VistaVista认证中有认证中有3232个测试需求个测试需求
在在Windows 7Windows 7只有只有88个需求以及个需求以及33个策略个策略
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 4
适用的程序:适用的程序:
程序资格程序资格
适用的程序:适用的程序:单机应用程序单机应用程序
可安装程序可安装程序
本地机器可运行本地机器可运行
不适用的情不适用的情不适用的情况:不适用的情况:插件插件
驱动驱动
MMCMMC管理程序管理程序
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 5
当主版本和次版本变更时需要重新提交测当主版本和次版本变更时需要重新提交测
版本变更版本变更
当主版本和次版本变更时需要重新提交测当主版本和次版本变更时需要重新提交测试试
在在buildbuild版本号变化时不需要重新提交测试版本号变化时不需要重新提交测试
例如:例如:例如:例如:不需要重新提交:不需要重新提交:
版本从版本从1.0.0.01.0.0.0变化为变化为1.0.1.11.0.1.1版本从版本从2.12.1变化为变化为2.1.1 2.1.1
需要重新提交:需要重新提交:版本从版本从1.0.1.11.0.1.1变化为变化为1.1.1.11.1.1.1版本从版本从2.0.12.0.1变化为变化为2.12.1版本从版本从2.12.1变化为变化为3 3
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 6
11 下载并安装下载并安装WindowsWindows 77徽标认证工具包徽标认证工具包
认认证流程证流程
1.1. 下载并安装下载并安装WindowsWindows 77徽标认证工具包徽标认证工具包
2.2. 应用程序必须通过所有技术要求应用程序必须通过所有技术要求
3.3. 接受所有法律规定以及保证应用程序遵守接受所有法律规定以及保证应用程序遵守所有策略所有策略所有策略所有策略
4.4. 接受并回复微软对您产品提出的所有获悉接受并回复微软对您产品提出的所有获悉请求信息请求信息
5.5. 准备好测试结果以及带有授权许可的软件准备好测试结果以及带有授权许可的软件副本副本
6.6. 将测试结果提交到微软将测试结果提交到微软
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 7
工具测试结果工具测试结果
通过工具的自动测试将给用户展示测试结果通过工具的自动测试将给用户展示测试结果试 试试 试XML格式 报告格式
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 8
策略 一套保证应用程序顺利通过策略 一套保证应用程序顺利通过
策策略略和和要求要求
策略: 套保证应用程序顺利通过策略: 套保证应用程序顺利通过WindowsWindows 77徽标认证的策略徽标认证的策略
技术需求:一套用来审定应用程序在技术需求:一套用来审定应用程序在WindowsWindows 77系统下兼容性的技术需求系统下兼容性的技术需求
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 9
策略策略11 遵守反间谍软件标准遵守反间谍软件标准
策略与需求策略与需求
1.1. 遵守反间谍软件标准遵守反间谍软件标准2.2. 软件不可对软件不可对WRPWRP保护资源进行修改保护资源进行修改3.3. 确保软件质量确保软件质量需求需求1.1. 可完全卸载性可完全卸载性2.2. 默认安装到正确的目录默认安装到正确的目录3.3. 文件与驱动都带有数字签名文件与驱动都带有数字签名4.4. 支持支持6464位位WindowsWindows系统系统5.5. 不可因操作系统版本而阻止程序安装或运行不可因操作系统版本而阻止程序安装或运行66 遵循遵循UACUAC标准标准6.6. 遵循遵循UACUAC标准标准7.7. 可对重启管理器消息作出响应可对重启管理器消息作出响应8.8. 支持多用户使用支持多用户使用
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 10
策略策略11:遵守反间谍软件标准:遵守反间谍软件标准
如果应用程序不能被反间谍软件联合会承如果应用程序不能被反间谍软件联合会承如果应用程序不能被反间谍软件联合会承如果应用程序不能被反间谍软件联合会承认,那么徽标认证请求将被驳回认,那么徽标认证请求将被驳回
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 11
策略策略22:不可:不可修改修改WRPWRP保护资保护资源源
不可对不可对WRPWRP保护下的文件,注册表以及目保护下的文件,注册表以及目不可对不可对WRPWRP保护下的文件,注册表以及目保护下的文件,注册表以及目录进行修改录进行修改
不允许修改不允许修改ACLACL资源资源
使用使用Service PackService Pack或合并模块重新分配操或合并模块重新分配操使用使用 或合并模块重新分配操或合并模块重新分配操作系统组件或库作系统组件或库
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 12
策略策略33::确保软件质确保软件质量量
要求软件可以触发要求软件可以触发Windows ErrorWindows Error要求软件可以触发要求软件可以触发Windows Error Windows Error ReportingReporting
不要将异常吞没不要将异常吞没
让程序对造成崩溃的异常进行快速反应让程序对造成崩溃的异常进行快速反应
同意相关解决策略同意相关解决策略同意相关解决策略同意相关解决策略
在开发过程中使用在开发过程中使用ApplicationApplication VerifierVerifier来来验证程序验证程序
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 13
Windows Error ReportingWindows Error Reporting
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 14
需求需求11:可完全卸载:可完全卸载性性
在程序安装结束时不要求重启系统在程序安装结束时不要求重启系统在程序安装结束时不要求重启系统在程序安装结束时不要求重启系统要求重新启动系统是干扰用户正常工作以及破坏产品要求重新启动系统是干扰用户正常工作以及破坏产品用户体验的行为用户体验的行为
请勿使用短文件名请勿使用短文件名对系统性能伤害很大对系统性能伤害很大对系统性能伤害很大对系统性能伤害很大
请勿禁止安静安装模式请勿禁止安静安装模式大规模部署需要安静安装模式大规模部署需要安静安装模式
卸载注册表项卸载注册表项卸载注册表项卸载注册表项允许用户卸载程序允许用户卸载程序
允许被统计工具查找允许被统计工具查找
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 15
注册表项在注册表项在: : HKLMHKLM\\SoftwareSoftware\\
需求需求11:卸载注册表项:卸载注册表项
HKLMHKLM\\SoftwareSoftware\\MicrosoftMicrosoft\\WindowsWindows\\CurrentVersionCurrentVersion\\UninsUninstalltall
1.1. DisplayNameDisplayName2.2. InstallLocationInstallLocation3.3. PublisherPublisher4.4. UninstallStringUninstallString5.5. VersionMajorVersionMajor6.6. VersionMinorVersionMinor在在6464位系统上的位系统上的3232位程序位程序 (WOW):(WOW):HKEY LOCAL MACHINEHKEY LOCAL MACHINE\\SOFTWARESOFTWARE\\WowWowHKEY_LOCAL_MACHINEHKEY_LOCAL_MACHINE\\SOFTWARESOFTWARE\\WowWow6432Node6432Node\\MicrosoftMicrosoft\\WindowsWindows\\CurrentVeCurrentVersionrsion\\UninstallUninstall\\
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 16
应用程序默认安装路径应该是应用程序默认安装路径应该是
需求需求22:默认安装到正确的目:默认安装到正确的目录录
应用程序默认安装路径应该是应用程序默认安装路径应该是%%ProgramFilesProgramFiles% (% (或或%%AppDataAppData%)%)原因:用户体验和安全性原因:用户体验和安全性
Program FilesProgram Files目录是需要管理员权限才能修改的默目录是需要管理员权限才能修改的默认的安全目录认的安全目录认的安全目录认的安全目录
Program FilesProgram Files目录是用户期待的应用程序安装目录目录是用户期待的应用程序安装目录
可以使用可以使用Windows System State Windows System State AnalyzerAnalyzer工具进行验证工具进行验证yy 具具
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 17
用户使用到的数据及配置文件要在软件第一用户使用到的数据及配置文件要在软件第一
需求需求22:默认安装到正确的目:默认安装到正确的目录录
用户使用到的数据及配置文件要在软件第用户使用到的数据及配置文件要在软件第次运行时写入,而不是在安装时写入次运行时写入,而不是在安装时写入
有些文件需要在有些文件需要在Program FilesProgram Files目录之外:目录之外:驱动文件驱动文件
屏幕保护程序屏幕保护程序屏幕保护程序屏幕保护程序
某些某些dlldll文件等文件等
其他文件需要放在什么位置?其他文件需要放在什么位置?
对于全部用户 单用户
文档文件 C:\users\public C:\users\TheUser
配置文件 C:\ProgramData C:\users\TheUser\AppData
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 18
原因:可靠性 安全性 性能原因:可靠性 安全性 性能
需求需求33:文件与驱动都带有数字签:文件与驱动都带有数字签名名
原因:可靠性,安全性,性能原因:可靠性,安全性,性能
文件与驱动都带有数字签名文件与驱动都带有数字签名
使用第三方没有签名的组件必须申请免责使用第三方没有签名的组件必须申请免责
所有驱动程序必须具有所有驱动程序必须具有WHQLWHQL或或DRSDRS签名签名所有驱动程序必须具有所有驱动程序必须具有WHQLWHQL或或DRSDRS签名签名
建议使用嵌入式签名启动驱动程序建议使用嵌入式签名启动驱动程序
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 19
文件签名文件签名
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 20
不要使用不要使用1616位代码位代码 ((1616位代码在位代码在6464位系统位系统
需求需求44:支持:支持6464位位WindowsWindows系系统统
不要使用不要使用1616位代码位代码 ((1616位代码在位代码在6464位系统位系统下不能正常工作下不能正常工作))安装包精细度高安装包精细度高
安装正确版本的驱动安装正确版本的驱动安装正确版本的驱动安装正确版本的驱动
扩展插件必须是扩展插件必须是6464位位在程序运行时不要检测在程序运行时不要检测Wow64Wow64
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 21
1616位代码位代码
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 22
在安装和运行时由于系统版本产生的问题在安装和运行时由于系统版本产生的问题
需求需求55:操作系统版本检测需求:操作系统版本检测需求
在安装和运行时由于系统版本产生的问题在安装和运行时由于系统版本产生的问题是首要问题是首要问题
一般的情况下大多程序不检测系统版本时一般的情况下大多程序不检测系统版本时也可以正常运行也可以正常运行
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 23
需求需求66:遵循:遵循UACUAC标准标准
原因:安全性和用户体验原因:安全性和用户体验原因:安全性和用户体验原因:安全性和用户体验
每个可执行文件都要有对应的每个可执行文件都要有对应的ManifestManifest通通过过requestedExecutionLevelrequestedExecutionLevel定义运行级定义运行级别别
内部或外部内部或外部ManifestManifest都可以都可以
使用工具检测使用工具检测默认以默认以asInvokerasInvoker启动主程序,如果需要高级权限启启动主程序,如果需要高级权限启动主程序 需要申请免责动主程序 需要申请免责动主程序,需要申请免责动主程序,需要申请免责
子程序可以使用子程序可以使用requireAdministratorrequireAdministrator且不需要申请且不需要申请免责免责
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 24
需求需求66::UAC UAC MManifestanifest<?xml version="1.0" encoding="UTF<?xml version="1.0" encoding="UTF--8" standalone="yes"?>8" standalone="yes"?>
!! C i h ( ) Mi f C iC i h ( ) Mi f C i<!<!---- Copyright (c) Microsoft Corporation Copyright (c) Microsoft Corporation ---->><assembly <assembly xmlnsxmlns="urn:schemas="urn:schemas--microsoftmicrosoft--com:asm.v1" com:asm.v1" manifestVersionmanifestVersion="1.0">="1.0"><<assemblyIdentityassemblyIdentity name="name="Microsoft.Windows.Shell.notepadMicrosoft.Windows.Shell.notepad“ “
processorArchitectureprocessorArchitecture="amd64“ version="5.1.0.0“ type="win32"/>="amd64“ version="5.1.0.0“ type="win32"/><description>Windows Shell</description><description>Windows Shell</description><dependency><dependency>
<<dependentAssemblydependentAssembly>>bl Id titbl Id tit //<<assemblyIdentityassemblyIdentity/>/>
</</dependentAssemblydependentAssembly>></dependency></dependency><<trustInfotrustInfo xmlnsxmlns="urn:schemas="urn:schemas--microsoftmicrosoft--com:asm.v3">com:asm.v3">
<security><security><<requestedPrivilegesrequestedPrivileges>>
<<requestedExecutionLevelrequestedExecutionLevel level="level="asInvokerasInvoker" " uiAccessuiAccess="false"/>="false"/>// t dP i ilt dP i il</</requestedPrivilegesrequestedPrivileges>>
</security></security></</trustInfotrustInfo>></assembly></assembly>
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 25
需求需求66::UAC UAC uiAccessuiAccess
iAiA 用户可进入其他进程的应用程序用户可进入其他进程的应用程序uiAccessuiAccess用户可进入其他进程的应用程序用户可进入其他进程的应用程序
uiAccessuiAccess = “false” = “false” 是默认值是默认值 ((徽标认证要徽标认证要求求))uiAccessuiAccess = “true”= “true” 需要获得免责需要获得免责uiAccessuiAccess = “true” = “true” 需要获得免责需要获得免责
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 26
原因原因:: 安全性和用户体验安全性和用户体验
需求需求77::支持支持重重启管启管理器理器
原因原因: : 安全性和用户体验安全性和用户体验
防止不必要的重新启动(锁定文件)防止不必要的重新启动(锁定文件)
应用程序不应妨碍或导致关机应用程序不应妨碍或导致关机
需要响应的消息需要响应的消息::需要响应的消息需要响应的消息::WM_QUERYENDSESSIONWM_QUERYENDSESSIONWM_ENDSESSIONWM_ENDSESSIONCTRL_C CTRL_C 对于命令行应用程序对于命令行应用程序
服务关闭请求服务关闭请求服务关闭请求服务关闭请求
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 27
需求需求77::Restart ManagerRestart Manager原理原理
TheApplication.exeTheApplication.exe
Windows UpdateWindows Update
Adll.dll, Adll.dll, 2 02 0
Adll.dll, Adll.dll, 1.01.0
2.02.0
重启管理器重启管理器重启管理器重启管理器
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 28
重启管理器重启管理器
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 29
需求需求88:支持多用户使用:支持多用户使用
可以同时运行多个应用实例可以同时运行多个应用实例可以同时运行多个应用实例可以同时运行多个应用实例
用户数据对于每个用户会话孤立用户数据对于每个用户会话孤立
应用程序需要支持远程桌面运行应用程序需要支持远程桌面运行
如果应用程序没有对远程桌面和多用户的如果应用程序没有对远程桌面和多用户的如果应用程序没有对远程桌面和多用户的如果应用程序没有对远程桌面和多用户的支持,那么请以友好的方式告知用户即可支持,那么请以友好的方式告知用户即可
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 30
工具下载工具下载
Application Compatibility Toolkit 5Application Compatibility Toolkit 5 55Application Compatibility Toolkit 5.Application Compatibility Toolkit 5.55http://www.microsoft.com/downloads/details.aspx?displaylanghttp://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=24da89e9=en&FamilyID=24da89e9--b581b581--47b047b0--b45eb45e--492dd6da2971492dd6da2971
Application VerifierApplication Verifierhttp://www microsoft com/downloads/details aspx?displaylanghttp://www microsoft com/downloads/details aspx?displaylanghttp://www.microsoft.com/downloads/details.aspx?displaylanghttp://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c4a25ab9=en&FamilyID=c4a25ab9--649d649d--4a1b4a1b--b4a7b4a7--c9d8b095df18c9d8b095df18
OrcaOrcahttp://www.microsoft.com/downloads/details.aspx?FamilyId=Ahttp://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B4355B6B43--E24FE24F--4EA34EA3--A93EA93E--40C0EC4F68E5&displaylang=en40C0EC4F68E5&displaylang=en
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 31
Question & AnswerQuestion & Answer
如需提出问题,请在此区域输入文字,并单击如需提出问题,请在此区域输入文字,并单击““问题和解答问题和解答””右上方的右上方的““提问提问””按钮即可。按钮即可。
您您也可以选择在微软中文技术论坛上寻求帮助,也可以选择在微软中文技术论坛上寻求帮助,MSDNMSDN中文网络中文网络广播的讲师们会定期在论坛上为大家解答与课程相关的技术问题。广播的讲师们会定期在论坛上为大家解答与课程相关的技术问题。http://http://forums.microsoft.com/chinaforums.microsoft.com/china
© 2002 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 32
吴慧锋吴慧锋
感谢感谢!!
吴慧锋吴慧锋
WilsonWilson WuWuEmail:Email: iwilsonwu@gmail.comiwilsonwu@gmail.comMSNMSN il @il @MSN:MSN: wilsonwu@ssw.com.auwilsonwu@ssw.com.auQQ:QQ: 5328646153286461Blog: Blog: http://WilsonWu.cnblogs.comhttp://WilsonWu.cnblogs.com
top related