sumatrapdfreader / sumatrapdf

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

Installation failed (fast install does not elevate) #4339

Closed miloush closed 2 months ago

miloush commented 3 months ago

SumatraPDF version

Describe the bug image

To Reproduce This is auto-update from v3.6.16318.

Expected behavior Installation to succeed or provide more information about the failure. Are there any logs somewhere?

miloush commented 3 months ago

Also unlike previous updates, it didn't ask me for user vs machine installation. My current installation is machine and there was no attempt to elevate.

GitHubRulesOK commented 3 months ago

Hmmm if installed there should be a log so unsure if one was correctly written?

When you say machine installation I presume All Users in C:\Program Files ?

Your own personal appdata folder will be where installation logging goes %localappdata%\sumatra-log.txt there should also potentially be a log in %LocalAppData%\SumatraPDF-data folder and potentially personal files in %LocalAppData%\SumatraPDF !!

miloush commented 3 months ago

There is no sumatra-log.txt on my computer and there is no %LocalAppData%\SumatraPDF-data folder. Don't see any logs in %LocalAppData%\SumatraPDF.

Yes, it's installed in C:\Program Files\SumatraPDF\SumatraPDF.exe. I think there is a high chance that the error is due to the installer not elevating.

GitHubRulesOK commented 3 months ago

Hmm normally when an already installed version is found the dialog recognises that and prompts (as you seem to recollect) like this, But at that time no log has been started. So I wonder if it was a poor download ? image

Once you click for all users then elevation shields pop up image

it is only then I notice a log in %localappdata%\SumatraPDF-data

miloush commented 3 months ago

I don't get any of these options, it just starts silently installing and fails.

miloush commented 3 months ago

Apparently it's run with -fast-install argument.

miloush commented 3 months ago

Seems new: https://github.com/sumatrapdfreader/sumatrapdf/commit/fa8ee9447eb54d42489345e440b0a8be89b53a96

GitHubRulesOK commented 3 months ago

hmmm -fast-install : automatically starts installation with default options` that was news to me :-)

Also now you point it out you said

To Reproduce This is auto-update from v3.6.16318.

had not spotted that addition so presumably tied into updating but I always click the EXE ! as auto update can cause me some issues with multiple historic installs on this old kit.

GitHubRulesOK commented 3 months ago

@kjk I had updated an old windows 64bit screen tablet device (slower than this 32bit steam driven pile driver, but touch screen is smoooth :-)

Anyway the first update seemed to work a few days ago (using the legacy update) However today trying to updat just a few days later I get the above described problem a blank yellow screen and checking the temp directory see lots of failed a temps so need to run by double click ! image