[wix-users] Restart with Standard user as opposed to Admin user.

Rob Mensching rob at firegiant.com
Thu May 26 08:37:40 PDT 2016


Don't execute the restart yourself. Tell the engine you want a force restart by returning restart required.

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Nick Ball
Sent: Thursday, May 26, 2016 8:16 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Restart with Standard user as opposed to Admin user.

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



More information about the wix-users mailing list