WiX 安装程序错误关于已安装的较新版本 [英] WiX Installer wrong about newer version already installed

查看:31
本文介绍了WiX 安装程序错误关于已安装的较新版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用 Visual Studio 中的 WiX 安装工具为我的 C# Windows 窗体应用程序创建安装程序.

安装程序在独立调用时工作(命令行或双击);它卸载现有版本 (1.0.1.2) 并安装新版本 (1.0.2.1),但目标是让 SCCM 将应用程序推送到我们的 50 多个工作站.

<块引用>

回答已提出的问题:

它在 SCCM 中配置为应用程序.这只是我的第三个使用 SCCM 的经验,我对 Packages 不熟悉.

检测方法是2条规则:
产品代码{81748469-6B08-4C6C-99B5-BFCE7202FE06}必须存在.
文件 %ProgramFiles%\PHSRP\PHSRP_Dashboard.exe 修改日期 >=7/2/2019 12:00:00 AM 必须在场.

当 SCCM 推出时安装失败.安装日志表明安装程序认为已经存在更新的版本,但事实并非如此.

 <?xml version="1.0" encoding="UTF-8"?><Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"><Product Id="81748469-6b08-4c6c-99b5-bfce7202fe06" Name="PHSRP Dashboard" Language="1033" Version="1.0.2.1" Manufacturer="CSUS 公共卫生调查研究计划" UpgradeCode="8420CB2B-6692-4BB9-A15A-023C7E69FB26"><Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64"/><MajorUpgrade DowngradeErrorMessage="已经安装了更新版本的 [ProductName]."AllowSameVersionUpgrades="是"IgnoreRemoveFailure="是"/><媒体模板/><!-- UIRef Id="WixUI_Minimal" 添加许可证对话框 --><!-- UIRef Id="WixUI_Advanced" 添加多个对话框选项弹出窗口--><Feature Id="MainProduct" Title="PHSRP Dashboard" Level="1" Absent="disallow"><ComponentGroupRef Id="ProductComponents"/><ComponentRef Id="CMP_StartMenu_Dashboard"/><ComponentRef Id="CMP_DashboardAutoStart"/></功能></产品><片段><Directory Id="TARGETDIR" Name="SourceDir"><Directory Id="ProgramFiles64Folder"><Directory Id="PHSRP" Name="PHSRP"/></目录><Directory Id="ProgramMenuFolder"><Directory Id="PHSRP_Menu" Name="PHSRP"/></目录><Directory Id="StartupFolder"/></目录></片段><片段><ComponentGroup Id="ProductComponents" Directory="PHSRP"><Component Id="CMP_Dashboard.EXE" Guid="939EC7DE-E6BD-4364-BFC7-7B03C03B7CBB"><File Id="FILE_Dashboard.EXE" Source="$(var.PHSRP_Dashboard.TargetDir)PHSRP_Dashboard.exe" KeyPath ="yes"/></组件><Component Id="CMP_DasboardConfig" Guid="4081EC5F-EAD0-4003-8B43-DFF1EF6B4348"><File Id="FILE_DashboardConfig" Source="$(var.PHSRP_Dashboard.TargetDir)\PHSRP_Dashboard.exe.config" KeyPath ="yes"/></组件><Component Id="CMP_EntityFramework" Guid="D685B056-E64C-4C9A-B0B0-C74DC5EF085E"><File Id="FILE_EntityFramework" Source="$(var.PHSRP_Dashboard.TargetDir)\EntityFramework.dll" KeyPath="yes"/></组件><Component Id="CMP_EntityFrameworkSqlServer" Guid="E017DCC8-1439-4CB6-BFDB-A8C86BF99D74"><File Id="FILE_EntityFrameworkSqlServer" Source="$(var.PHSRP_Dashboard.TargetDir)\EntityFramework.SqlServer.dll" KeyPath="yes"/></组件><Component Id="CMP_ReportViewerCommon" Guid="972220E8-5DD4-451D-847D-32DAC050D639"><File Id="FILE_ReportViewerCommon" Source="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\12.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.Common.dll" KeyPath="yes"/></组件><Component Id="CMP_ReportViewerDataVisualization" Guid="B0AF7500-5743-4B48-85FA-9BA12E3B554A"><File Id="FILE_ReportViewerDataVisualization" Source="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.DataVisualization\12.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.DataVisualization.dll" KeyPath="yes"/></组件><Component Id="CMP_ReportViewerProcessingObjectModel" Guid="75E5E7AD-E1AF-41BC-BC95-464272966629"><File Id="FILE_ReportViewerProcessingObjectModel" Source="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\12.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.ProcessingObjectModel.dll" KeyPath="yes"/></组件><Component Id="CMP_ReportViewerWinForms" Guid="831D08B1-047B-46E0-AA89-C1D47B0B4EBE"><File Id="FILE_ReportViewerWinForms" Source="C:\Program Files (x86)\Microsoft Visual Studio 14.0\ReportViewer\Microsoft.ReportViewer.WinForms.dll" KeyPath="yes"/></组件><Component Id="CMP_SQLServerTypes" Guid="EE385FEE-A4C9-4F9A-800E-F2B9C573DCA7"><File Id="FILE_SQLServerTypes" Source="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.Types\12.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Types.dll" KeyPath="yes"/></组件><Component Id="CMP_SystemNetHttp" Guid="F56581DD-D9D0-4140-BB66-9DEF7FF66D7B"><File Id="FILE_SystemNetHttp" Source="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Net.Http.dll" KeyPath="yes"/></组件></组件组><DirectoryRef Id="PHSRP_Menu"><Component Id="CMP_StartMenu_Dashboard" Guid="B8C6D5CE-26BD-45E1-904D-97FC3EEADAE8"><Shortcut Id="SCUT_RunDashboard" Name="PHSRP Dashboard" Description="Start Dashboard"目标="[#FILE_Dashboard.EXE]"工作目录=PHSRP"/><RemoveFolder Id="UI_RemoveShortcut" Directory="PHSRP_Menu" On="卸载"/><RegistryKey Root="HKCU" Key="Software\PHSRP\PHSRP_Dashboard"><RegistryValue Name="sm_shortcut" Type="integer" Value="1" KeyPath="yes"/></RegistryKey></组件></DirectoryRef><DirectoryRef Id="StartupFolder"><Component Id="CMP_DashboardAutoStart" Guid="E10E004B-8A38-43F9-8365-4C44267565F2"><Shortcut Id="SCUT_DashboardAutoStart" Name="PHSRP Dashboard" Description="AutoStart Dashboard"目标="[#FILE_Dashboard.EXE]"工作目录=PHSRP"/><RegistryKey Root="HKCU" Key="Software\PHSRP\PHSRP_Dashboard"><RegistryValue Name="su_shortcut" Type="integer" Value="1" KeyPath="yes"/></RegistryKey></组件></DirectoryRef></片段></Wix>

软件现有版本为1.0.1.1

现有应用程序文件属性

SCCM 使用的安装命令

msiexec/i "WixInstaller.msi"/qn/norestart/L*V "C:\sys\logs\db_install.log"

安装日志文件:

 === 详细日志记录开始:7/11/2019 9:29:29 构建类型:SHIP UNICODE 5.00.10011.00 调用进程:C:\WINDOWS\system32\msiexec.exe ===MSI (c) (48:5C) [09:29:29:302]:重置缓存的策略值MSI (c) (48:5C) [09:29:29:302]:机器策略值调试"为 0MSI (c) (48:5C) [09:29:29:302]:******* 运行引擎:******* 产品:WixInstaller.msi******* 行动:******* 命令行: **********MSI (c) (48:5C) [09:29:29:302]:客户端和 UI 是无或基本的:在服务器上运行整个安装.MSI (c) (48:5C) [09:29:29:302]:抓取执行互斥锁.MSI (c) (48:5C) [09:29:29:317]:隐形启用.MSI (c) (48:5C) [09:29:29:317]:在调用 Install on Server 之前尝试启用所有禁用的权限MSI (c) (48:5C) [09:29:29:317]:递增计数器以禁用关机.递增后计数器:0MSI (s) (20:B8) [09:29:29:317]:在多包事务内运行安装 C:\WINDOWS\ccmcache\5q\WixInstaller.msiMSI (s) (20:B8) [09:29:29:317]:抓取执行互斥锁.MSI (s) (20:6C) [09:29:29:317]:重置缓存的策略值MSI (s) (20:6C) [09:29:29:317]:机器策略值调试"为 0MSI (s) (20:6C) [09:29:29:317]: ******* RunEngine:******* 产品:C:\WINDOWS\ccmcache\5q\WixInstaller.msi******* 行动:******* 命令行: **********MSI (s) (20:6C) [09:29:29:317]:机器策略值DisableUserInstalls"为 0MSI (s) (20:6C) [09:29:29:317]:用户策略值SearchOrder"是nmu"MSI (s) (20:6C) [09:29:29:317]:用户策略值DisableMedia"为 0MSI (s) (20:6C) [09:29:29:317]:机器策略值AllowLockdownMedia"为 0MSI (s) (20:6C) [09:29:29:317]:SOURCEMGMT:仅当包安全时才启用媒体.MSI (s) (20:6C) [09:29:29:317]:SOURCEMGMT:寻找产品{81748469-6B08-4C6C-99B5-BFCE7202FE06}的源列表MSI (s) (20:6C) [09:29:29:317]:SOURCEMGMT:添加 {81748469-6B08-4C6C-99B5-BFCE7202FE06};到潜在的源列表(pcode;disk;relpath).MSI (s) (20:6C) [09:29:29:317]:SOURCEMGMT:现在检查产品 {81748469-6B08-4C6C-99B5-BFCE7202FE06}MSI (s) (20:6C) [09:29:29:317]:SOURCEMGMT:为产品启用媒体.MSI (s) (20:6C) [09:29:29:317]:SOURCEMGMT:尝试使用来源列表中的 LastUsedSource.MSI (s) (20:6C) [09:29:29:317]:SOURCEMGMT:正在处理网络源列表.MSI (s) (20:6C) [09:29:29:317]:SOURCEMGMT:尝试源 C:\WINDOWS\ccmcache\5q\.MSI (s) (20:6C) [09:29:29:317]:注意:1:1402 2:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3:2MSI (s) (20:6C) [09:29:29:317]:进入 CMsiConfigurationManager::SetLastUsedSource.MSI (s) (20:6C) [09:29:29:317]:指定的来源已在列表中.MSI (s) (20:6C) [09:29:29:317]:用户策略值SearchOrder"是nmu"MSI (s) (20:6C) [09:29:29:317]:机器策略值DisableBrowse"为 0MSI (s) (20:6C) [09:29:29:317]:机器策略值AllowLockdownBrowse"为 0MSI (s) (20:6C) [09:29:29:317]:允许添加新来源.MSI (s) (20:6C) [09:29:29:317]:将 LastUsedSource 设置为:C:\WINDOWS\ccmcache\5q\.MSI (s) (20:6C) [09:29:29:317]:将 LastUsedType 设置为:n.MSI (s) (20:6C) [09:29:29:317]:将 LastUsedIndex 设置为:1.MSI (s) (20:6C) [09:29:29:317]:SOURCEMGMT:已解析来源:'C:\WINDOWS\ccmcache\5q\'MSI (s) (20:6C) [09:29:29:317]:注意:1:2203 2:C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3:-2147287038MSI (s) (20:6C) [09:29:29:317]:此事务跳过了 SRSetRestorePoint.MSI (s) (20:6C) [09:29:29:317]:文件将从 OpCode 应用安全性.MSI (s) (20:6C) [09:29:29:333]:软件限制政策:验证包 -->'C:\WINDOWS\ccmcache\5q\WixInstaller.msi' 违反软件限制策略MSI (s) (20:6C) [09:29:29:333]:注:1:2262 2:数字签名 3:-2147287038MSI (s) (20:6C) [09:29:29:333]:软件限制政策:C:\WINDOWS\ccmcache\5q\WixInstaller.msi 没有数字签名MSI (s) (20:6C) [09:29:29:333]:软件限制政策:C:\WINDOWS\ccmcache\5q\WixInstaller.msi 被允许运行,因为用户令牌授权执行(系统或服务令牌).MSI (s) (20:6C) [09:29:29:333]:MSCOREE 未加载从 system32 加载副本MSI (s) (20:6C) [09:29:29:333]:未启用结束对话MSI (s) (20:6C) [09:29:29:333]:原始包 ==>C:\WINDOWS\ccmcache\5q\WixInstaller.msiMSI (s) (20:6C) [09:29:29:333]:我们运行的包 ==>C:\WINDOWS\Installer\30cf3.msiMSI (s) (20:6C) [09:29:29:333]:APPCOMPAT:寻找产品代码为{81748469-6B08-4C6C-99B5-BFCE7202FE06}"的appcompat数据库条目.MSI (s) (20:6C) [09:29:29:333]:APPCOMPAT:在数据库中找不到匹配的产品代码.MSI (s) (20:6C) [09:29:29:333]:机器策略值DisablePatch"为 0MSI (s) (20:6C) [09:29:29:333]:机器策略值AllowLockdownPatch"为 0MSI (s) (20:6C) [09:29:29:333]:机器策略值DisableLUAPatching"为 0MSI (s) (20:6C) [09:29:29:333]:机器策略值DisableFlyWeightPatching"为 0MSI (s) (20:6C) [09:29:29:333]:APPCOMPAT:寻找产品代码为{81748469-6B08-4C6C-99B5-BFCE7202FE06}"的appcompat数据库条目.MSI (s) (20:6C) [09:29:29:333]:APPCOMPAT:在数据库中找不到匹配的产品代码.MSI (s) (20:6C) [09:29:29:333]:转换不安全.MSI (s) (20:6C) [09:29:29:333]:注:1:2205 2:3:控制MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 MsiLogFileLocation 属性.它的值为C:\sys\logs\db_install.log".MSI (s) (20:6C) [09:29:29:333]:命令行:REBOOT=ReallySuppress CURRENTDIRECTORY=C:\WINDOWS\ccmcache\5q CLIENTUILEVEL=3 CLIENTPROCESSID=6472MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 PackageCode 属性.它的值为{B44E8FB7-8E4E-48D4-8D07-CB34010243AB}".MSI (s) (20:6C) [09:29:29:333]:产品代码传递给 Engine.Initialize:'{81748469-6B08-4C6C-99B5-BFCE7202FE06}'MSI (s) (20:6C) [09:29:29:333]:转换前来自属性表的产品代码:'{81748469-6B08-4C6C-99B5-BFCE7202FE06}'MSI (s) (20:6C) [09:29:29:333]:转换后来自属性表的产品代码:'{81748469-6B08-4C6C-99B5-BFCE7202FE06}'MSI (s) (20:6C) [09:29:29:333]:产品未注册:开始首次安装MSI (s) (20:6C) [09:29:29:333]:确定每台机器安装现有产品(此产品或使用补丁升级的产品).MSI (s) (20:6C) [09:29:29:333]:产品 {81748469-6B08-4C6C-99B5-BFCE7202FE06} 是管理员分配的:LocalSystem 拥有发布密钥.MSI (s) (20:6C) [09:29:29:333]:产品 {81748469-6B08-4C6C-99B5-BFCE7202FE06} 被管理.MSI (s) (20:6C) [09:29:29:333]:MSI_LUA:不需要凭据提示,用户是管理员MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 ProductState 属性.它的值为1".MSI (s) (20:6C) [09:29:29:333]:进入 CMsiConfigurationManager::SetLastUsedSource.MSI (s) (20:6C) [09:29:29:333]:指定的来源已在列表中.MSI (s) (20:6C) [09:29:29:333]:用户策略值SearchOrder"是nmu"MSI (s) (20:6C) [09:29:29:333]:允许添加新来源.MSI (s) (20:6C) [09:29:29:333]:从配置数据中检索到的包名称:WixInstaller.msi"MSI (s) (20:6C) [09:29:29:333]:注意:1:2205 2:3:错误MSI (s) (20:6C) [09:29:29:333]:注意:1:2262 2:AdminProperties 3:-2147287038MSI (s) (20:6C) [09:29:29:333]:机器策略值DisableMsi"为 0MSI (s) (20:6C) [09:29:29:333]:机器策略值AlwaysInstallElevated"为 0MSI (s) (20:6C) [09:29:29:333]:用户策略值AlwaysInstallElevated"为 0MSI (s) (20:6C) [09:29:29:333]:产品 {81748469-6B08-4C6C-99B5-BFCE7202FE06} 是管理员分配的:LocalSystem 拥有发布密钥.MSI (s) (20:6C) [09:29:29:333]:产品 {81748469-6B08-4C6C-99B5-BFCE7202FE06} 被管理.MSI (s) (20:6C) [09:29:29:333]:以提升的权限运行产品{81748469-6B08-4C6C-99B5-BFCE7202FE06}":产品已分配.MSI (s) (20:6C) [09:29:29:333]:属性更改:添加重新启动属性.它的值是ReallySuppress".MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 CURRENTDIRECTORY 属性.它的值为C:\WINDOWS\ccmcache\5q".MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 CLIENTUILEVEL 属性.它的值为3".MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 CLIENTPROCESSID 属性.它的值为6472".MSI (s) (20:6C) [09:29:29:333]:机器策略值DisableAutomaticApplicationShutdown"为 0MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 MsiRestartManagerSessionKey 属性.它的值为32643088af72814b9d60a08f9f058ba9".MSI (s) (20:6C) [09:29:29:333]:重新启动管理器:会话已打开.MSI (s) (20:6C) [09:29:29:333]:TRANSFORMS 属性现在是:MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 PRODUCTLANGUAGE 属性.它的值为1033".MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 VersionDatabase 属性.它的值为200".MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\RoamingMSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\FavoritesMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Network ShortcutsMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\DocumentsMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Printer ShortcutsMSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\RecentMSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\SendToMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\TemplatesMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\ProgramDataMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\LocalMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\PicturesMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative ToolsMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartupMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\ProgramData\Microsoft\Windows\Start Menu\ProgramsMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\ProgramData\Microsoft\Windows\Start MenuMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\Users\Public\DesktopMSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative工具MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\StartupMSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\ProgramsMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start MenuMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\WINDOWS\system32\config\systemprofile\DesktopMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\ProgramData\Microsoft\Windows\TemplatesMSI (s) (20:6C) [09:29:29:333]:SHELL32::SHGetFolderPath 返回:C:\WINDOWS\FontsMSI (s) (20:6C) [09:29:29:333]:注:1:2898 2:MS Sans Serif 3:MS Sans Serif 4:0 5:16MSI (s) (20:6C) [09:29:29:333]:MSI_LUA:将 MsiRunningElevated 属性设置为 1,因为安装已经在运行提升.MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 MsiRunningElevated 属性.它的值为1".MSI (s) (20:6C) [09:29:29:333]:属性更改:添加特权属性.它的值为1".MSI (s) (20:6C) [09:29:29:333]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2MSI (s) (20:6C) [09:29:29:333]:属性更改:添加用户名属性.它的值为CSUS 用户".MSI (s) (20:6C) [09:29:29:333]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2MSI (s) (20:6C) [09:29:29:333]:属性更改:添加公司名称属性.它的价值是CSU萨克拉门托".MSI (s) (20:6C) [09:29:29:333]:属性更改:添加数据库属性.它的值为C:\WINDOWS\Installer\30cf3.msi".MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 OriginalDatabase 属性.它的值为C:\WINDOWS\ccmcache\5q\WixInstaller.msi".MSI (s) (20:6C) [09:29:29:333]:机器策略值MsiDisableEmbeddedUI"为 0MSI (s) (20:6C) [09:29:29:333]:EEUI - 禁用 MsiEmbeddedUI 服务,因为它不是安静/基本安装MSI (s) (20:6C) [09:29:29:333]:注:1:2205 2:3:PatchPackageMSI (s) (20:6C) [09:29:29:333]:机器策略值DisableRollback"为 0MSI (s) (20:6C) [09:29:29:333]:用户策略值DisableRollback"为 0MSI (s) (20:6C) [09:29:29:333]:属性更改:添加 UILevel 属性.它的值为2".=== 记录开始:7/11/2019 9:29:29 ===MSI (s) (20:6C) [09:29:29:333]:注意:1:2203 2:C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3:-2147287038MSI (s) (20:6C) [09:29:29:333]: APPCOMPAT: [DetectVersionLaunchCondition] 启动条件已经通过.MSI (s) (20:6C) [09:29:29:333]:属性更改:添加动作属性.它的值为安装".MSI (s) (20:6C) [09:29:29:333]:执行操作:安装MSI (s) (20:6C) [09:29:29:333]:注意:1:2205 2:3:ActionText行动开始 9:29:29:安装.MSI (s) (20:6C) [09:29:29:333]:运行 ExecuteSequenceMSI (s) (20:6C) [09:29:29:333]:采取行动:FindRelatedProductsMSI (s) (20:6C) [09:29:29:333]:注意:1:2205 2:3:ActionText行动开始 9:29:29:FindRelatedProducts.MSI (s) (20:6C) [09:29:29:348]:属性更改:添加 WIX_UPGRADE_DETECTED 属性.它的值为{61C1C89E-DC8D-42BC-953C-913E8CE3DD08}".MSI (s) (20:6C) [09:29:29:348]:属性更改:添加迁移属性.它的值为{61C1C89E-DC8D-42BC-953C-913E8CE3DD08}".MSI (s) (20:6C) [09:29:29:348]:属性更改:添加 WIX_DOWNGRADE_DETECTED 属性.它的值为{8BC4D6BF-C0CF-48EB-A229-FC692208DFF0}".MSI (s) (20:6C) [09:29:29:348]:采取行动:LaunchConditionsMSI (s) (20:6C) [09:29:29:348]:注意:1:2205 2:3:ActionText行动结束 9:29:29:FindRelatedProducts.返回值 1.行动开始 9:29:29:LaunchConditions.MSI (s) (20:6C) [09:29:29:348]:注意:1:2205 2:3:错误MSI (s) (20:6C) [09:29:29:348]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709MSI (s) (20:6C) [09:29:29:348]:产品:PHSRP 仪表板 -- 已安装较新版本的 PHSRP 仪表板.已安装较新版本的 PHSRP 仪表板.行动在 9:29:29 结束:LaunchConditions.返回值 3.操作结束 9:29:29:安装.返回值 3.属性(S):升级代码 = {8420CB2B-6692-4BB9-A15A-023C7E69FB26}属性(S):StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\属性(S):ProgramFiles64Folder = C:\Program Files\属性(S):ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\属性(S):ALLUSERS = 1财产(S):制造商 = CSUS 公共卫生调查研究计划属性(S):产品代码 = {81748469-6B08-4C6C-99B5-BFCE7202FE06}属性(S):产品语言 = 1033属性(S):产品名称 = PHSRP 仪表板属性(S):产品版本 = 1.0.2.1属性(S):SecureCustomProperties = WIX_DOWNGRADE_DETECTED;WIX_UPGRADE_DETECTED属性(S):WIX_UPGRADE_DETECTED = {61C1C89E-DC8D-42BC-953C-913E8CE3DD08}属性(S):WIX_DOWNGRADE_DETECTED = {8BC4D6BF-C0CF-48EB-A229-FC692208DFF0}属性(S):MsiLogFileLocation = C:\sys\logs\db_install.log属性(S):PackageCode = {B44E8FB7-8E4E-48D4-8D07-CB34010243AB}属性(S):产品状态 = 1属性(S):REBOOT = RealSuppress属性(S):CURRENTDIRECTORY = C:\WINDOWS\ccmcache\5q属性(S):CLIENTUILEVEL = 3属性(S):CLIENTPROCESSID = 6472属性(S):MsiRestartManagerSessionKey = 32643088af72814b9d60a08f9f058ba9属性(S):产品语言 = 1033属性(S):版本数据库 = 200属性(S):VersionMsi = 5.00属性(S):VersionNT = 603属性(S):版本NT64 = 603属性(S):WindowsBuild = 9600属性(S):ServicePackLevel = 0属性(S):ServicePackLevelMinor = 0属性(S):MsiNTProductType = 1属性(S):WindowsFolder = C:\WINDOWS\属性(S):WindowsVolume = C:\属性(S):System64Folder = C:\WINDOWS\system32\属性(S):SystemFolder = C:\WINDOWS\SysWOW64\属性(S):RemoteAdminTS = 1属性(S):TempFolder = C:\WINDOWS\TEMP\属性(S):ProgramFilesFolder = C:\Program Files (x86)\属性(S):CommonFilesFolder = C:\Program Files (x86)\Common Files\属性(S):CommonFiles64Folder = C:\Program Files\Common Files\属性(S):AppDataFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\属性(S):FavoritesFolder = C:\WINDOWS\system32\config\systemprofile\Favorites\属性(S):NetHoodFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Network Shortcuts\属性(S):PersonalFolder = C:\WINDOWS\system32\config\systemprofile\Documents\属性(S):PrintHoodFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\属性(S):RecentFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Recent\属性(S):SendToFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\SendTo\属性(S):TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\属性(S):CommonAppDataFolder = C:\ProgramData\属性(S):LocalAppDataFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Local\属性(S):MyPicturesFolder = C:\WINDOWS\system32\config\systemprofile\Pictures\属性(S):AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\属性(S):StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\属性(S):DesktopFolder = C:\Users\Public\Desktop\属性(S):FontsFolder = C:\WINDOWS\Fonts\属性(S):GPTSupport = 1属性(S):OLEAdvtSupport = 1属性(S):ShellAdvtSupport = 1属性(S):MsiAMD64 = 6属性(S):Msix64 = 6属性(S):英特尔 = 6属性(S):物理内存 = 8076属性(S):VirtualMemory = 7770属性(S):AdminUser = 1属性(S):MsiTrueAdminUser = 1属性(S):LogonUser = SYSTEM属性(S):UserSID = S-1-5-18属性(S):用户语言 ID = 1033属性(S):计算机名称 = AA-PH-6L4HKH2属性(S):系统语言 ID = 1033属性(S):ScreenX = 1024属性(S):ScreenY = 768属性(S):CaptionHeight = 19属性(S):BorderTop = 1属性(S):BorderSide = 1属性(S):TextHeight = 16属性(S):TextInternalLeading = 3属性(S):ColorBits = 32属性(S):TTCSupport = 1属性(S):时间 = 9:29:29物业(S):日期 = 7/11/2019属性(S):MsiNetAssemblySupport = 4.7.3190.0属性(S):MsiWin32AssemblySupport = 6.3.17763.1属性(S):RedirectedDllSupport = 2属性(S):MsiRunningElevated = 1属性(S):特权 = 1属性(S):USERNAME = CSUS 用户财产(S):公司名称 = CSU萨克拉门托属性(S):DATABASE = C:\WINDOWS\Installer\30cf3.msi属性(S):OriginalDatabase = C:\WINDOWS\ccmcache\5q\WixInstaller.msi属性(S):UILevel = 2属性(S):操作 = 安装属性(S):迁移 = {61C1C89E-DC8D-42BC-953C-913E8CE3DD08}MSI (s) (20:6C) [09:29:29:348]:推迟清理包/文件(如果存在)MSI (s) (20:6C) [09:29:29:348]:MainEngineThread 返回 1603MSI (s) (20:B8) [09:29:29:348]:重新启动管理器:会话已关闭.MSI (s) (20:B8) [09:29:29:348]:此安装没有系统还原序列号.=== 日志停止:7/11/2019 9:29:29 ===MSI (s) (20:B8) [09:29:29:348]:用户策略值DisableRollback"为 0MSI (s) (20:B8) [09:29:29:348]:机器策略值DisableRollback"为 0MSI (s) (20:B8) [09:29:29:348]:递增计数器以禁用关机.递增后计数器:0MSI (s) (20:B8) [09:29:29:348]:注意:1:1402 2:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3:2MSI (s) (20:B8) [09:29:29:348]:注意:1:1402 2:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3:2MSI (s) (20:B8) [09:29:29:348]:递减计数器以禁用关机.如果 counter >= 0,则关闭将被拒绝.递减后的计数器:-1MSI (c) (48:5C) [09:29:29:364]:递减计数器以禁用关机.如果 counter >= 0,则关闭将被拒绝.递减后的计数器:-1MSI (c) (48:5C) [09:29:29:364]:MainEngineThread 返回 1603=== 详细日志记录停止:7/11/2019 9:29:29 ===

那么,为什么 SCCM/WiX 认为 1 大于 2?

解决方案

来自日志:日志文件中的这个产品代码属于什么产品?

属性(S):WIX_DOWNGRADE_DETECTED = {8BC4D6BF-C0CF-48EB-A229-FC692208DFF0}

产品代码 &产品名称:也许尝试运行此脚本以找出真正的产品:1) copy &将下面的脚本粘贴到记事本中,2)另存为ANSI文件:"Product Code Lookup.vbs"在桌面上,3) 双击脚本文件运行:

On Error Resume Next ' 我们忽略所有错误Set installer = CreateObject("WindowsInstaller.Installer")search = Trim(InputBox(请粘贴或输入您要查找详细信息的产品代码:", _查找产品详细信息(提供测试 GUID):"、{8BC4D6BF-C0CF-48EB-A229-FC692208DFF0}"))如果搜索 = vbCancel 或 Trim(search) = "然后WScript.退出(0)万一对于每个产品在 installer.ProductsEx("", "", 7)如果 (product.ProductCode = search) 那么MsgBox "产品代码:"&product.ProductCode &vbNewLine &_"产品名称:"&product.InstallProperty("ProductName") &vbNewLine &_"产品版本:"&product.InstallProperty("VersionString"), vbOKOnly, "Match Found:";退出万一下一个MsgBox "Completed product scan.", vbOKOnly, "Scan Complete";

<块引用>

完整列表:如果您想要列出所有产品的文本文件,请在此处检查 VBScript(朝底部).

AllowSameVersionUpgrades:刚刚回答了另一个重要的升级问题.也可以略读一下:WIX 不会卸载旧版本.请记住,只有 ProductVersion 的前 3 位数字会影响主要升级.我也不太热衷于 "AllowSameVersionUpgrades" 方法,我更喜欢简单明了的主要升级变体 - 像这样(只有我的 2 美分,业务需求总是难):

升级表:有助于查看实际升级表.里面有什么奇葩的吗?多个条目?也许您对不同的产品重复使用了相同的升级代码?对于共享升级处理的产品线或产品系列,升级代码应保持不变.对于要单独升级的不同产品,它不应相同.一般来说.


链接:

I have used WiX Install tools in Visual Studio to create create an installer for my C# Windows Forms application.

The Installer works when invoked independently (command line or double-click); it uninstalls the existing version (1.0.1.2) and installs the new version (1.0.2.1) but the objective is to have SCCM push the application out to our 50+ workstations.

Answers to questions that have been asked:

It is configured in SCCM as an Application. This is only my third experience with SCCM, I am not familiar with Packages.

The Detection Method is 2 Rules:
Product Code {81748469-6B08-4C6C-99B5-BFCE7202FE06} must exist.
File %ProgramFiles%\PHSRP\PHSRP_Dashboard.exe with Modified Date >= 7/2/2019 12:00:00 AM must be present.

The installation is failing when SCCM is pushing it out. The installation log indicates that the installer believes that a newer version already exists, but this is not true.

    <?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Product Id="81748469-6b08-4c6c-99b5-bfce7202fe06" Name="PHSRP Dashboard" Language="1033" Version="1.0.2.1" Manufacturer="CSUS Public Health Survey Research Program" UpgradeCode="8420CB2B-6692-4BB9-A15A-023C7E69FB26">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64"/>

    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed."
                  AllowSameVersionUpgrades="yes"
                  IgnoreRemoveFailure="yes"
     />
    <MediaTemplate />
    <!-- UIRef Id="WixUI_Minimal"     Adds License dialog         -->
    <!-- UIRef Id="WixUI_Advanced"    Adds multiple dialog option popups  -->


    <Feature Id="MainProduct" Title="PHSRP Dashboard" Level="1" Absent="disallow">
      <ComponentGroupRef Id="ProductComponents" />
      <ComponentRef Id="CMP_StartMenu_Dashboard"/>
      <ComponentRef Id="CMP_DashboardAutoStart"/>
    </Feature>
  </Product>

  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFiles64Folder">
        <Directory Id="PHSRP" Name="PHSRP" />
      </Directory>

      <Directory Id="ProgramMenuFolder">
        <Directory Id="PHSRP_Menu" Name="PHSRP"/>
      </Directory>

      <Directory Id="StartupFolder"/>

    </Directory>
  </Fragment>

  <Fragment>
    <ComponentGroup Id="ProductComponents" Directory="PHSRP">

      <Component Id="CMP_Dashboard.EXE" Guid="939EC7DE-E6BD-4364-BFC7-7B03C03B7CBB">
        <File Id="FILE_Dashboard.EXE" Source="$(var.PHSRP_Dashboard.TargetDir)PHSRP_Dashboard.exe" KeyPath ="yes"/>
      </Component>

      <Component Id="CMP_DasboardConfig" Guid="4081EC5F-EAD0-4003-8B43-DFF1EF6B4348">
        <File Id="FILE_DashboardConfig" Source="$(var.PHSRP_Dashboard.TargetDir)\PHSRP_Dashboard.exe.config" KeyPath ="yes"/>
      </Component>

      <Component Id="CMP_EntityFramework" Guid="D685B056-E64C-4C9A-B0B0-C74DC5EF085E">
        <File Id="FILE_EntityFramework" Source="$(var.PHSRP_Dashboard.TargetDir)\EntityFramework.dll" KeyPath="yes"/>
      </Component>

      <Component Id="CMP_EntityFrameworkSqlServer" Guid="E017DCC8-1439-4CB6-BFDB-A8C86BF99D74">
        <File Id="FILE_EntityFrameworkSqlServer" Source="$(var.PHSRP_Dashboard.TargetDir)\EntityFramework.SqlServer.dll" KeyPath="yes"/>
      </Component>

      <Component Id="CMP_ReportViewerCommon" Guid="972220E8-5DD4-451D-847D-32DAC050D639">
        <File Id="FILE_ReportViewerCommon" Source="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\12.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.Common.dll" KeyPath="yes"/>
      </Component>

      <Component Id="CMP_ReportViewerDataVisualization" Guid="B0AF7500-5743-4B48-85FA-9BA12E3B554A">
        <File Id="FILE_ReportViewerDataVisualization" Source="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.DataVisualization\12.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.DataVisualization.dll" KeyPath="yes"/>
      </Component>

      <Component Id="CMP_ReportViewerProcessingObjectModel" Guid="75E5E7AD-E1AF-41BC-BC95-464272966629">
        <File Id="FILE_ReportViewerProcessingObjectModel" Source="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\12.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.ProcessingObjectModel.dll" KeyPath="yes"/>
      </Component>

      <Component Id="CMP_ReportViewerWinForms" Guid="831D08B1-047B-46E0-AA89-C1D47B0B4EBE">
        <File Id="FILE_ReportViewerWinForms" Source="C:\Program Files (x86)\Microsoft Visual Studio 14.0\ReportViewer\Microsoft.ReportViewer.WinForms.dll" KeyPath="yes"/>
      </Component>

      <Component Id="CMP_SQLServerTypes" Guid="EE385FEE-A4C9-4F9A-800E-F2B9C573DCA7">
        <File Id="FILE_SQLServerTypes" Source="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.Types\12.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Types.dll" KeyPath="yes"/>
      </Component>

      <Component Id="CMP_SystemNetHttp" Guid="F56581DD-D9D0-4140-BB66-9DEF7FF66D7B">
        <File Id="FILE_SystemNetHttp" Source="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Net.Http.dll" KeyPath="yes"/>
      </Component>
    </ComponentGroup>

    <DirectoryRef Id="PHSRP_Menu">
      <Component Id="CMP_StartMenu_Dashboard" Guid="B8C6D5CE-26BD-45E1-904D-97FC3EEADAE8">
        <Shortcut Id="SCUT_RunDashboard" Name="PHSRP Dashboard" Description="Start Dashboard" 
                  Target="[#FILE_Dashboard.EXE]"
                  WorkingDirectory="PHSRP" />

        <RemoveFolder Id="UI_RemoveShortcut" Directory="PHSRP_Menu" On="uninstall"/>
        <RegistryKey Root="HKCU" Key="Software\PHSRP\PHSRP_Dashboard">
          <RegistryValue Name="sm_shortcut" Type="integer" Value="1" KeyPath="yes"/>
        </RegistryKey>
      </Component>
    </DirectoryRef>

    <DirectoryRef Id="StartupFolder">
      <Component Id="CMP_DashboardAutoStart" Guid="E10E004B-8A38-43F9-8365-4C44267565F2">
        <Shortcut Id="SCUT_DashboardAutoStart" Name="PHSRP Dashboard" Description="AutoStart Dashboard"
                  Target="[#FILE_Dashboard.EXE]"
                  WorkingDirectory="PHSRP" />

        <RegistryKey Root="HKCU" Key="Software\PHSRP\PHSRP_Dashboard">
          <RegistryValue Name="su_shortcut" Type="integer" Value="1" KeyPath="yes"/>
        </RegistryKey>
      </Component>
    </DirectoryRef>

  </Fragment>
</Wix>

The existing version of the software is 1.0.1.1

Existing application file properties

The installation command used by SCCM

msiexec /i "WixInstaller.msi" /qn /norestart /L*V "C:\sys\logs\db_install.log"

The installation log file:

    === Verbose logging started: 7/11/2019  9:29:29  Build type: SHIP UNICODE 5.00.10011.00  Calling process: C:\WINDOWS\system32\msiexec.exe ===
MSI (c) (48:5C) [09:29:29:302]: Resetting cached policy values
MSI (c) (48:5C) [09:29:29:302]: Machine policy value 'Debug' is 0
MSI (c) (48:5C) [09:29:29:302]: ******* RunEngine:
           ******* Product: WixInstaller.msi
           ******* Action: 
           ******* CommandLine: **********
MSI (c) (48:5C) [09:29:29:302]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (48:5C) [09:29:29:302]: Grabbed execution mutex.
MSI (c) (48:5C) [09:29:29:317]: Cloaking enabled.
MSI (c) (48:5C) [09:29:29:317]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (48:5C) [09:29:29:317]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (20:B8) [09:29:29:317]: Running installation inside multi-package transaction C:\WINDOWS\ccmcache\5q\WixInstaller.msi
MSI (s) (20:B8) [09:29:29:317]: Grabbed execution mutex.
MSI (s) (20:6C) [09:29:29:317]: Resetting cached policy values
MSI (s) (20:6C) [09:29:29:317]: Machine policy value 'Debug' is 0
MSI (s) (20:6C) [09:29:29:317]: ******* RunEngine:
           ******* Product: C:\WINDOWS\ccmcache\5q\WixInstaller.msi
           ******* Action: 
           ******* CommandLine: **********
MSI (s) (20:6C) [09:29:29:317]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (20:6C) [09:29:29:317]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (20:6C) [09:29:29:317]: User policy value 'DisableMedia' is 0
MSI (s) (20:6C) [09:29:29:317]: Machine policy value 'AllowLockdownMedia' is 0
MSI (s) (20:6C) [09:29:29:317]: SOURCEMGMT: Media enabled only if package is safe.
MSI (s) (20:6C) [09:29:29:317]: SOURCEMGMT: Looking for sourcelist for product {81748469-6B08-4C6C-99B5-BFCE7202FE06}
MSI (s) (20:6C) [09:29:29:317]: SOURCEMGMT: Adding {81748469-6B08-4C6C-99B5-BFCE7202FE06}; to potential sourcelist list (pcode;disk;relpath).
MSI (s) (20:6C) [09:29:29:317]: SOURCEMGMT: Now checking product {81748469-6B08-4C6C-99B5-BFCE7202FE06}
MSI (s) (20:6C) [09:29:29:317]: SOURCEMGMT: Media is enabled for product.
MSI (s) (20:6C) [09:29:29:317]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
MSI (s) (20:6C) [09:29:29:317]: SOURCEMGMT: Processing net source list.
MSI (s) (20:6C) [09:29:29:317]: SOURCEMGMT: Trying source C:\WINDOWS\ccmcache\5q\.
MSI (s) (20:6C) [09:29:29:317]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3: 2 
MSI (s) (20:6C) [09:29:29:317]: Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (s) (20:6C) [09:29:29:317]: Specifed source is already in a list.
MSI (s) (20:6C) [09:29:29:317]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (20:6C) [09:29:29:317]: Machine policy value 'DisableBrowse' is 0
MSI (s) (20:6C) [09:29:29:317]: Machine policy value 'AllowLockdownBrowse' is 0
MSI (s) (20:6C) [09:29:29:317]: Adding new sources is allowed.
MSI (s) (20:6C) [09:29:29:317]: Set LastUsedSource to: C:\WINDOWS\ccmcache\5q\.
MSI (s) (20:6C) [09:29:29:317]: Set LastUsedType to: n.
MSI (s) (20:6C) [09:29:29:317]: Set LastUsedIndex to: 1.
MSI (s) (20:6C) [09:29:29:317]: SOURCEMGMT: Resolved source to: 'C:\WINDOWS\ccmcache\5q\'
MSI (s) (20:6C) [09:29:29:317]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038 
MSI (s) (20:6C) [09:29:29:317]: SRSetRestorePoint skipped for this transaction.
MSI (s) (20:6C) [09:29:29:317]: File will have security applied from OpCode.
MSI (s) (20:6C) [09:29:29:333]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\WINDOWS\ccmcache\5q\WixInstaller.msi' against software restriction policy
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 2262 2: DigitalSignature 3: -2147287038 
MSI (s) (20:6C) [09:29:29:333]: SOFTWARE RESTRICTION POLICY: C:\WINDOWS\ccmcache\5q\WixInstaller.msi is not digitally signed
MSI (s) (20:6C) [09:29:29:333]: SOFTWARE RESTRICTION POLICY: C:\WINDOWS\ccmcache\5q\WixInstaller.msi is permitted to run because the user token authorizes execution (system or service token).
MSI (s) (20:6C) [09:29:29:333]: MSCOREE not loaded loading copy from system32
MSI (s) (20:6C) [09:29:29:333]: End dialog not enabled
MSI (s) (20:6C) [09:29:29:333]: Original package ==> C:\WINDOWS\ccmcache\5q\WixInstaller.msi
MSI (s) (20:6C) [09:29:29:333]: Package we're running from ==> C:\WINDOWS\Installer\30cf3.msi
MSI (s) (20:6C) [09:29:29:333]: APPCOMPAT: looking for appcompat database entry with ProductCode '{81748469-6B08-4C6C-99B5-BFCE7202FE06}'.
MSI (s) (20:6C) [09:29:29:333]: APPCOMPAT: no matching ProductCode found in database.
MSI (s) (20:6C) [09:29:29:333]: Machine policy value 'DisablePatch' is 0
MSI (s) (20:6C) [09:29:29:333]: Machine policy value 'AllowLockdownPatch' is 0
MSI (s) (20:6C) [09:29:29:333]: Machine policy value 'DisableLUAPatching' is 0
MSI (s) (20:6C) [09:29:29:333]: Machine policy value 'DisableFlyWeightPatching' is 0
MSI (s) (20:6C) [09:29:29:333]: APPCOMPAT: looking for appcompat database entry with ProductCode '{81748469-6B08-4C6C-99B5-BFCE7202FE06}'.
MSI (s) (20:6C) [09:29:29:333]: APPCOMPAT: no matching ProductCode found in database.
MSI (s) (20:6C) [09:29:29:333]: Transforms are not secure.
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 2205 2:  3: Control 
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'C:\sys\logs\db_install.log'.
MSI (s) (20:6C) [09:29:29:333]: Command Line: REBOOT=ReallySuppress CURRENTDIRECTORY=C:\WINDOWS\ccmcache\5q CLIENTUILEVEL=3 CLIENTPROCESSID=6472 
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{B44E8FB7-8E4E-48D4-8D07-CB34010243AB}'.
MSI (s) (20:6C) [09:29:29:333]: Product Code passed to Engine.Initialize:           '{81748469-6B08-4C6C-99B5-BFCE7202FE06}'
MSI (s) (20:6C) [09:29:29:333]: Product Code from property table before transforms: '{81748469-6B08-4C6C-99B5-BFCE7202FE06}'
MSI (s) (20:6C) [09:29:29:333]: Product Code from property table after transforms:  '{81748469-6B08-4C6C-99B5-BFCE7202FE06}'
MSI (s) (20:6C) [09:29:29:333]: Product not registered: beginning first-time install
MSI (s) (20:6C) [09:29:29:333]: Determined that existing product (either this product or the product being upgraded with a patch) is installed per-machine.
MSI (s) (20:6C) [09:29:29:333]: Product {81748469-6B08-4C6C-99B5-BFCE7202FE06} is admin assigned: LocalSystem owns the publish key.
MSI (s) (20:6C) [09:29:29:333]: Product {81748469-6B08-4C6C-99B5-BFCE7202FE06} is managed.
MSI (s) (20:6C) [09:29:29:333]: MSI_LUA: Credential prompt not required, user is an admin
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding ProductState property. Its value is '1'.
MSI (s) (20:6C) [09:29:29:333]: Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (s) (20:6C) [09:29:29:333]: Specifed source is already in a list.
MSI (s) (20:6C) [09:29:29:333]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (20:6C) [09:29:29:333]: Adding new sources is allowed.
MSI (s) (20:6C) [09:29:29:333]: Package name retrieved from configuration data: 'WixInstaller.msi'
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 2205 2:  3: Error 
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 2262 2: AdminProperties 3: -2147287038 
MSI (s) (20:6C) [09:29:29:333]: Machine policy value 'DisableMsi' is 0
MSI (s) (20:6C) [09:29:29:333]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (20:6C) [09:29:29:333]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (20:6C) [09:29:29:333]: Product {81748469-6B08-4C6C-99B5-BFCE7202FE06} is admin assigned: LocalSystem owns the publish key.
MSI (s) (20:6C) [09:29:29:333]: Product {81748469-6B08-4C6C-99B5-BFCE7202FE06} is managed.
MSI (s) (20:6C) [09:29:29:333]: Running product '{81748469-6B08-4C6C-99B5-BFCE7202FE06}' with elevated privileges: Product is assigned.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding REBOOT property. Its value is 'ReallySuppress'.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding CURRENTDIRECTORY property. Its value is 'C:\WINDOWS\ccmcache\5q'.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding CLIENTUILEVEL property. Its value is '3'.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding CLIENTPROCESSID property. Its value is '6472'.
MSI (s) (20:6C) [09:29:29:333]: Machine policy value 'DisableAutomaticApplicationShutdown' is 0
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding MsiRestartManagerSessionKey property. Its value is '32643088af72814b9d60a08f9f058ba9'.
MSI (s) (20:6C) [09:29:29:333]: RESTART MANAGER: Session opened.
MSI (s) (20:6C) [09:29:29:333]: TRANSFORMS property is now: 
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding PRODUCTLANGUAGE property. Its value is '1033'.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding VersionDatabase property. Its value is '200'.
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\Favorites
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Network Shortcuts
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\Documents
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Recent
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\SendTo
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Templates
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\ProgramData
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Local
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\Pictures
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\Users\Public\Desktop
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\system32\config\systemprofile\Desktop
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Templates
MSI (s) (20:6C) [09:29:29:333]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\Fonts
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 2898 2: MS Sans Serif 3: MS Sans Serif 4: 0 5: 16 
MSI (s) (20:6C) [09:29:29:333]: MSI_LUA: Setting MsiRunningElevated property to 1 because the install is already running elevated.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding MsiRunningElevated property. Its value is '1'.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2 
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding USERNAME property. Its value is 'CSUS User'.
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2 
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding COMPANYNAME property. Its value is 'CSU Sacramento'.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding DATABASE property. Its value is 'C:\WINDOWS\Installer\30cf3.msi'.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding OriginalDatabase property. Its value is 'C:\WINDOWS\ccmcache\5q\WixInstaller.msi'.
MSI (s) (20:6C) [09:29:29:333]: Machine policy value 'MsiDisableEmbeddedUI' is 0
MSI (s) (20:6C) [09:29:29:333]: EEUI - Disabling MsiEmbeddedUI for service because it's not a quiet/basic install
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 2205 2:  3: PatchPackage 
MSI (s) (20:6C) [09:29:29:333]: Machine policy value 'DisableRollback' is 0
MSI (s) (20:6C) [09:29:29:333]: User policy value 'DisableRollback' is 0
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding UILevel property. Its value is '2'.
=== Logging started: 7/11/2019  9:29:29 ===
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038 
MSI (s) (20:6C) [09:29:29:333]: APPCOMPAT: [DetectVersionLaunchCondition] Launch condition already passes.
MSI (s) (20:6C) [09:29:29:333]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
MSI (s) (20:6C) [09:29:29:333]: Doing action: INSTALL
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 2205 2:  3: ActionText 
Action start 9:29:29: INSTALL.
MSI (s) (20:6C) [09:29:29:333]: Running ExecuteSequence
MSI (s) (20:6C) [09:29:29:333]: Doing action: FindRelatedProducts
MSI (s) (20:6C) [09:29:29:333]: Note: 1: 2205 2:  3: ActionText 
Action start 9:29:29: FindRelatedProducts.
MSI (s) (20:6C) [09:29:29:348]: PROPERTY CHANGE: Adding WIX_UPGRADE_DETECTED property. Its value is '{61C1C89E-DC8D-42BC-953C-913E8CE3DD08}'.
MSI (s) (20:6C) [09:29:29:348]: PROPERTY CHANGE: Adding MIGRATE property. Its value is '{61C1C89E-DC8D-42BC-953C-913E8CE3DD08}'.
MSI (s) (20:6C) [09:29:29:348]: PROPERTY CHANGE: Adding WIX_DOWNGRADE_DETECTED property. Its value is '{8BC4D6BF-C0CF-48EB-A229-FC692208DFF0}'.
MSI (s) (20:6C) [09:29:29:348]: Doing action: LaunchConditions
MSI (s) (20:6C) [09:29:29:348]: Note: 1: 2205 2:  3: ActionText 
Action ended 9:29:29: FindRelatedProducts. Return value 1.
Action start 9:29:29: LaunchConditions.
MSI (s) (20:6C) [09:29:29:348]: Note: 1: 2205 2:  3: Error 
MSI (s) (20:6C) [09:29:29:348]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 
MSI (s) (20:6C) [09:29:29:348]: Product: PHSRP Dashboard -- A newer version of PHSRP Dashboard is already installed.

A newer version of PHSRP Dashboard is already installed.
Action ended 9:29:29: LaunchConditions. Return value 3.
Action ended 9:29:29: INSTALL. Return value 3.
Property(S): UpgradeCode = {8420CB2B-6692-4BB9-A15A-023C7E69FB26}
Property(S): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
Property(S): ProgramFiles64Folder = C:\Program Files\
Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
Property(S): ALLUSERS = 1
Property(S): Manufacturer = CSUS Public Health Survey Research Program
Property(S): ProductCode = {81748469-6B08-4C6C-99B5-BFCE7202FE06}
Property(S): ProductLanguage = 1033
Property(S): ProductName = PHSRP Dashboard
Property(S): ProductVersion = 1.0.2.1
Property(S): SecureCustomProperties = WIX_DOWNGRADE_DETECTED;WIX_UPGRADE_DETECTED
Property(S): WIX_UPGRADE_DETECTED = {61C1C89E-DC8D-42BC-953C-913E8CE3DD08}
Property(S): WIX_DOWNGRADE_DETECTED = {8BC4D6BF-C0CF-48EB-A229-FC692208DFF0}
Property(S): MsiLogFileLocation = C:\sys\logs\db_install.log
Property(S): PackageCode = {B44E8FB7-8E4E-48D4-8D07-CB34010243AB}
Property(S): ProductState = 1
Property(S): REBOOT = ReallySuppress
Property(S): CURRENTDIRECTORY = C:\WINDOWS\ccmcache\5q
Property(S): CLIENTUILEVEL = 3
Property(S): CLIENTPROCESSID = 6472
Property(S): MsiRestartManagerSessionKey = 32643088af72814b9d60a08f9f058ba9
Property(S): PRODUCTLANGUAGE = 1033
Property(S): VersionDatabase = 200
Property(S): VersionMsi = 5.00
Property(S): VersionNT = 603
Property(S): VersionNT64 = 603
Property(S): WindowsBuild = 9600
Property(S): ServicePackLevel = 0
Property(S): ServicePackLevelMinor = 0
Property(S): MsiNTProductType = 1
Property(S): WindowsFolder = C:\WINDOWS\
Property(S): WindowsVolume = C:\
Property(S): System64Folder = C:\WINDOWS\system32\
Property(S): SystemFolder = C:\WINDOWS\SysWOW64\
Property(S): RemoteAdminTS = 1
Property(S): TempFolder = C:\WINDOWS\TEMP\
Property(S): ProgramFilesFolder = C:\Program Files (x86)\
Property(S): CommonFilesFolder = C:\Program Files (x86)\Common Files\
Property(S): CommonFiles64Folder = C:\Program Files\Common Files\
Property(S): AppDataFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\
Property(S): FavoritesFolder = C:\WINDOWS\system32\config\systemprofile\Favorites\
Property(S): NetHoodFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
Property(S): PersonalFolder = C:\WINDOWS\system32\config\systemprofile\Documents\
Property(S): PrintHoodFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
Property(S): RecentFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Recent\
Property(S): SendToFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\SendTo\
Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
Property(S): CommonAppDataFolder = C:\ProgramData\
Property(S): LocalAppDataFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Local\
Property(S): MyPicturesFolder = C:\WINDOWS\system32\config\systemprofile\Pictures\
Property(S): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
Property(S): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
Property(S): DesktopFolder = C:\Users\Public\Desktop\
Property(S): FontsFolder = C:\WINDOWS\Fonts\
Property(S): GPTSupport = 1
Property(S): OLEAdvtSupport = 1
Property(S): ShellAdvtSupport = 1
Property(S): MsiAMD64 = 6
Property(S): Msix64 = 6
Property(S): Intel = 6
Property(S): PhysicalMemory = 8076
Property(S): VirtualMemory = 7770
Property(S): AdminUser = 1
Property(S): MsiTrueAdminUser = 1
Property(S): LogonUser = SYSTEM
Property(S): UserSID = S-1-5-18
Property(S): UserLanguageID = 1033
Property(S): ComputerName = AA-PH-6L4HKH2
Property(S): SystemLanguageID = 1033
Property(S): ScreenX = 1024
Property(S): ScreenY = 768
Property(S): CaptionHeight = 19
Property(S): BorderTop = 1
Property(S): BorderSide = 1
Property(S): TextHeight = 16
Property(S): TextInternalLeading = 3
Property(S): ColorBits = 32
Property(S): TTCSupport = 1
Property(S): Time = 9:29:29
Property(S): Date = 7/11/2019
Property(S): MsiNetAssemblySupport = 4.7.3190.0
Property(S): MsiWin32AssemblySupport = 6.3.17763.1
Property(S): RedirectedDllSupport = 2
Property(S): MsiRunningElevated = 1
Property(S): Privileged = 1
Property(S): USERNAME = CSUS User
Property(S): COMPANYNAME = CSU Sacramento
Property(S): DATABASE = C:\WINDOWS\Installer\30cf3.msi
Property(S): OriginalDatabase = C:\WINDOWS\ccmcache\5q\WixInstaller.msi
Property(S): UILevel = 2
Property(S): ACTION = INSTALL
Property(S): MIGRATE = {61C1C89E-DC8D-42BC-953C-913E8CE3DD08}
MSI (s) (20:6C) [09:29:29:348]: Deferring clean up of packages/files, if any exist
MSI (s) (20:6C) [09:29:29:348]: MainEngineThread is returning 1603
MSI (s) (20:B8) [09:29:29:348]: RESTART MANAGER: Session closed.
MSI (s) (20:B8) [09:29:29:348]: No System Restore sequence number for this installation.
=== Logging stopped: 7/11/2019  9:29:29 ===
MSI (s) (20:B8) [09:29:29:348]: User policy value 'DisableRollback' is 0
MSI (s) (20:B8) [09:29:29:348]: Machine policy value 'DisableRollback' is 0
MSI (s) (20:B8) [09:29:29:348]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (20:B8) [09:29:29:348]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (20:B8) [09:29:29:348]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (20:B8) [09:29:29:348]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (48:5C) [09:29:29:364]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (48:5C) [09:29:29:364]: MainEngineThread is returning 1603
=== Verbose logging stopped: 7/11/2019  9:29:29 ===

So, why does SCCM/WiX think that 1 is greater than 2?

解决方案

From Log: What product does this product code from the log file belong to?

Property(S): WIX_DOWNGRADE_DETECTED = {8BC4D6BF-C0CF-48EB-A229-FC692208DFF0}

Product Code & Product Name: Maybe try to run this script to figure out what product that really is: 1) copy & paste the script below into notepad, 2) save as ANSI file: "Product Code Lookup.vbs" on desktop, 3) double click script file to run:

On Error Resume Next ' we ignore all errors
Set installer = CreateObject("WindowsInstaller.Installer")
search = Trim(InputBox("Please paste or type in the product code you want to look up details for:", _
              "Find Product Details (test GUID provided):", "{8BC4D6BF-C0CF-48EB-A229-FC692208DFF0}"))
If search = vbCancel Or Trim(search) = "" Then
   WScript.Quit(0)
End If

For Each product In installer.ProductsEx("", "", 7)
   If (product.ProductCode = search) Then
      MsgBox "Product Code: " & product.ProductCode & vbNewLine & _
             "Product Name: " & product.InstallProperty("ProductName") & vbNewLine & _
             "Product Version: " & product.InstallProperty("VersionString"), vbOKOnly, "Match Found:"
      Exit For
   End If
Next

MsgBox "Completed product scan.", vbOKOnly, "Scan Complete"

Full List: If you want a text file with all products listed, please check the VBScript here (towards bottom).

AllowSameVersionUpgrades: Just answered another major upgrade question. Maybe skim it too: WIX does not uninstall older version. Remember that only the first 3 digits of the ProductVersion affect major upgrades. I am also not too keen on the "AllowSameVersionUpgrades" approach, I prefer the plain and simple major upgrade variant - like this (just my 2 cents, business requirements are always hard):

<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />

Upgrade Table: It would help to see the actual upgrade table. Is there anything funky in there? Multiple entries? Maybe you have re-used the same upgrade code for separate products? Upgrade code should remain the same for a product line or family of products that share upgrade handing. It should not be the same for different products that you want to upgrade separately. Generally speaking.


Links:

这篇关于WiX 安装程序错误关于已安装的较新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆