ChangemakerStudios / Papercut-SMTP

Papercut SMTP -- The Simple Desktop Email Server
2.92k stars 269 forks source link

0x80070490 - Element not found installation error on Windows 11 #225

Open theodorejb opened 2 years ago

theodorejb commented 2 years ago

I just did a clean install of Windows 11, with all Windows updates installed. When I try to install Papercut SMTP v6.2.0 the setup fails with this error:

One or more issues caused the setup to fail. Please fix the issues and then retry setup. For more information see the log file.

0x80070490 - Element not found.

Log file:

[2A88:11F8][2022-06-09T13:18:10]i001: Burn v3.11.2.4516, Windows v10.0 (Build 22000: Service Pack 0), path: C:\Users\THEODO~1\AppData\Local\Temp\{8868E0A9-4B82-4C02-A559-5ED3D1581DFF}\.cr\Papercut.Smtp.Setup.exe
[2A88:11F8][2022-06-09T13:18:10]i000: Initializing string variable 'InstallFolder' to value '[ProgramFiles6432Folder]Changemaker Studios\Papercut SMTP'
[2A88:11F8][2022-06-09T13:18:10]i000: Initializing string variable 'CommonDataFolder' to value '[CommonAppDataFolder]Changemaker Studios\Papercut SMTP'
[2A88:11F8][2022-06-09T13:18:10]i009: Command Line: '-burn.clean.room=C:\Users\Theodore\Downloads\Papercut.Smtp.Setup.exe -burn.filehandle.attached=592 -burn.filehandle.self=712'
[2A88:11F8][2022-06-09T13:18:10]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Theodore\Downloads\Papercut.Smtp.Setup.exe'
[2A88:11F8][2022-06-09T13:18:10]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\Theodore\Downloads\'
[2A88:11F8][2022-06-09T13:18:10]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\THEODO~1\AppData\Local\Temp\Papercut_SMTP_20220609131810.log'
[2A88:11F8][2022-06-09T13:18:10]i000: Setting string variable 'WixBundleName' to value 'Papercut SMTP'
[2A88:11F8][2022-06-09T13:18:10]i000: Setting string variable 'WixBundleManufacturer' to value 'Changemaker Studios'
[2A88:11A4][2022-06-09T13:18:10]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[2A88:11A4][2022-06-09T13:18:10]i000: Setting version variable 'WixBundleFileVersion' to value '1.0.723.0'
[2A88:11F8][2022-06-09T13:18:10]i100: Detect begin, 3 packages
[2A88:11F8][2022-06-09T13:18:10]i000: Setting string variable 'NETFRAMEWORK45' to value '528449'
[2A88:11F8][2022-06-09T13:18:10]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}'
[2A88:11F8][2022-06-09T13:18:10]i000: Setting numeric variable 'WVRTInstalledCheckTwo' to value 0
[2A88:11F8][2022-06-09T13:18:10]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}'
[2A88:11F8][2022-06-09T13:18:10]i000: Setting numeric variable 'WVRTInstalledCheckOne' to value 0
[2A88:11F8][2022-06-09T13:18:10]i052: Condition 'NETFRAMEWORK45 >= 528040' evaluates to true.
[2A88:11F8][2022-06-09T13:18:10]i101: Detected package: NetFx48Web, state: Present, cached: None
[2A88:11F8][2022-06-09T13:18:10]i101: Detected package: DownloadAndInvokeBootstrapper, state: Absent, cached: None
[2A88:11F8][2022-06-09T13:18:10]i101: Detected package: PapercutMsi, state: Absent, cached: None
[2A88:11F8][2022-06-09T13:18:10]i199: Detect complete, result: 0x0
[2A88:11A4][2022-06-09T13:18:13]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 0
[2A88:11A4][2022-06-09T13:18:15]i000: Setting string variable 'InstallFolder' to value 'C:\Program Files\Changemaker Studios\Papercut SMTP'
[2A88:11A4][2022-06-09T13:18:16]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 0
[2A88:11F8][2022-06-09T13:18:16]i200: Plan begin, 3 packages, action: Install
[2A88:11F8][2022-06-09T13:18:16]w321: Skipping dependency registration on package with no dependency providers: NetFx48Web
[2A88:11F8][2022-06-09T13:18:16]i052: Condition 'NOT (REMOVE OR WVRTInstalledCheckOne OR WVRTInstalledCheckTwo)' evaluates to true.
[2A88:11F8][2022-06-09T13:18:16]w321: Skipping dependency registration on package with no dependency providers: DownloadAndInvokeBootstrapper
[2A88:11F8][2022-06-09T13:18:16]i000: Setting string variable 'WixBundleLog_DownloadAndInvokeBootstrapper' to value 'C:\Users\THEODO~1\AppData\Local\Temp\Papercut_SMTP_20220609131810_000_DownloadAndInvokeBootstrapper.log'
[2A88:11F8][2022-06-09T13:18:16]i000: Setting string variable 'WixBundleRollbackLog_DownloadAndInvokeBootstrapper' to value 'C:\Users\THEODO~1\AppData\Local\Temp\Papercut_SMTP_20220609131810_000_DownloadAndInvokeBootstrapper_rollback.log'
[2A88:11F8][2022-06-09T13:18:16]i000: Setting string variable 'WixBundleRollbackLog_PapercutMsi' to value 'C:\Users\THEODO~1\AppData\Local\Temp\Papercut_SMTP_20220609131810_001_PapercutMsi_rollback.log'
[2A88:11F8][2022-06-09T13:18:16]i000: Setting string variable 'WixBundleLog_PapercutMsi' to value 'C:\Users\THEODO~1\AppData\Local\Temp\Papercut_SMTP_20220609131810_001_PapercutMsi.log'
[2A88:11F8][2022-06-09T13:18:16]i201: Planned package: NetFx48Web, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[2A88:11F8][2022-06-09T13:18:16]i201: Planned package: DownloadAndInvokeBootstrapper, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: Yes, dependency: None
[2A88:11F8][2022-06-09T13:18:16]i201: Planned package: PapercutMsi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[2A88:11F8][2022-06-09T13:18:16]i299: Plan complete, result: 0x0
[2A88:11F8][2022-06-09T13:18:16]i300: Apply begin
[2A88:11F8][2022-06-09T13:18:16]i010: Launching elevated engine process.
[2A88:11F8][2022-06-09T13:18:17]i011: Launched elevated engine process.
[2A88:11F8][2022-06-09T13:18:17]i012: Connected to elevated engine.
[3FE4:1264][2022-06-09T13:18:17]i358: Pausing automatic updates.
[3FE4:1264][2022-06-09T13:18:17]i359: Paused automatic updates.
[3FE4:1264][2022-06-09T13:18:17]i360: Creating a system restore point.
[3FE4:1264][2022-06-09T13:18:18]w363: Could not create system restore point, error: 0x80070422. Continuing...
[3FE4:1264][2022-06-09T13:18:18]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{333217d4-ef7e-4b28-b135-5d5181f0c9d2}, options: 0x7, disable resume: No
[3FE4:1264][2022-06-09T13:18:18]i000: Caching bundle from: 'C:\Users\THEODO~1\AppData\Local\Temp\{F583514D-E73F-4065-A447-9588691F2AC7}\.be\Papercut.Smtp.Setup.exe' to: 'C:\ProgramData\Package Cache\{333217d4-ef7e-4b28-b135-5d5181f0c9d2}\Papercut.Smtp.Setup.exe'
[3FE4:1264][2022-06-09T13:18:18]i320: Registering bundle dependency provider: {333217d4-ef7e-4b28-b135-5d5181f0c9d2}, version: 1.0.723.0
[3FE4:1264][2022-06-09T13:18:18]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{333217d4-ef7e-4b28-b135-5d5181f0c9d2}, resume: Active, restart initiated: No, disable resume: No
[2A88:1E44][2022-06-09T13:18:18]w343: Prompt for source of package: DownloadAndInvokeBootstrapper, payload: DownloadAndInvokeBootstrapper, path: C:\Users\Theodore\Downloads\Install WebView2 Runtime
[2A88:1E44][2022-06-09T13:18:18]i338: Acquiring package: DownloadAndInvokeBootstrapper, payload: DownloadAndInvokeBootstrapper, download from: https://go.microsoft.com/fwlink/p/?LinkId=2124703
[3FE4:065C][2022-06-09T13:18:19]e000: Error 0x80070490: Failed to find expected public key in certificate chain.
[3FE4:065C][2022-06-09T13:18:19]e000: Error 0x80070490: Failed to verify expected payload against actual certificate chain.
[3FE4:065C][2022-06-09T13:18:19]e000: Error 0x80070490: Failed to verify signature of payload: DownloadAndInvokeBootstrapper
[3FE4:065C][2022-06-09T13:18:19]e310: Failed to verify payload: DownloadAndInvokeBootstrapper at path: C:\ProgramData\Package Cache\.unverified\DownloadAndInvokeBootstrapper, error: 0x80070490. Deleting file.
[3FE4:065C][2022-06-09T13:18:19]e000: Error 0x80070490: Failed to cache payload: DownloadAndInvokeBootstrapper
[2A88:1E44][2022-06-09T13:18:19]e314: Failed to cache payload: DownloadAndInvokeBootstrapper from working path: C:\Users\THEODO~1\AppData\Local\Temp\{F583514D-E73F-4065-A447-9588691F2AC7}\DownloadAndInvokeBootstrapper, error: 0x80070490.
[2A88:1E44][2022-06-09T13:18:19]e349: Application requested retry of payload: DownloadAndInvokeBootstrapper, encountered error: 0x80070490. Retrying...
[2A88:1E44][2022-06-09T13:18:19]w343: Prompt for source of package: DownloadAndInvokeBootstrapper, payload: DownloadAndInvokeBootstrapper, path: C:\Users\Theodore\Downloads\Install WebView2 Runtime
[2A88:1E44][2022-06-09T13:18:22]i338: Acquiring package: DownloadAndInvokeBootstrapper, payload: DownloadAndInvokeBootstrapper, download from: https://go.microsoft.com/fwlink/p/?LinkId=2124703
[3FE4:065C][2022-06-09T13:18:23]e000: Error 0x80070490: Failed to find expected public key in certificate chain.
[3FE4:065C][2022-06-09T13:18:23]e000: Error 0x80070490: Failed to verify expected payload against actual certificate chain.
[3FE4:065C][2022-06-09T13:18:23]e000: Error 0x80070490: Failed to verify signature of payload: DownloadAndInvokeBootstrapper
[3FE4:065C][2022-06-09T13:18:23]e310: Failed to verify payload: DownloadAndInvokeBootstrapper at path: C:\ProgramData\Package Cache\.unverified\DownloadAndInvokeBootstrapper, error: 0x80070490. Deleting file.
[3FE4:065C][2022-06-09T13:18:23]e000: Error 0x80070490: Failed to cache payload: DownloadAndInvokeBootstrapper
[2A88:1E44][2022-06-09T13:18:23]e314: Failed to cache payload: DownloadAndInvokeBootstrapper from working path: C:\Users\THEODO~1\AppData\Local\Temp\{F583514D-E73F-4065-A447-9588691F2AC7}\DownloadAndInvokeBootstrapper, error: 0x80070490.
[2A88:1E44][2022-06-09T13:18:23]e349: Application requested retry of payload: DownloadAndInvokeBootstrapper, encountered error: 0x80070490. Retrying...
[2A88:1E44][2022-06-09T13:18:23]w343: Prompt for source of package: DownloadAndInvokeBootstrapper, payload: DownloadAndInvokeBootstrapper, path: C:\Users\Theodore\Downloads\Install WebView2 Runtime
[2A88:1E44][2022-06-09T13:18:26]i338: Acquiring package: DownloadAndInvokeBootstrapper, payload: DownloadAndInvokeBootstrapper, download from: https://go.microsoft.com/fwlink/p/?LinkId=2124703
[3FE4:065C][2022-06-09T13:18:27]e000: Error 0x80070490: Failed to find expected public key in certificate chain.
[3FE4:065C][2022-06-09T13:18:27]e000: Error 0x80070490: Failed to verify expected payload against actual certificate chain.
[3FE4:065C][2022-06-09T13:18:27]e000: Error 0x80070490: Failed to verify signature of payload: DownloadAndInvokeBootstrapper
[3FE4:065C][2022-06-09T13:18:27]e310: Failed to verify payload: DownloadAndInvokeBootstrapper at path: C:\ProgramData\Package Cache\.unverified\DownloadAndInvokeBootstrapper, error: 0x80070490. Deleting file.
[3FE4:065C][2022-06-09T13:18:27]e000: Error 0x80070490: Failed to cache payload: DownloadAndInvokeBootstrapper
[2A88:1E44][2022-06-09T13:18:27]e314: Failed to cache payload: DownloadAndInvokeBootstrapper from working path: C:\Users\THEODO~1\AppData\Local\Temp\{F583514D-E73F-4065-A447-9588691F2AC7}\DownloadAndInvokeBootstrapper, error: 0x80070490.
[2A88:11F8][2022-06-09T13:18:27]e000: Error 0x80070490: Failed while caching, aborting execution.
[3FE4:1264][2022-06-09T13:18:27]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{333217d4-ef7e-4b28-b135-5d5181f0c9d2}, resume: None, restart: None, disable resume: No
[3FE4:1264][2022-06-09T13:18:27]i330: Removed bundle dependency provider: {333217d4-ef7e-4b28-b135-5d5181f0c9d2}
[3FE4:1264][2022-06-09T13:18:27]i352: Removing cached bundle: {333217d4-ef7e-4b28-b135-5d5181f0c9d2}, from path: C:\ProgramData\Package Cache\{333217d4-ef7e-4b28-b135-5d5181f0c9d2}\
[3FE4:1264][2022-06-09T13:18:27]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{333217d4-ef7e-4b28-b135-5d5181f0c9d2}, resume: None, restart initiated: No, disable resume: No
[2A88:11F8][2022-06-09T13:18:27]i399: Apply complete, result: 0x80070490, restart: None, ba requested restart:  No

Expected behavior Setup should complete without errors.

theodorejb commented 2 years ago

The installation works if I first download and install MicrosoftEdgeWebview2Setup.exe via https://go.microsoft.com/fwlink/p/?LinkId=2124703.

But I still think this is a bug in the Papercut-SMTP installer that should be fixed.

Jaben commented 2 years ago

I'm installing Windows 11 finally so I'll test this locally here in the next week.

Anathae commented 2 years ago

I'd just like to add a data point. I am getting the same issue when installing on "Windows Server 2019 Standard". installing the Microsoft Edge Webview 2 Setup seems to resolve it.

kgwood39 commented 7 months ago

The link https://go.microsoft.com/fwlink/p/?LinkId=2124703 leads to the installer. Installing this did resolve my installation issue on Windows Server 2012.

It appears that just having Microsoft Edge installed does not address the dependency. If the Microsoft Edge Webview2 is a prerequisite it should at least be documented (maybe it is somewhere) and the setup program should check it as a system dependency.

Jaben commented 7 months ago

Anyone can take the reins with the installer system. I hate it -- massive time suck -- it's pretty much the whole reason I stopped working on the project. I don't have the time to do it.

kgwood39 commented 7 months ago

I know the feeling. All the installer tech is ridiculously expensive or crappy like Wix.

Thank you for what you have done, I just started using it and it's very useful, better than smtp4dev since it renders the email.

Maybe just keep it simple and put something on the readme about installing the Webview dependency on the home page so people know what to do when they are tripped up by the missing dependency.