简体   繁体   English

来自MSI的wix安装报告

[英]wix install report from a MSI

When you use Installshield you get a install report summary for all the files and components. 使用Installshield时,将获得所有文件和组件的安装报告摘要。 How do you get a report in wix? 您如何在wix中获得报告? Below is a example of what I am looking for that I get with install shield 以下是我通过安装盾获得的内容的示例

 //////////////////////////////////////////////////////////////////////
    /////////////////////////////// Summary //////////////////////////////
    //////////////////////////////////////////////////////////////////////

            Components:                     19
            File Groups:                    20
            Number of Files:               364
            Size of Files:           365208904
            Size in Library:         241120877



//////////////////////////////////////////////////////////////////////
///////////////////////////// File Groups ////////////////////////////
//////////////////////////////////////////////////////////////////////

>Program DLLs<

        Size of Files:            33579481
        Size in Library:           8542805


        File                                                    Date        Time      Size         Version            Attributes    MD5                                     Source file
        ------------------------------------------------------  ----------  --------  -----------  -----------------  ------------  --------------------------------------  ------------------------------------------------
        "workgroupcommunicationsud.dll"                         6/23/2015 4:33:44 AM       368740  "5.2.0.12"         "A"           "b7e5ba6b-704e-5f61-8b41-abb2a1d00c47"  "..\bin\workgroupcommunicationsud.dll"
        "aucommunicatorps.dll"                                  6/23/2015 4:36:16 AM        28672  "5.2.0.12"         "A"           "a0e65f49-4486-103c-29cd-ceda381407f7"  "..\bin\aucommunicatorps.dll"
        "bmpmgrud.dll"                                          6/23/2015 4:35:28 AM       114771  "5.2.0.12"         "A"           "a2281454-3138-8edb-e6d0-924119179b69"  "..\bin\bmpmgrud.dll"
        "btcputilitiesd.dll"                                    6/23/2015 4:33:28 AM       159833  "5.2.0.12"         "A"           "77278c22-5166-b9a9-21f9-df34fae39a19"  "..\bin\btcputilitiesd.dll"
        "businessmodelud.dll"                                   6/23/2015 4:35:14 AM     11038810  "5.2.0.12"         "A"           "03681184-77c8-4ec1-df81-9102e7fd7b76"  "..\bin\businessmodelud.dll"
        "cdrvdl32.dll"                                          6/23/2015 4:15:16 AM        31232  "17.0.0.0"         "R"           "cb939299-b6b7-3595-736e-cabd5ea7b007"  "..\bin\cdrvdl32.dll"
        "cdrvhf32.dll"                            

Yep. 是的 Seen those before. 见过那些。 We even ran the installers on a clean machine and fed the logs into a database. 我们甚至在干净的机器上运行安装程序,并将日志输入数据库。 The things is, now that we don't get them, we don't need them. 事情是,既然我们没有得到它们,我们就不需要它们了。 Maybe you'll come the same conclusion. 也许您会得出相同的结论。

See, an MSI is a database. 参见,MSI是数据库。 You can query it with the Windows Installer API. 您可以使用Windows Installer API进行查询。 WiX provides a library called DTF that wraps the API in a .NET library. WiX提供了一个称为DTF的库,该库将API封装在.NET库中。

On a particular machine, Windows Installer keeps a database of installed components and the features of versioned products that reference the components. 在特定计算机上,Windows Installer保留已安装组件以及引用该组件的版本产品功能的数据库。 Again, you can use the API with or without DTF to query that database. 同样,您可以使用带有或不带有DTF的API来查询该数据库。

If you happen to want to know what a particular Windows Installer operation does, you can configure logging for that operation on the command or toggle logging for all operations in the Windows registry. 如果您碰巧想知道某个Windows Installer操作的作用,则可以在命令上为该操作配置日志记录,或者在Windows注册表中为所有操作切换日志记录。 (Don't forget to turn it off later.) Or, you can configure logging for a particular MSI by setting a property in it. (不要忘记稍后将其关闭。)或者,您可以通过在其中设置属性来配置特定MSI的日志记录。 See this page for a rundown on all of these techniques. 有关所有这些技术的摘要 ,请参见此页面 The Windows Installer documentation is the definitive guide. Windows Installer文档是权威指南。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM