[wix-users] Restart with Standard user as opposed to Admin user.
Nick Ball
Nick.Ball at grantadesign.com
Thu May 26 08:15:48 PDT 2016
What seems to happen is the following:
1. 'standard' user logs in. They run the burn install.
2. Installer requests admin privileges and throws up a UAC prompt with an Admin log in request.
Accept the UAC with Admin credentials.
3. .Net framework gets installed and requests a restart.
I do this in OnExecutePackageComplete, by calling InvokeShutdown on the BoostrapperDispatcher.
In OnShutdown I return Result.Restart.
4. 'standard' user logs back in.
*This is the point where my installer doesn't restart*
5. If I log out and log in as the Admin user, then my installer *does* restart.
I expected the installer to restart on the standard user log in and then prompt for UAC etc again to continue the installation.
-Nick
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: 24 May 2016 13:19
To: wix-users at lists.wixtoolset.org
Subject: Re: [wix-users] Restart with Standard user as opposed to Admin user.
I handle a reboot in the middle of the chain, for the same reason, which I implemented by following the code in the WixStdBA, which also has this functionality. I think more detail as to what "this works, but not" means would be helpful. What do the logs indicate? If you create a similar test using the WixStdBA does it have the same "this works, but not" behavior? I and my QA group have not noticed ay issues in this area.
________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Nick Ball <Nick.Ball at grantadesign.com>
Sent: Wednesday, May 18, 2016 4:23:37 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Restart with Standard user as opposed to Admin user.
Hi All,
I've written a burn chainer that requires .Net framework and reportviewer. I've found that if the .Net framework says it requires a reboot, that this must happen before installing reportviewer, otherwise that component fails.
I handle this by checking restartrequired flag in OnExecutePackageComplete and forcing a restart there and then. In OnShutdown I'm returning Result.Restart if I need to restart.
I want the system to restart and my installer to continue after that restart. This works when logged in as Admin, but not when logged in as a standard user. How can I make this work?
-Nick
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list