Very mysterious. The next build of the WiX toolset (Monday) will have even more logging around restart. Can you retry your scenarios with that and share the log file to diagnose further?
On Tue, Mar 13, 2012 at 7:24 AM, Vadym Verba <vve...@sdl.com> wrote: > Hello. > > I spend a lot of time in attempt to make my C# BA to restart computer after > installation, but without any success. Native > 'WixStandardBootstrapperApplication.RtfLicense' seems to work fine, and I > didn't find in Wix sources any reasons why it doesn't work with my BA. I'm > sure I missed something and here I need your help, please ) > > Here is what my BA does: > > MainWindow.Model.Bootstrapper.Shutdown += OnShutDownHandler; ... > > private void OnShutDownHandler(object sender, ShutdownEventArgs e) > > { ... e.Result = Result.Restart; ... } > > > > Here is what 'WixStandardBootstrapperApplication.RtfLicense' does: > > virtual STDMETHODIMP_(int) OnShutdown() { > > int nResult = IDNOACTION; ... > > if (m_fRestartRequired) { > > if (m_fAllowRestart) { nResult = IDRESTART; } > > } ... > > return nResult; > > } > > Here is code in engine which calls OnShutdown: > > int nResult = pEngineState->userExperience.pUserExperience->OnShutdown(); > > if (IDRESTART == nResult) { > > LogId(REPORT_STANDARD, MSG_BA_REQUESTED_RESTART, > LoggingBoolToString(pEngineState->fRestart)); > > pEngineState->fRestart = TRUE; > > } > > Couldn't be more simple. But still I don't see 'MSG_BA_REQUESTED_RESTART' > message in logs (which is 'Bootstrapper application requested restart at > shutdown. Planned to restart already: '), and thus reboot is not performed > at > all. Result.Restart is of int 102 in Result enum, which is the same value > as > IDRESTART. I'm currently using Wix 3.6.2712. > > As usual I will be very very grateful for any hints here). > > > > Thx in advance. BR. > > Vadym. > > </pre> > <font face="arial" size="1" color="#736F6E"> > <b>SDL PLC confidential, all rights reserved.</b> > If you are not the intended recipient of this mail SDL requests and > requires that you delete it without acting upon or copying any of its > contents, and we further request that you advise us.<BR> > SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207.<BR> > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 > 7DY, UK. > </font> > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users