2013-08-07 25 views
3

其中,哦,其中,是否找到完整的URL CertificatePublicKey &各種Windows Installer 4.5可重新分發的CertificateThumbprint和SHA-1哈希值(即WindowsXP-KB942288 -v3-x86.exe,WindowsServer2003-KB942288-v4-x86.exe,WindowsServer2003-KB942288-v4-x64.exe,Windows6.0-KB942288-v2-x86.msu等)?Wix Burn先決條件步驟 - Windows Installer 4.5下載詳細信息(RemotePayload元素)

我需要Wix Burn「RemotePayload」元素的這些詳細信息,以便在目標系統中缺少Windows Installer 4.5時執行無提示先決條件步驟下載和安裝。一個很好的例子在這個https://stackoverflow.com/a/11308837/2430722,它被張貼在回答不同的問題給出:

<ExePackage Id="WinXP_x86" 
      Cache="no" 
      Compressed="no" 
      PerMachine="yes" 
      Permanent="yes" 
      Vital="yes" 
      Name="redist\WindowsXP-KB942288-v3-x86.exe" 
      DownloadUrl="http://download.microsoft.com/download/2/6/1/261fca42-22c0-4f91-9451-0e0f2e08356d/WindowsXP-KB942288-v3-x86.exe" 
      InstallCondition="VersionNT=v5.1 AND NOT VersionNT64 AND VersionMsi &lt; v4.5" 
      InstallCommand="/quiet /norestart"> 

    <RemotePayload ProductName="Windows Installer 4.5" 
       Description="Windows Installer 4.5 Setup" 
       CertificatePublicKey="F321408E7C51F8544B98E517D76A8334052E26E8" 
       CertificateThumbprint="D57FAC60F1A8D34877AEB350E83F46F6EFC9E5F1" 
       Hash="86E1CC622DBF4979717B8F76AD73220CDB70400B" 
       Size="3327000" 
       Version="4.5.0.0" /> 

    <ExitCode Behavior="forceReboot"/> 

</ExePackage> 

我已經搜查,搜查,並不能找到此信息的提供。誰能幫忙?

回答

0

我不知道你需要鍵/指紋/散等,但如果你想:

右鍵單擊該文件,選擇Properties

點擊Digital Signatures標籤

選擇簽名並單擊Details

單擊View Certificate

點擊Details標籤

點擊Public key字段,則可以複製下面的整個數據字段。

粘貼時刪除所有空格和換行符。

4

您可以使用heat爲您生成的RemotePayload:

heat.exe payload PATH_TO_FILE -o Output.wxs 

這實際上是目前無證上面鏈接的頁面上,但檢查的exe它仍然存在於V3.8:

Windows Installer XML Toolset Toolset Harvester version 3.8.1128.0 
Copyright (c) Outercurve Foundation. All rights reserved. 

usage: heat.exe harvestType harvestSource <harvester arguments> -o[ut] sourceFile.wxs 

Supported harvesting types: 

    dir  harvest a directory 
    file  harvest a file 
    payload harvest a bundle payload as RemotePayload 
    perf  harvest performance counters 
    project harvest outputs of a VS project 
    reg  harvest a .reg file 
    website harvest an IIS web site 

Options: 
    -ag  autogenerate component guids at compile time 
    -cg <ComponentGroupName> component group name (cannot contain spaces e.g -cg MyComponentGroup) 
    -configuration configuration to set when harvesting the project 
    -directoryid overridden directory id for generated directory elements 
    -dr <DirectoryName> directory reference to root directories (cannot contain spaces e.g. -dr MyAppDirRef) 
    -ext  <extension> extension assembly or "class, assembly" 
    -g1  generated guids are not in brackets 
    -generate 
      specify what elements to generate, one of: 
       components, container, payloadgroup, layout, packagegroup 
       (default is components) 
    -gg  generate guids now 
    -indent <N> indentation multiple (overrides default of 4) 
    -ke  keep empty directories 
    -nologo skip printing heat logo information 
    -out  specify output file (default: write to current directory) 
    -platform platform to set when harvesting the project 
    -pog 
      specify output group of VS project, one of: 
       Binaries,Symbols,Documents,Satellites,Sources,Content 
       This option may be repeated for multiple output groups. 
    -projectname overridden project name to use in variables 
    -scom suppress COM elements 
    -sfrag suppress fragments 
    -srd  suppress harvesting the root directory as an element 
    -sreg suppress registry harvesting 
    -suid suppress unique identifiers for files, components, & directories 
    -svb6 suppress VB6 COM elements 
    -sw<N> suppress all warnings or a specific message ID 
      (example: -sw1011 -sw1012) 
    -swall suppress all warnings (deprecated) 
    -t  transform harvested output with XSL file 
    -template use template, one of: fragment,module,product 
    -v  verbose output 
    -var <VariableName> substitute File/@Source="SourceDir" with a preprocessor or a wix variable 
(e.g. -var var.MySource will become File/@Source="$(var.MySource)\myfile.txt" and 
-var wix.MySource will become File/@Source="!(wix.MySource)\myfile.txt" 
    -wixvar generate binder variables instead of preprocessor variables 
    -wx[N] treat all warnings or a specific message ID as an error 
      (example: -wx1011 -wx1012) 
    -wxall treat all warnings as errors (deprecated) 
    -? | -help this help information 

For more information see: http://wixtoolset.org/ 
0

我發現的最佳做法是從windows SDK獲取bootstraper軟件包,該軟件包已包含添加MSI prereq所需的所有鏈接,哈希,文件名,命令和條件,您只需要做的就是平凡翻譯將軟件包的package.xml複製到刻錄ExePackage。

在與Windows SDK 8.1的PC,請看這裏:

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\WindowsInstaller4_5