SetupwithWindowsInstallerandWiX幻灯片

上传人:E**** 文档编号:89707173 上传时间:2019-05-31 格式:PPT 页数:52 大小:1.29MB
返回 下载 相关 举报
SetupwithWindowsInstallerandWiX幻灯片_第1页
第1页 / 共52页
SetupwithWindowsInstallerandWiX幻灯片_第2页
第2页 / 共52页
SetupwithWindowsInstallerandWiX幻灯片_第3页
第3页 / 共52页
SetupwithWindowsInstallerandWiX幻灯片_第4页
第4页 / 共52页
SetupwithWindowsInstallerandWiX幻灯片_第5页
第5页 / 共52页
点击查看更多>>
资源描述

《SetupwithWindowsInstallerandWiX幻灯片》由会员分享,可在线阅读,更多相关《SetupwithWindowsInstallerandWiX幻灯片(52页珍藏版)》请在金锄头文库上搜索。

1、Setup with Windows Installer and WiX,Jeff Sharp Improving Enterprises,How to Understand WiX,Understand the Underlying Technology: Windows Installer,Objectives,After this talk, you should be able to: Understand core Windows Installer concepts Use WiX for basic installation and update scenarios Know w

2、here to go in order to learn more,Windows Installer,Codename: Darwin Early Name: Microsoft Installer (MSI) Introduced with Office 2000 in mid-1999 Replaced Setup API / Acme Setup Source of all those INF files Setup API still in use for device drivers Replaced third-party frameworks InstallShield Wis

3、e Installer NullSoft Install System Now the de facto standard on Windows Version 5.0 released with Windows 7 & Server 2008 R2,Windows Installer Features,Resiliency Repair damaged installs Check for prerequisites Discover installed products Recover when source is missing Administrative Install All-Us

4、er/Per-User Install Restart Management Package Validation Localizable UI Authoring Win32/Automation APIs,Installation Packages Declarative Not imperative (script-based) Transactional Feature Hierarchy Change / Uninstall Upgrades / Patches Advertisement Merge Modules Transforms,Windows Installer Tool

5、s,VS Setup and Deployment Project (DEPRECATED!) Windows SDK Orca et al Windows Installer XML (WiX) MSI Factory (Based on WiX) InstallShield Wise Installation Studio InstallAware Advanced Installer ,New!,Windows Installer XML (WiX),Rob Menschings side project in 1999 1.0 Stable Released 2004 Written

6、in VBScript (!) Microsoft open source firsts: First project released with an open-source license Common Public License First project hosted externally then SourceForge, now CodePlex 2.0 Stable Released 2007 rewritten in C# 3.0 Stable Released 2009 streamlined, less verbose 3.5 work ongoing, with wee

7、kly releases Still a small (but well-organized) spare-time project Dogfooding: Office 2007, SQL Server 2008, SQL Server Modeling (Codename Oslo), others,ACHTUNG! Here Be Dragons,DDE,DAO,OLE,Win32,Win64,COM,DCOM,COM+,.NET,WoW64,RegSvr32,ADO,OLEDB,ODBC,Per-User,Per-Machine,WCF,MFC,Major Upgrade,Minor

8、Upgrade,Patch Sequence,TypeLib,ProgID,Restart Manager,Verb,RunDll32,INSTALLLEVEL,Product Code,Advertised,InstallExecuteSequence,Type 51 Custom Action,GAC,Compliance Check,Launch Condition,Disk ID,Type 18 Custom Action,Formatted String,Transform Substorage,8.3 File Names,Component Code,Administrative

9、 Install,Cabinet,Installation Sequence,Same sequence used for install, change, repair, update, and uninstall.,MSI Packages,a,Summary Information Stream,Installation Database (Tables),Data Streams (Files),MSI File : COM Structured Storage,Product Name Package GUID MSI Version Other Basic Info,Product

10、 Description Install Sequencing User Interface Much, much more,Product Files Support Files Icons & Media Certificates,Core MSI Data Model,Property,Feature,Component,File,Registry Key,Registry Value,Shortcut,Directory,Product,Upgrade,Extension,Package,Condition,Environment,. . .,. . .,. . .,Package &

11、 Product, . ,Product,Package,Summary Information Stream,Property,Product & Package Common Attributes,Properties,Property,Package,Property,Properties,Some Common Properties,In addition to package/product attributes,Features, . . . ,Feature,Product,Feature,Directories, . ,Directory,Directory,Component

12、s, . ,Component,Feature,Component,Directory,Files - .NET EXE, . ,File,Component,File,Files - .NET DLL, . ,File,Component,File,Files - Other, . ,File,Component,File,Shortcut,Shortcut,?,Shortcut,Two kinds of shortcut: Advertised points to component Non-advertised points to path,Registry Values,File,Co

13、mponent,Registry,Component Key Paths,Used to detect if the component is installed. Facilitates repair installs. Possible Sources: Directory Path KeyPath=“yes“ on File Path KeyPath=“yes“ on Registry Value path KeyPath=“yes“ on ODBC Data Source KeyPath=“yes“ on Each component should have a key path. E

14、ach component should have only one file / registry value. Key paths must be unique across the entire system across all products.,Component Code GUIDs,Must uniquely identify Component contents Language Platform Version (if not backward compatible) WiX can auto-generate GUIDs or Available in these cas

15、es: The component contains a single file, and the file is the key path The component contains no files, and a registry value is the key path Otherwise, author must maintain the GUID Common source of pain,Installables,. . .,Component,Conditions, = 501 . . ,Condition,Feature,Condition,Component,Produc

16、t,Conditional Expressions,No arithmetic operators, no floating point String ops are case sensitive unless prefixed with Gotchas exist. Read MSDN documentation before use!,AdvertiseExecuteSequence,Sequences, . . ,InstallUISequence,InstallExecuteSequence,AdminExecuteSequence,AdminUISequence,AdvertiseExecuteSequence,AdminUISequence,AdminExecuteSequence,InstallUISequence,InstallExecuteSequence,Custom Action,Custom Action,Sequence,CustomAction,CA Types: “This is

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号