Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Nextcloud client installer restarts computer without prompt or warning #831

Closed
Normonator opened this issue Nov 14, 2018 · 37 comments

Comments

@Normonator
Copy link

Expected behaviour

Installation prompts to restart computer allowing user to save any ongoing work.

Actual behaviour

Installer restarts immediately after displaying Run Nextcloud prompt and does not allow clicking on finish before restarting.

Steps to reproduce

  1. Have older version of Visual C++ Redistributable (prompting vc installer to reboot if not suppressed)
  2. Install nextcloud client
  3. Computer restarts immediately, resulting possibly in lost work.

Client configuration

Client version:
2.5
Operating system:
Windows 10 1809 Build 17763.55 (up to date)
OS language:
English US
Installation path of client:
C:\Program Files (x86)\Nextcloud

Logs

Event Viewer entry:
The process C:\Program Files (x86)\Nextcloud\i18n\vcredist_x64.exe (COMPUTERNAME) has initiated the restart of computer COMPUTERNAME on behalf of user USERNAME for the following reason: Application: Installation (Planned)
Reason Code: 0x80040002
Shutdown Type: restart
Comment:

@RiSK1979
Copy link

I experienced the same issue on two different Windows 10 computers.

@hillebr
Copy link

hillebr commented Nov 15, 2018

...same here on two different Windows 10 computers.

@JarbyDev
Copy link

Same Here, I tried on Windows 10 Computer and Windows Server 2016.

@pfeiferocks
Copy link

Same here on 2 Windows 10 Computers and i will not try it on Windows Server 2016.

@gr4ssi
Copy link

gr4ssi commented Nov 19, 2018

Wow, this sucks big time. Just had that too. Reason is, vcredist_x64.exe requests reboot without asking.

Vom Prozess "C:\Program Files (x86)\Nextcloud\i18n\vcredist_x64.exe (NB-xxx)" wurde auf Anforderung des Benutzers "NB-xxx\abc" das Ereignis "Neustart" für den Computer "NB-xxx" aus folgendem Grund initiiert: "Anwendung: Installiert (geplant)"
Ursachencode: "0x80040002"
Herunterfahrtyp: "Neustart"

This is definitely not expected behaviour for a desktop client. I almost put that on our server. :-(

@toms1342
Copy link

vcredist_x64.exe ignores/overwrites the "/norestart" switch of theNC 2.5.0 .msi client installer.

A fix of this behavior is highly appreciated for every admin how plans a rollout of the new client on productive machines.
Unfortunately we did not find a way to work around this.
Any help is welcome!

@Marcwa19197
Copy link

i have exactly the same issue on two windows 10 computers, really annoying.

@stephanhendl
Copy link

Same here with a couple of Windows 10 clients.

@Siedlerchr
Copy link

Siedlerchr commented Dec 7, 2018

I can confirm this bug with the latest release 2.5.1 on Windows 10 x64 .

@hillebr
Copy link

hillebr commented Dec 8, 2018

I can confirm this bug on a fresh installation with recent stable installer (2.5.1) on Win10 x64
An update from 2.5.0 to 2.5.1 won't restart the machine maybe because it rebooted on 2.5.0 installation and updating doesn`t change the vcredist_x64.exe.

HTH

René

@mioiox
Copy link

mioiox commented Jan 4, 2019

I can confirm the issue stays with the current version (2.5.1) of NC client (fresh install, Windows 10 1809 x64). Really annoying. Here is the event message from the System event log in English:

The process C:\Program Files (x86)\Nextcloud\i18n\vcredist_x64.exe (Computername) has initiated the restart of computer Computername on behalf of user Domain\Username for the following reason: Application: Installation (Planned)
Reason Code: 0x80040002
Shutdown Type: restart
Comment:

@Shorty-KS
Copy link

Ich habe zwar keine Lösung, aber einen funktionierenden Workaround:

Wie hier schon berichtet wurde, liegt das Problem an der Installation der vcredist_x64.exe, die den harten Neustart macht (Beim Nextcloud-2.5.1-setup wird automatisch die Version 14.14.26405.0 der der vcredist_x64 installiert). Installiert man aber vor dem Nextcloud-2.5.1-setup eine aktuellere Version der vcredist_x64.exe, erfolgt kein Neustart!

Eine neuere Version (14.16.27012.6) findet man z.B. hier:
https://support.microsoft.com/de-de/help/2977003/the-latest-supported-visual-c-downloads

Wenn man das ganze, so wie ich, per PowerShell App Deployment Toolkit macht, wäre die Reihenfolge also ungefähr so:

If ($ENV:PROCESSOR_ARCHITECTURE -eq "AMD64") {Execute-Process -Path 'VC_redist.x64.exe' -Parameters '/S /norestart'}

If ($ENV:PROCESSOR_ARCHITECTURE -eq "AMD64") {$ReturnCode = Execute-Process -Path 'Nextcloud-2.5.1-setup.exe' -Parameters '/S /norestart' -IgnoreExitCodes ‘1223’ -PassThru}

@chapb
Copy link

chapb commented Jan 22, 2019

Same problem here.

@jellykells
Copy link

Same issue on Windows 7 x64 SP1.

@oligu
Copy link

oligu commented Jan 23, 2019

Also experienced that issue.
Found out that when the Integration for Windows Explorer is deselected in the installer, there is no reboot.

@moorsey
Copy link

moorsey commented Jan 24, 2019

Duplicates of this #496 and #1040

@camilasan
Copy link
Member

Hi All!
Please, try this installer: https://download.nextcloud.com/desktop/daily/Windows/Nextcloud-2.5.1.5037-daily-20190125.exe
Let me know if it works for you!
Thanks @gr4ssi for the help!

@camilasan
Copy link
Member

Yet, it needs to reboot before for the Windows Explorer integration to work!

@gr4ssi
Copy link

gr4ssi commented Jan 25, 2019

Works for me on nearly naked Win7 DE 64Bit Prof. Thanks for updating the client. :-)

@dennisTGC
Copy link

Same with the technical preview. Maybe you should update that

On Windows 2016 and Windows 10.

@Fortyseven
Copy link

Thankfully, VirtualBox actually saved it's state before the reboot could finish, otherwise I might have lost some work this morning, in addition to the disruption. This is awful behavior.

@jellykells
Copy link

Hi All!
Please, try this installer: https://download.nextcloud.com/desktop/daily/Windows/Nextcloud-2.5.1.5037-daily-20190125.exe
Let me know if it works for you!
Thanks @gr4ssi for the help!

Works for me :-)

@burner-
Copy link

burner- commented Mar 26, 2019

I just take installer from https://nextcloud.com/install/#install-clients for fresh install. And it restarted computer without any warning.
"The process C:\Program Files (x86)\Nextcloud\i18n\vcredist_x64.exe (PC2) has initiated the restart of computer PC2 on behalf of user PC2\user for the following reason: Application: Installation (Planned)"

@xrammit
Copy link

xrammit commented Mar 26, 2019

A new client version (2.5.2) was released but the Nextcloud website havn't been updated yet.
@camilasan Can you please ask the website maintainer to update the link to point to the new version?

@affinityv
Copy link

@xrammit 2.5.1 is the latest actual release. There is a newer tag for 2.5.2, but it isn't released yet.

https://github.com/nextcloud/desktop/releases

@xrammit
Copy link

xrammit commented Mar 26, 2019

@xrammit 2.5.1 is the latest actual release. There is a newer tag for 2.5.2, but it isn't released yet.

No, in my opinion version 2.5.2 was already released as there are (stable) binaries available on nextcloud.com for all platforms [1] and the new version was also published on the stable Nextcloud desktop client PPA [2].

[1] https://download.nextcloud.com/desktop/releases/
[2] https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client

@e-alfred
Copy link

e-alfred commented Jun 9, 2019

Yet, it needs to reboot before for the Windows Explorer integration to work!

Is a reboot really needed? Couldn't it be done by killing/restarting the Explore.exe process to enable the integration into the Windows Explorer instead of a sudden reboot?

@dennisTGC
Copy link

Is a reboot really needed? Couldn't it be done by killing/restarting the Explore.exe process to enable the integration into the Windows Explorer instead of a sudden reboot?

The shell of windows is dependent on explorer.exe. Or actually explorer starts the shell (windows desktop) as you know it. So restarting explorer restarts your shell, which can gives weird issues as not all running apps can handle that.

Its also the reason bad explorer plugins could take down whole windows shell.

At least, this is how its been since windows 95, some of the newer builds of win10 might handle stuff differently, although i doubt it.

Anyway, a reboot for explorer integration isn’t that bad in my opinion. Windows needs lots of restarts anyway so one more isnt that bad in my opinion.

@jernejs
Copy link

jernejs commented Jun 9, 2019

I know several programs that simply restart explorer.exe to get the shell extensions to load, and AFAIK, WinRAR uses some method to reload the extensions without doing anything visible to Explorer at all.

Windows needs lots of restarts anyway so one more isnt that bad in my opinion.

What? This hasn't been true at all for years. Except for the updates, there's no need to reboot Windows nowadays at all.

@jancborchardt
Copy link
Member

Was confirmed above to be fixed, by @jellykells at #831 (comment) → closing hence. :)

@RadioactiveTapir
Copy link

Problem still exists. Installer Nextcloud-3.5.0-x64.msi.

@jancborchardt
Copy link
Member

@RadioactiveTapir sincw the original issue is several years old, it is likely a different underlying issue. Could you open a new issue, filling out the issue template and provide logs to help debug the issue? Thanks

@Tower195
Copy link

It happened again to me today, with Nextcloud update to version 3.5.1 on Windows 10 x64 . Hard to believe this is allowed to happen...

@gr4ssi
Copy link

gr4ssi commented May 23, 2022 via email

@juliannoble
Copy link

I know this is an old issue - but it's still happening, and still surprising.
This discourages regular updating and as such is bad for security.

@13xforever
Copy link

13xforever commented Jul 11, 2022

why is this issue closed when it's still...an issue.

not only does it restart the system without any prompt, it also shuts down any application registered with restart manager.

this is completely unacceptable behavior, at the very least Update & restart button should prompt with details before proceeding.

@moorsey
Copy link

moorsey commented Jul 11, 2022

@13xforever As per comment about, fresh bug has been requested

Looks like there are some other tickets #4305 #3551 #4377 Suggest following there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests