Wix 自定义操作在不应该被跳过时被跳过

Wix Custom Action being skipped when it shouldn't

我是 Wix 的新手,所以我可能缺少一些基本的东西,但我不明白为什么我的自定义操作没有被执行。

我的设置

我有一个安装程序可以做 3 件事:1) 安装客户端应用程序,2) 更新应用程序链接到的数据库,以及 3) 将报表部署到报表服务器。我创建了一个带有复选框的对话框,允许用户选择安装程序应该执行的这 3 项操作的组合。

我的功能和自定义操作是这样定义的:

<Feature Id="MainProduct" Title="ARCtax" Level="1">
        <ComponentGroupRef Id="ProductComponents" />
  <ComponentGroupRef Id="RegistryComponents" />

  <Condition Level="0">
    <![CDATA[(NOT INSTALL_OPTION_1) and (NOT REMOVE = "ALL")]]>
  </Condition>
    </Feature>

<InstallExecuteSequence>
  <Custom Action="RunSqlScripts" Sequence="6598">
    <![CDATA[ALLOW_DB_UPDATE = "yes" and INSTALL_OPTION_2 = "1"]]>
  </Custom>
  <Custom Action="RunRsSetup" Sequence="6599">
    <![CDATA[ALLOW_RS_DEPLOY = "yes" and ((ALLOW_DB_UPDATE = "yes" and INSTALL_OPTION_3 = "1") or (ALLOW_DB_UPDATE = "no" and INSTALL_OPTION_2 = "1"))]]>
  </Custom>
</InstallExecuteSequence>

问题

我遇到的问题是,当我取消选中第一个复选框,但选中其他 2 个复选框时(不安装应用程序,但更新数据库并部署报告)。自定义操作不执行。我需要此行为起作用的原因是,在某些情况下,用户可能需要重新安装报告或更新另一个数据库,但不需要重新安装应用程序。

我更新数据库和部署报告的 2 个自定义操作是 InstallFinalize 之前 InstallExecuteSequence 中发生的最后 2 个操作

当我 运行 使用详细日志记录的安装程序时,它说这 2 个操作被跳过,因为条件为假,但据我所知,它不应该。谁能给我一些指示?下面是日志(我认为 relevant/Whosebug 允许我包含的内容)

UI 日志

Action 11:55:15: WelcomeDlg. 
Action start 11:55:15: WelcomeDlg.
MSI (c) (AC:20) [11:55:15:057]: Note: 1: 2205 2:  3: Error 
MSI (c) (AC:20) [11:55:15:057]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898 
Info 2898.For ARCtaxInstall_Font_Normal textstyle, the system created a 'Verdana' font, in 1 character set, of 13 pixels height.
MSI (c) (AC:20) [11:55:15:066]: Note: 1: 2205 2:  3: Error 
MSI (c) (AC:20) [11:55:15:066]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898 
Info 2898.For ARCtaxInstall_Font_Header textstyle, the system created a 'Verdana' font, in 1 character set, of 23 pixels height.
Action 11:55:15: WelcomeDlg. Dialog created
MSI (c) (AC:C8) [11:55:15:074]: PROPERTY CHANGE: Modifying CostingComplete property. Its current value is '0'. Its new value: '1'.
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: BindImage 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: ProgId 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: PublishComponent 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: SelfReg 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: Extension 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: Font 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: Shortcut 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: Class 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: Icon 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2205 2:  3: TypeLib 
MSI (c) (AC:C8) [11:55:15:075]: Note: 1: 2727 2:  
MSI (c) (AC:20) [11:55:16:910]: Doing action: FetchConnectionInfo
Action 11:55:16: FetchConnectionInfo. 
Action start 11:55:16: FetchConnectionInfo.
MSI (c) (AC:E8) [11:55:16:913]: Invoking remote custom action. DLL: C:\Users\astarr\AppData\Local\Temp\MSID386.tmp, Entrypoint: FetchExistingConnection
MSI (c) (AC:DC) [11:55:16:915]: Cloaking enabled.
MSI (c) (AC:DC) [11:55:16:915]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (AC:DC) [11:55:16:916]: Connected to service for CA interface.
MSI (c) (AC!50) [11:55:17:249]: PROPERTY CHANGE: Adding SERVER_NAME property. Its value is '**********'.
MSI (c) (AC!50) [11:55:17:250]: PROPERTY CHANGE: Adding DATABASE_NAME property. Its value is '**********'.
Action ended 11:55:17: FetchConnectionInfo. Return value 1.
MSI (c) (AC:20) [11:55:17:282]: Note: 1: 2205 2:  3: Error 
MSI (c) (AC:20) [11:55:17:282]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898 
Info 2898.For ARCtaxInstall_Font_Normal__UL textstyle, the system created a 'Verdana' font, in 0 character set, of 13 pixels height.
Action 11:55:17: ConnectionSelectDlg. Dialog created
MSI (c) (AC:20) [11:55:17:782]: Doing action: AllowDbUpdateOption
Action 11:55:17: AllowDbUpdateOption. 
Action start 11:55:17: AllowDbUpdateOption.
MSI (c) (AC:80) [11:55:17:785]: Invoking remote custom action. DLL: C:\Users\astarr\AppData\Local\Temp\MSID6F2.tmp, Entrypoint: CheckDbUpdate
MSI (c) (AC!C0) [11:55:18:252]: PROPERTY CHANGE: Adding ALLOW_DB_UPDATE property. Its value is 'yes'.
Action ended 11:55:19: AllowDbUpdateOption. Return value 1.
MSI (c) (AC:20) [11:55:19:824]: Doing action: AllowRsDeployOption
Action 11:55:19: AllowRsDeployOption. 
Action start 11:55:19: AllowRsDeployOption.
MSI (c) (AC:3C) [11:55:19:827]: Invoking remote custom action. DLL: C:\Users\astarr\AppData\Local\Temp\MSIDEE3.tmp, Entrypoint: CheckRsPermission
MSI (c) (AC!B0) [11:55:21:760]: PROPERTY CHANGE: Adding ALLOW_RS_DEPLOY property. Its value is 'yes'.
Action ended 11:55:23: AllowRsDeployOption. Return value 1.
Action 11:55:23: InstallOptionsDlg. Dialog created
MSI (c) (AC:20) [11:55:25:030]: PROPERTY CHANGE: Deleting INSTALL_OPTION_1 property. Its current value is '1'.
Action 11:55:26: DestinationSelectDlg. Dialog created
MSI (c) (AC:20) [11:55:27:185]: Note: 1: 2205 2:  3: Error 
MSI (c) (AC:20) [11:55:27:185]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2898 
Info 2898.For ARCtaxInstall_Font_Bold textstyle, the system created a 'Verdana' font, in 1 character set, of 13 pixels height.
Action 11:55:27: ConfirmInstallDlg. Dialog created
Action ended 11:55:28: WelcomeDlg. Return value 1.
MSI (c) (AC:A4) [11:55:28:472]: Doing action: ProgressDlg
Action 11:55:28: ProgressDlg. 
Action start 11:55:28: ProgressDlg.
Action 11:55:28: ProgressDlg. Dialog created
Action ended 11:55:28: ProgressDlg. Return value 1.

执行序列日志

Action start 11:55:28: INSTALL.
MSI (s) (6C:C0) [11:55:28:575]: Running ExecuteSequence
MSI (s) (6C:C0) [11:55:28:575]: Doing action: FindRelatedProducts
Action 11:55:28: FindRelatedProducts. Searching for related applications
Action start 11:55:28: FindRelatedProducts.
MSI (s) (6C:C0) [11:55:28:576]: Skipping FindRelatedProducts action: already done on client side
Action ended 11:55:28: FindRelatedProducts. Return value 0.
MSI (s) (6C:C0) [11:55:28:577]: Doing action: AppSearch
Action 11:55:28: AppSearch. Searching for installed applications
Action start 11:55:28: AppSearch.
MSI (s) (6C:C0) [11:55:28:577]: Skipping AppSearch action: already done on client side
Action ended 11:55:28: AppSearch. Return value 0.
MSI (s) (6C:C0) [11:55:28:578]: Skipping action: SetINSTALLFOLDER (condition is false)
MSI (s) (6C:C0) [11:55:28:578]: Doing action: LaunchConditions
Action 11:55:28: LaunchConditions. Evaluating launch conditions
Action start 11:55:28: LaunchConditions.
Action ended 11:55:28: LaunchConditions. Return value 1.
MSI (s) (6C:C0) [11:55:28:578]: Doing action: ValidateProductID
Action 11:55:28: ValidateProductID. 
Action start 11:55:28: ValidateProductID.
Action ended 11:55:28: ValidateProductID. Return value 1.
MSI (s) (6C:C0) [11:55:28:580]: Doing action: CostInitialize
Action 11:55:28: CostInitialize. Computing space requirements
Action start 11:55:28: CostInitialize.
MSI (s) (6C:C0) [11:55:28:580]: Machine policy value 'MaxPatchCacheSize' is 10
MSI (s) (6C:C0) [11:55:28:581]: PROPERTY CHANGE: Adding ROOTDRIVE property. Its value is 'C:\'.
MSI (s) (6C:C0) [11:55:28:581]: PROPERTY CHANGE: Adding CostingComplete property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:581]: Note: 1: 2205 2:  3: Patch 
MSI (s) (6C:C0) [11:55:28:581]: Note: 1: 2205 2:  3: PatchPackage 
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2205 2:  3: MsiPatchHeaders 
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2205 2:  3: __MsiPatchFileList 
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2205 2:  3: PatchPackage 
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2228 2:  3: PatchPackage 4: SELECT `DiskId`, `PatchId`, `LastSequence` FROM `Media`, `PatchPackage` WHERE `Media`.`DiskId`=`PatchPackage`.`Media_` ORDER BY `DiskId`  
MSI (s) (6C:C0) [11:55:28:582]: Note: 1: 2205 2:  3: Patch 
Action ended 11:55:28: CostInitialize. Return value 1.
MSI (s) (6C:C0) [11:55:28:582]: Doing action: FileCost
Action 11:55:28: FileCost. Computing space requirements
Action start 11:55:28: FileCost.
MSI (s) (6C:C0) [11:55:28:583]: Note: 1: 2205 2:  3: MsiAssembly 
MSI (s) (6C:C0) [11:55:28:583]: Note: 1: 2205 2:  3: Class 
MSI (s) (6C:C0) [11:55:28:583]: Note: 1: 2205 2:  3: Extension 
MSI (s) (6C:C0) [11:55:28:583]: Note: 1: 2205 2:  3: TypeLib 
Action ended 11:55:28: FileCost. Return value 1.
MSI (s) (6C:C0) [11:55:28:583]: Doing action: CostFinalize
Action 11:55:28: CostFinalize. Computing space requirements
Action start 11:55:28: CostFinalize.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding OutOfDiskSpace property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding OutOfNoRbDiskSpace property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceAvailable property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRequired property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRemaining property. Its value is '0'.
MSI (s) (6C:C0) [11:55:28:584]: Note: 1: 2205 2:  3: MsiAssembly 
MSI (s) (6C:C0) [11:55:28:584]: Note: 1: 2228 2:  3: MsiAssembly 4:  SELECT `MsiAssembly`.`Attributes`, `MsiAssembly`.`File_Application`, `MsiAssembly`.`File_Manifest`,  `Component`.`KeyPath` FROM `MsiAssembly`, `Component` WHERE  `MsiAssembly`.`Component_` = `Component`.`Component` AND `MsiAssembly`.`Component_` = ? 
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding INSTALLFOLDER property. Its value is 'C:\Program Files\Appraisal Research Corp\ARCtax_Test_Installer'.
MSI (s) (6C:C0) [11:55:28:584]: Note: 1: 2205 2:  3: Patch 
MSI (s) (6C:C0) [11:55:28:584]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'C:\'.
MSI (s) (6C:C0) [11:55:28:585]: PROPERTY CHANGE: Adding ManufactureDir property. Its value is 'C:\Program Files\Appraisal Research Corp\'.
MSI (s) (6C:C0) [11:55:28:585]: PROPERTY CHANGE: Modifying INSTALLFOLDER property. Its current value is 'C:\Program Files\Appraisal Research Corp\ARCtax_Test_Installer'. Its new value: 'C:\Program Files\Appraisal Research Corp\ARCtax_Test_Installer\'.
MSI (s) (6C:C0) [11:55:28:585]: Target path resolution complete. Dumping Directory table...
MSI (s) (6C:C0) [11:55:28:585]: Note: target paths subject to change (via custom actions or browsing)
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: TARGETDIR    , Object: C:\
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: WindowsFolder    , Object: C:\WINDOWS\
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: ProgramFiles64Folder , Object: C:\Program Files\
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: ManufactureDir   , Object: C:\Program Files\Appraisal Research Corp\
MSI (s) (6C:C0) [11:55:28:585]: Dir (target): Key: INSTALLFOLDER    , Object: C:\Program Files\Appraisal Research Corp\ARCtax_Test_Installer\
Action ended 11:55:28: CostFinalize. Return value 1.
MSI (s) (6C:C0) [11:55:28:585]: Doing action: MigrateFeatureStates
Action 11:55:28: MigrateFeatureStates. Migrating feature states from related applications
Action start 11:55:28: MigrateFeatureStates.
MSI (s) (6C:C0) [11:55:28:586]: Skipping MigrateFeatureStates action: already done on client side
Action ended 11:55:28: MigrateFeatureStates. Return value 0.
MSI (s) (6C:C0) [11:55:28:586]: Doing action: InstallValidate
Action 11:55:28: InstallValidate. Validating install
Action start 11:55:28: InstallValidate.
MSI (s) (6C:C0) [11:55:28:587]: PROPERTY CHANGE: Deleting MsiRestartManagerSessionKey property. Its current value is '1102d8f96701ca4ea7c1ec85069c9dad'.
MSI (s) (6C:C0) [11:55:28:587]: Feature: MainProduct; Installed: Local;   Request: Null;   Action: Null
MSI (s) (6C:C0) [11:55:28:587]: Component: TestApp; Installed: Local;   Request: Null;   Action: Null
MSI (s) (6C:C0) [11:55:28:587]: Component: ProductRegistryKey; Installed: Local;   Request: Null;   Action: Null
MSI (s) (6C:C0) [11:55:28:587]: Component: __ProductRegistryKey65; Installed: Null;   Request: Null;   Action: Null
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: BindImage 
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: ProgId 
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: PublishComponent 
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: SelfReg 
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: Extension 
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: Font 
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: Shortcut 
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: Class 
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: Icon 
MSI (s) (6C:C0) [11:55:28:587]: Note: 1: 2205 2:  3: TypeLib 
MSI (s) (6C:C0) [11:55:28:589]: PROPERTY CHANGE: Modifying CostingComplete property. Its current value is '0'. Its new value: '1'.
MSI (s) (6C:C0) [11:55:28:589]: Note: 1: 2205 2:  3: BindImage 
MSI (s) (6C:C0) [11:55:28:589]: Note: 1: 2205 2:  3: ProgId 
MSI (s) (6C:C0) [11:55:28:589]: Note: 1: 2205 2:  3: PublishComponent 
MSI (s) (6C:C0) [11:55:28:589]: Note: 1: 2205 2:  3: SelfReg 
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2:  3: Extension 
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2:  3: Font 
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2:  3: Shortcut 
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2:  3: Class 
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2:  3: Icon 
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2:  3: TypeLib 
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2727 2:  
MSI (s) (6C:C0) [11:55:28:590]: Note: 1: 2205 2:  3: FilesInUse 
MSI (s) (6C:C0) [11:55:28:609]: Note: 1: 2727 2:  
Action ended 11:55:28: InstallValidate. Return value 1.
MSI (s) (6C:C0) [11:55:28:611]: Doing action: RemoveExistingProducts
Action 11:55:28: RemoveExistingProducts. Removing applications
Action start 11:55:28: RemoveExistingProducts.
MSI (s) (6C:C0) [11:55:28:612]: Skipping RemoveExistingProducts action: current configuration is maintenance mode or an uninstall
Action ended 11:55:28: RemoveExistingProducts. Return value 0.
MSI (s) (6C:C0) [11:55:28:612]: Doing action: InstallInitialize
Action 11:55:28: InstallInitialize. 
Action start 11:55:28: InstallInitialize.
MSI (s) (6C:C0) [11:55:28:613]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [11:55:28:613]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C0) [11:55:28:613]: BeginTransaction: Locking Server
MSI (s) (6C:C0) [11:55:28:614]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038 
MSI (s) (6C:C0) [11:55:28:614]: SRSetRestorePoint skipped for this transaction.
MSI (s) (6C:C0) [11:55:28:614]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038 
MSI (s) (6C:C0) [11:55:28:614]: Server not locked: locking for product {E0A31102-EAA7-4C51-8BFF-AA83722FA29A}
Action ended 11:55:28: InstallInitialize. Return value 1.
MSI (s) (6C:C0) [11:55:28:623]: Doing action: ProcessComponents
Action 11:55:28: ProcessComponents. Updating component registration
Action start 11:55:28: ProcessComponents.
Action ended 11:55:28: ProcessComponents. Return value 1.
MSI (s) (6C:C0) [11:55:28:625]: Doing action: UnpublishFeatures
Action 11:55:28: UnpublishFeatures. Unpublishing Product Features
Action start 11:55:28: UnpublishFeatures.
Action ended 11:55:28: UnpublishFeatures. Return value 1.
MSI (s) (6C:C0) [11:55:28:626]: Doing action: RemoveRegistryValues
Action 11:55:28: RemoveRegistryValues. Removing system registry values
Action start 11:55:28: RemoveRegistryValues.
Action ended 11:55:28: RemoveRegistryValues. Return value 1.
MSI (s) (6C:C0) [11:55:28:628]: Doing action: RemoveFiles
Action 11:55:28: RemoveFiles. Removing files
Action start 11:55:28: RemoveFiles.
MSI (s) (6C:C0) [11:55:28:629]: Note: 1: 2205 2:  3: RemoveFile 
MSI (s) (6C:C0) [11:55:28:629]: Note: 1: 2205 2:  3: RemoveFile 
Action ended 11:55:28: RemoveFiles. Return value 0.
MSI (s) (6C:C0) [11:55:28:629]: Doing action: InstallFiles
Action 11:55:28: InstallFiles. Copying new files
Action start 11:55:28: InstallFiles.
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2205 2:  3: Patch 
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2228 2:  3: Patch 4: SELECT `Patch`.`File_`, `Patch`.`Header`, `Patch`.`Attributes`, `Patch`.`Sequence`, `Patch`.`StreamRef_` FROM `Patch` WHERE `Patch`.`File_` = ? AND `Patch`.`#_MsiActive`=? ORDER BY `Patch`.`Sequence` 
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2205 2:  3: Error 
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1302 
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2205 2:  3: MsiSFCBypass 
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2228 2:  3: MsiSFCBypass 4: SELECT `File_` FROM `MsiSFCBypass` WHERE `File_` = ? 
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2205 2:  3: MsiPatchHeaders 
MSI (s) (6C:C0) [11:55:28:630]: Note: 1: 2228 2:  3: MsiPatchHeaders 4: SELECT `Header` FROM `MsiPatchHeaders` WHERE `StreamRef` = ? 
Action ended 11:55:28: InstallFiles. Return value 1.
MSI (s) (6C:C0) [11:55:28:631]: Doing action: WriteRegistryValues
Action 11:55:28: WriteRegistryValues. Writing system registry values
Action start 11:55:28: WriteRegistryValues.
Action ended 11:55:28: WriteRegistryValues. Return value 1.
MSI (s) (6C:C0) [11:55:28:632]: Doing action: RegisterUser
Action 11:55:28: RegisterUser. Registering user
Action start 11:55:28: RegisterUser.
Action ended 11:55:28: RegisterUser. Return value 0.
MSI (s) (6C:C0) [11:55:28:633]: Doing action: RegisterProduct
Action 11:55:28: RegisterProduct. Registering product
Action start 11:55:28: RegisterProduct.
Action 11:55:28: GenerateScript. Generating script operations for action:
GenerateScript: Registering product
Action ended 11:55:28: RegisterProduct. Return value 1.
MSI (s) (6C:C0) [11:55:28:644]: Doing action: PublishFeatures
Action 11:55:28: PublishFeatures. Publishing Product Features
Action start 11:55:28: PublishFeatures.
Action ended 11:55:28: PublishFeatures. Return value 1.
MSI (s) (6C:C0) [11:55:28:649]: Doing action: PublishProduct
Action 11:55:28: PublishProduct. Publishing product information
Action start 11:55:28: PublishProduct.
PublishProduct: 
MSI (s) (6C:C0) [11:55:28:656]: Resolving source.
MSI (s) (6C:C0) [11:55:28:656]: Resolving source to launched-from source.
MSI (s) (6C:C0) [11:55:28:656]: Setting launched-from source as last-used.
MSI (s) (6C:C0) [11:55:28:656]: PROPERTY CHANGE: Adding SourceDir property. Its value is 'C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\'.
MSI (s) (6C:C0) [11:55:28:656]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is 'C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\'.
MSI (s) (6C:C0) [11:55:28:656]: PROPERTY CHANGE: Adding SourcedirProduct property. Its value is '{E0A31102-EAA7-4C51-8BFF-AA83722FA29A}'.
MSI (s) (6C:C0) [11:55:28:656]: SOURCEDIR ==> C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\
MSI (s) (6C:C0) [11:55:28:656]: SOURCEDIR product ==> {E0A31102-EAA7-4C51-8BFF-AA83722FA29A}
MSI (s) (6C:C0) [11:55:28:657]: Determining source type
MSI (s) (6C:C0) [11:55:28:657]: Source type from package 'Installer_ARCtax.msi': 2
MSI (s) (6C:C0) [11:55:28:657]: SECREPAIR: Hash Database: C:\WINDOWS\Installer\SourceHash{E0A31102-EAA7-4C51-8BFF-AA83722FA29A}
MSI (s) (6C:C0) [11:55:28:683]: Source path resolution complete. Dumping Directory table...
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: TARGETDIR    , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath:  , ShortSubPath: 
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: WindowsFolder    , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath:  , ShortSubPath: 
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: ProgramFiles64Folder , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath:  , ShortSubPath: 
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: ManufactureDir   , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath: Appraisal Research Corp\ , ShortSubPath: 8ii-ewho\
MSI (s) (6C:C0) [11:55:28:683]: Dir (source): Key: INSTALLFOLDER    , Object: C:\Users\astarr\Source\Repos\ARCtax\ARCtax\ARC2010NewMenu\ARCMenu\ARCMenu\Installer_ARCtax\bin\x64\Debug\ , LongSubPath: Appraisal Research Corp\ARCtax_Test_Installer\   , ShortSubPath: 8ii-ewho\v7651isb\
Action ended 11:55:28: PublishProduct. Return value 1.
MSI (s) (6C:C0) [11:55:28:684]: Skipping action: RunSqlScripts (condition is false)
MSI (s) (6C:C0) [11:55:28:684]: Skipping action: RunRsSetup (condition is false)
MSI (s) (6C:C0) [11:55:28:684]: Doing action: InstallFinalize
Action 11:55:28: InstallFinalize. 

我想我还应该注意,当我选中第一个复选框时,其他选项会正常工作。

编辑

我差点忘了,这个问题只有在应用程序已经安装时才​​会出现。如果不是并且我取消选中第一个复选框,数据库仍将更新并且报告仍将被部署。

假设场景是您再次 运行 MSI,它进入维护模式并再次显示欢迎对话框,然后您再次选择复选框...

确保将属性声明为安全的。这往往是 属性 值未从 UI 迁移到安装程序服务的主要原因。