Running an upgrade we are consistently getting an error that prevents the upgrade from completing. It appears to be happening with the RemoveExistingProducts step. Logs are below(I've stripped out a good portion of the properties for brevity.):
MSI (s) (4C:5C) [00:16:09:963]: Skipping action: ReportSuccessCAHelper (condition is false)
MSI (s) (4C:5C) [00:16:09:963]: Skipping action: AI_DeleteLzma (condition is false)
MSI (s) (4C:5C) [00:16:09:963]: Doing action: InstallFinalize
Action start 0:16:09: InstallFinalize.
MSI (s) (4C:5C) [00:16:09:966]: User policy value 'DisableRollback' is 0
MSI (s) (4C:5C) [00:16:09:966]: Machine policy value 'DisableRollback' is 0
MSI (s) (4C:5C) [00:16:10:412]: Note: 1: 2318 2:
MSI (s) (4C:5C) [00:16:10:427]: Note: 1: 2318 2:
MSI (s) (4C:5C) [00:16:10:429]: Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 103, llSequenceNumber: 77, szDescription: "".
MSI (s) (4C:5C) [00:16:10:432]: The call to SRSetRestorePoint API succeeded. Returned status: 0.
MSI (s) (4C:5C) [00:16:10:432]: Unlocking Server
MSI (s) (4C:5C) [00:16:10:439]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Action ended 0:16:10: InstallFinalize. Return value 1.
MSI (s) (4C:5C) [00:16:10:443]: Skipping action: ScStartNabHospMon (condition is false)
MSI (s) (4C:5C) [00:16:10:443]: Doing action: AI_SecureProperty
Action start 0:16:10: AI_SecureProperty.
MSI (s) (4C:D4) [00:16:10:457]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIC306.tmp, Entrypoint: AddSecuredProp
CustomAction AI_SecureProperty returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 0:16:10: AI_SecureProperty. Return value 3.
Action ended 0:16:10: INSTALL. Return value 3.
Property(N): APPDIR = C:\Nabancard\NabHospMon\
Property(N): DiskPrompt = [1]
(Lists a bunch of properties)
Property(N): PrimaryVolumeSpaceRequired = 0
Property(N): PrimaryVolumeSpaceRemaining = 0
CustomAction returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 0:16:10: RemoveExistingProducts. Return value 3.
Action ended 0:16:10: INSTALL. Return value 3.
Property(S): APPDIR = C:\Nabancard\NabHospMon\
Property(S): DiskPrompt = [1]
(Lists a bunch of properties)
Property(S): OutOfNoRbDiskSpace = 0
Property(S): PrimaryVolumeSpaceAvailable = 9370432
Property(S): PrimaryVolumeSpaceRequired = 8164
Property(S): PrimaryVolumeSpaceRemaining = 9362268
Property(S): PrimaryVolumePath = C:
MSI (s) (4C:44) [00:16:11:090]: MainEngineThread is returning 1603
MSI (s) (4C:58) [00:16:11:095]: RESTART MANAGER: Session closed.
MSI (s) (4C:58) [00:16:11:098]: RESTART MANAGER: Session closed.
MSI (s) (4C:58) [00:16:11:100]: User policy value 'DisableRollback' is 0
MSI (s) (4C:58) [00:16:11:100]: Machine policy value 'DisableRollback' is 0
MSI (s) (4C:58) [00:16:11:100]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (4C:58) [00:16:11:101]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (4C:58) [00:16:11:101]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (4C:58) [00:16:11:103]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (4C:58) [00:16:11:103]: Restoring environment variables
MSI (s) (4C:58) [00:16:11:104]: Destroying RemoteAPI object.
MSI (s) (4C:D4) [00:16:11:104]: Custom Action Manager thread ending.
MSI (c) (C4:24) [00:16:11:123]: Back from server. Return value: 1603
MSI (c) (C4:24) [00:16:11:123]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (C4:24) [00:16:11:125]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 0:16:11: ExecuteAction. Return value 3.
=== Verbose logging stopped: 3/15/2022 0:16:11 ===
Action ended 0:15:43: ProgressDlg. Return value 1.
MSI (c) (B4:40) [00:15:43:499]: Note: 1: 2205 2: 3: AI_TempFile
MSI (c) (B4:40) [00:15:43:499]: Note: 1: 2228 2: 3: AI_TempFile 4: SELECT `Property` FROM `AI_TempFile`
MSI (c) (B4:40) [00:15:43:499]: Note: 1: 2262 2: AI_PreRequisite 3: -2147287038
MSI (c) (B4:40) [00:15:43:499]: Note: 1: 2205 2: 3: AI_XmlLocator
MSI (c) (B4:40) [00:15:43:499]: Note: 1: 2228 2: 3: AI_XmlLocator 4: SELECT `Property` FROM `AI_XmlLocator`
MSI (c) (B4:40) [00:15:43:569]: Note: 1: 2205 2: 3: AI_ChainedPackage
MSI (c) (B4:40) [00:15:43:569]: Note: 1: 2228 2: 3: AI_ChainedPackage 4: SELECT `ChainedPackage` FROM `AI_ChainedPackage`
MSI (c) (B4:40) [00:16:11:159]: Doing action: FatalError
Action start 0:16:11: FatalError.
Action ended 0:16:13: FatalError. Return value 1.
MSI (c) (B4:40) [00:16:13:453]: Doing action: AI_SHOW_LOG
Action start 0:16:13: AI_SHOW_LOG.
MSI (c) (B4:F8) [00:16:13:455]: Invoking remote custom action. DLL: C:\Users\mpande\AppData\Local\Temp\MSICEC0.tmp, Entrypoint: LaunchLogFile
Action ended 0:16:13: AI_SHOW_LOG. Return value 1.
MSI (c) (B4:40) [00:16:13:648]: Doing action: FatalError
Action start 0:16:13: FatalError.
Action ended 0:16:13: FatalError. Return value 2.
MSI (c) (B4:40) [00:16:13:650]: Note: 1: 2205 2: 3: Environment
MSI (c) (B4:40) [00:16:13:650]: Note: 1: 2228 2: 3: Environment 4: SELECT `Environment`,`Component_` FROM `Environment`
MSI (c) (B4:40) [00:16:13:733]: Destroying RemoteAPI object.
MSI (c) (B4:74) [00:16:13:766]: Custom Action Manager thread ending.
=== Verbose logging stopped: 3/15/2022 0:16:13 ===
My interpretation of this is that the uninstall is failing on the AI_SECURE_PROPERTY step, and then the subsequent install is not attempted. I had moved the AI_SECURE_PROPERTY to the end of the table actions to avoid encrypted values being used as described in this post (viewtopic.php?f=2&t=49914&p=125681#p125681)
Is my interpretation correct in that we are failing to uninstall correctly because of AI_SECURE_PROPERTY? If so how can we address this? Is there a way to make the upgrade bulldoze past the un-installation error and continue with the upgrade?