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

Burn installer launched by standard user cannot perform system restart even elevated at Apply #5499

Closed
octomata opened this issue Feb 21, 2017 · 2 comments · Fixed by wixtoolset/wix#241
Assignees
Milestone

Comments

@octomata
Copy link

octomata commented Feb 21, 2017

  • Which version of WiX are you building with?

3.10.3.3007

  • Which version of Visual Studio are you building with (if any)?

Visual Studio 2013

  • Which version of .NET are you building with?

.NET 4.5.2

  • If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?

Windows Server 2008 R2, Windows Server 2012 R2, Windows Server 2016

  • Describe the problem and the steps to reproduce it.

The burn bundle installer was created with a MBA and one exe package in the chain. If the exe package returns exitcode 3010, the bootstrapper application will return IDRESTART at OnShutdown().

If the machine is run using administrator account, the machine can be restarted.
If the machine is run on Windows workstation OS (e.g. windows 7) using standard user with UAC elevated at Apply, the machine can be restarted.
But if the machine is run on Windows server OS (e.g. windows 2012 R2) using standard user with UAC elevated at Apply, the machine cannot be restarted.

By default standard users has shutdown privilege available on windows workstation OS but not windows server OS.
But if the user has been granted shutdown user right through group policy, restart can be performed.

  • Describe the behavior you expected and how it differed from the actual behavior.

As the installer has been elevated, it is expected that the wix engine should be able to restart the machine if OnShutdown() returns IDRESTART.

The log is saying "Restarting Computer..." but the system does not restart.
And DebugView is showing
[2988] TraceError 0x80070005: Root failure at engine.cpp:886

@octomata octomata changed the title Burn installer launched by standard user cannot perform system restart even elevated Burn installer launched by standard user cannot perform system restart even elevated at Apply Feb 21, 2017
@barnson barnson added this to the v4.x milestone Feb 28, 2017
@vanni-giachin
Copy link

vanni-giachin commented Mar 18, 2020

@barnson I am facing the same exact behaviour even if the user is administrator on Windows Server 2019 only. I don't know if the error is the same on debug because I didn't try.
The reboot is triggered by the <ExitCode ... Behavior="forceReboot"/> statement on package (.Net Framework setup).
The burn is built by using the v3.11.2 binaries.
The workarounds are to run the burn installer As Adminsitrator or to reboot the machine manually.
The burn logs have WixBundleElevated = 1 then Exit code: 0x669, restarting: Yes and Restarting computer....

@vanni-giachin
Copy link

I opened a separate case since I found additional info, and the problem looks different: #6145

@rseanhall rseanhall self-assigned this Jul 22, 2022
@rseanhall rseanhall modified the milestones: v4.x, v4.0 Jul 22, 2022
@rseanhall rseanhall added this to To do in wix.4.0-preview.1 via automation Jul 22, 2022
wix.4.0-preview.1 automation moved this from To do to Done Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants