zoukankan      html  css  js  c++  java
  • Windows installer basics

    主要分两块:

    1) Windows Installer Service  --- msiexec.exe,内建于Windows,C/S based

    2) MSI database -- *.msi. ISV提供,指明安装的Sequence和Actions

    事务式安装 -- All or nothing,如果有Custom Action, ISV需自己提供回滚

    The installer service records everything that happens in sequential logic. The end result is a transactional record of the actions that are run during the installation. The beauty of this is as its transactional its quite simple to apply the reverse logic to handle the uninstall.

    Windows Installer提供了详尽的log

    1)命令行: msiexec.exe /i <path to msi> /l*vx <path to logfile>

    2)其他,可参考:http://www.christiano.ch/wordpress/windows-installer-msi-kb/msi-understanding-the-windows-installer-logs/

    可以用DebugView实时看log:

    1)Create the Debug (reg_dword) registry entry under
    HKLMSOFTWAREPoliciesMicrosoftWindowsInstaller and set the data value to 00000002.

    2)Start DebugView, now Windows installer installations will write their Standard/Custom Actions and this will be displayed in DebugView.

    Log分析:

    WiLogutl.exe 参考:http://msdn.microsoft.com/en-us/library/aa372811%28VS.85%29.aspx

    Windows Install Team官方博客:

    http://blogs.msdn.com/b/windows_installer_team/

    http://blogs.technet.com/b/richard_macdonald/archive/2007/04/02/how-to-interpret-windows-installer-logs.aspx

     Windows Installer Sequencing

    http://installpac.wordpress.com/2008/04/09/windows-installer-sequencing/

    Recommend to read:

    http://blogs.technet.com/b/alexshev/

    http://www.advancedinstaller.com/user-guide/standard-actions.html

    There is no "Uninstall Sequence". InstallExecuteSequence
    (http://msdn.microsoft.com/en-us/library/aa369500.aspx) &
    InstallUISequence
    (http://msdn.microsoft.com/en-us/library/aa369543.aspx) run during
    Install & Uninstall (and Modify/Repair/etc) unless actions within them
    are conditioned appropriately.

    MSI tips:

    http://www.robertdickau.com/msi_tips.html

  • 相关阅读:
    提取文件唯一标识符
    U盘出现很多.exe的文件处理方案
    winform做的excel与数据库的导入导出
    php获取数据库结构
    根据手机屏幕的旋转,调整图片
    c#中base64编码解码
    遮罩层的实现
    opencv车流量统计算法
    winform创建快捷方式
    mysql存储过程中like用法
  • 原文地址:https://www.cnblogs.com/littledot/p/3438449.html
Copyright © 2011-2022 走看看