1 / 21

3. MSI and Setup.exe Explained

3. MSI and Setup.exe Explained. Thomas Lee Chief Technologist – QA plc. Agenda. History Windows Installer Setup.exe Application Compatibilty. History - Installation Challenges. Change default application settings Hand edit the stf, lst, and inf Shortcuts hard to manage

emily
Télécharger la présentation

3. MSI and Setup.exe Explained

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3. MSI and Setup.exe Explained Thomas Lee Chief Technologist – QA plc

  2. Agenda • History • Windows Installer • Setup.exe • Application Compatibilty

  3. History - Installation Challenges • Change default application settings • Hand edit the stf, lst, and inf • Shortcuts hard to manage • No Outlook customization

  4. The Windows Installer • Operating System resident service • Windows 9x, Windows NT4, Windows 2000, Windows XP • Standard format for component management • A management API for applications and tools • Devolves installation to the operating system (where it belongs) • First steps to the end of DLL hell

  5. The Windows Installer • File Versioning • Reference counting for ALL resources • Products (applications) are: • Resources • Files, registry keys etc • Components • The atomic units of the installation • Features • Correspond to custom install

  6. The Windows Installer • Products have one or more features • Features have one or more components • Components have one or more resources • Resources are single files, registry keys etc • Each product has a unique ID (GUID) • Windows Installer tracks components usage by product ID • Components can be shared between features or products

  7. Windows Installer Service • Operating System Service • Installer on Down-level Clients

  8. The Windows Installer • Features can have 4 states following installation: • Installed locally • Installed to Run From Source • Advertised • “On demand”, installed on first use • Not installed

  9. Optional Internal CAB Features Components Shortcuts Pointers to source files Action Summary Information Files Other Tables... Windows Installer Package Format • Custom Database format • Created by setup developer • One per product • Described in relational tables • Products have • Features • Components • Installable resources • Entry points • .MSI file extension

  10. Core MSI tables

  11. Windows Installer Transforms • Generic way to customise an installation • A Transform describes the delta between the original MSI package and the customised version • Saved to an .MST file • Is applied on the fly • Transforms can only be associated with app during initial install

  12. But what about Setup.exe • Many vendors still use setup.exe • Often provided as a stub • Checks system for presence of MSI components • Calls MSI to install the application • Provided as a backwards compatibility measure • Example: XP Support Tools From CD

  13. *.ops Installing Office 2003 Logos xcopy Customize Office Templates Profile Wizard Add-ins pro11.msi Custom Installation Wizard proplus.mst

  14. Tools For Building/Examining MSIs • Visual Studio • 3rd Party Tools • Installshield – www.installshield.com • AdminStudio • Wininstall • Wise – www.wise.com • Package Studio • Wise for Windows Installer • Lanovation – www.lanovation.com • Prisim pack • PWC – www.unitysite.com • UnityInstaller • Novadigm – www.novadigm.com • E-Wrap

  15. Orca • Part of MSI SDK • Raw MSI Table Editor • Easy to make mistakes! • Available from: • http://www.microsoft.com/msdownload/platformsdk/sdkupdate/default.htm?p=/msdownload/platformsdk/sdkupdate/psdkredist.htm

  16. Application Compatibility • What is the problem? • What is the real solution • XP/Windows 2003 Application Compatibility

  17. Application Compatibility Toolkit • Collection of documents and tools • Help developers and IT professionals avoid application compatibility problems • Helps to locate and address compatibility problems

  18. What is in ACT? • Application Compatibility Analyzer • Helps to create and analyse applications • Requires SQL or Access • Windows Application Verifier • Checks application for potential compatibity issues • Windows Compatibility Administrator • helps you select and apply comptibilty fixes • Extensive reference material

  19. ACT Demo Application • Sample application to show issues • Setup • Main Mode operation • Demo “installs” and “runs” • But “badly written” • Readme file explains how bad!

  20. Show Me • Orca • MSI file • Application Compatibity Toolkit

  21. Questions

More Related