sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.71k stars 1.73k forks source link

Issue Installation within System Service with wpkg #2645

Open Newscp opened 2 years ago

Newscp commented 2 years ago

Here you are, this is the output of the log file:

------------- Starting SumatraPDF installation GetExistingInstallationDir() ReadRegStrTemp(HKEY_LOCAL_MACHINE, Software\Microsoft\Windows\CurrentVersion\Uninstall\SumatraPDF, InstallLocation) => '(null)' ReadRegStrTemp(HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Uninstall\SumatraPDF, InstallLocation) => '(null)' GetPreviousInstallInfo: not installed GetDefaultInstallationDir(forAllUsers=0, ignorePrev=0) using 'C:\Windows\system32\config\systemprofile\AppData\Local\SumatraPDF' from GetSpecialFolderTemp(CSIDL_LOCAL_APPDATA) Running'\\Share\Sumatra\SumatraPDF-prerel-64-install.exe' installing into dir 'C:\Windows\system32\config\systemprofile\AppData\Local\SumatraPDF' OpenEmbeddedFilesArchive: opened archive RunInstaller: gCli->runInstallNow = 0, gCli->withFilter = 0, gCli->withPreview = 0 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{55808EA8-81FE-43c6-AAE8-1D8149F941D3}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{55808EA8-81FE-43c6-AAE8-1D8149F941D3}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{26CA6565-F22A-4f5e-B688-0AD051D56E96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{26CA6565-F22A-4f5e-B688-0AD051D56E96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\PersistentHandler, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\PersistentHandler, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{3D3B1846-CC43-42AE-BFF9-D914083C2BA3}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{3D3B1846-CC43-42AE-BFF9-D914083C2BA3}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbz\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbz\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbz\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbz\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbz\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbz\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbr\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbr\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbr\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbr\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbr\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbr\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cb7\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2

I tried a clean install (no upgrade), too. There was no difference in the output.

kjk commented 2 years ago

Thanks.

Is this the whole log file? If yes, the installer seems to be crashing in the middle of UninstallPreviewDll which is weird.

Could you re-run with pre-release 15035 or newer and provide the log again? I've added even more logging to see what is happening.

What I can say so far:

If you're running this from a system process, then -all-users and a reasonable installation directory are a must. Without -all-user we write info to HKEY_CURRENT_USER, which is the system user of wpkg.

Newscp commented 2 years ago

Hi, i have to push the reset button after 5 minutes, because the installation routine hangs. That's why the log ends at that line. I used now the version 15052 with the following install syntax: "\\Share\Sumatra\SumatraPDF-prerel-64-install.exe" -d "%PROGRAMFILES%\SumatraPDF" -log -s -all-users'

This is the output of the log file (as I mentioned before, with reset/break after 5min waiting)

------------- Starting SumatraPDF installation GetExistingInstallationDir() ReadRegStrTemp(HKEY_LOCAL_MACHINE, Software\Microsoft\Windows\CurrentVersion\Uninstall\SumatraPDF, InstallLocation) => '(null)' ReadRegStrTemp(HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Uninstall\SumatraPDF, InstallLocation) => '(null)' GetPreviousInstallInfo: not installed Running'\Share\Sumatra\SumatraPDF-prerel-64-install.exe', cmdLine: '"\Share\Sumatra\SumatraPDF-prerel-64-install.exe" -d "C:\Program Files\SumatraPDF" -log -s -all-users', installing into dir 'C:\Program Files\SumatraPDF' OpenEmbeddedFilesArchive: opened archive RunInstaller: gClii->silent: 1, gCli->runInstallNow = 0, gCli->withFilter = 0, gCli->withPreview = 0 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{55808EA8-81FE-43c6-AAE8-1D8149F941D3}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{55808EA8-81FE-43c6-AAE8-1D8149F941D3}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{26CA6565-F22A-4f5e-B688-0AD051D56E96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{26CA6565-F22A-4f5e-B688-0AD051D56E96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\PersistentHandler, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\PersistentHandler, 0) => 2 After UninstallSearchFilter LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{3D3B1846-CC43-42AE-BFF9-D914083C2BA3}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{3D3B1846-CC43-42AE-BFF9-D914083C2BA3}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 UninstallPreviewDll: removed '.pdf' LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbz\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbz\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbz\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbz\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbz\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbz\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 UninstallPreviewDll: removed '.cbz' LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbr\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbr\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbr\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbr\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbr\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbr\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2

Newscp commented 2 years ago

I now tried a clean install, older version was deinstalled without the wpkg service, same result, but the log is shorter:

------------- Starting SumatraPDF installation GetExistingInstallationDir() ReadRegStrTemp(HKEY_LOCAL_MACHINE, Software\Microsoft\Windows\CurrentVersion\Uninstall\SumatraPDF, InstallLocation) => '(null)' ReadRegStrTemp(HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Uninstall\SumatraPDF, InstallLocation) => '(null)' GetPreviousInstallInfo: not installed Running'\Share\Sumatra\SumatraPDF-prerel-64-install.exe', cmdLine: '"\Share\Sumatra\SumatraPDF-prerel-64-install.exe" -d "C:\Program Files\SumatraPDF" -log -s -all-users', installing into dir 'C:\Program Files\SumatraPDF' OpenEmbeddedFilesArchive: opened archive RunInstaller: gClii->silent: 1, gCli->runInstallNow = 0, gCli->withFilter = 0, gCli->withPreview = 0 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{55808EA8-81FE-43c6-AAE8-1D8149F941D3}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{55808EA8-81FE-43c6-AAE8-1D8149F941D3}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{26CA6565-F22A-4f5e-B688-0AD051D56E96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{26CA6565-F22A-4f5e-B688-0AD051D56E96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\PersistentHandler, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\PersistentHandler, 0) => 2 After UninstallSearchFilter LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{3D3B1846-CC43-42AE-BFF9-D914083C2BA3}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{3D3B1846-CC43-42AE-BFF9-D914083C2BA3}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.pdf\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.pdf\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 UninstallPreviewDll: removed '.pdf' LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbz\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbz\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbz\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbz\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbz\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbz\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 UninstallPreviewDll: removed '.cbz' LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes\CLSID{C29D3E2B-8FF6-4033-A4E8-54221D859D74}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbr\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbr\shellex{e357fccd-a995-4576-b01f-234630154e96}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbr\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbr\shellex{bb2e617c-0920-11d1-9a0b-00c04fc2d6c1}, 0) => 2 LoggedDeleteRegKey(HKEY_LOCAL_MACHINE, Software\Classes.cbr\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2 LoggedDeleteRegKey(HKEY_CURRENT_USER, Software\Classes.cbr\shellex{8895b1c6-b41f-4c1c-a562-0d564250836f}, 0) => 2

kjk commented 2 years ago

If that's really the whole log the I have no explanation. The installer seems to hang in the middle of UninstallPreviewDll. I have no idea why it would happen and I ran out of ideas on how to test it.

AzotWork commented 11 months ago

It's working in WPKG <install timeout = '120' cmd='powershell -command (%PKG_SOURCE%\%PKG_NAME% %PKG_INSTALL_SWITCH%)'/>