Re: [WiX-users] Burn: shedule reboot from Managed BA

2012-03-20 Thread Vadym Verba
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?

 

Wix 3.6.2719

 

OS 2003 SP2 x86, 2008 SP2 x86:

Apply complete, result: 0x0, restart: Required, ba requested restart:  No

Shutting down, exit code: 0x0

Shutting down, Result: Restart

Bootstrapper application requested restart at shutdown. Planned to restart
already: No.

...Variable dump...

Exit code: 0x0, restarting: Yes

Restarting computer...

 

OS 2008 R2:

Apply complete, result: 0x0, restart: Required, ba requested restart:  No

Shutting down, exit code: 0x0

Shutting down, Result: Restart

...Variable dump...

Exit code: 0x0, restarting: No

 

If you don't mind I reopen TT 3414392 and attach logs there.

/pre
font face=arial  size=1 color=#736F6E
bSDL 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
--
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


Re: [WiX-users] Burn: shedule reboot from Managed BA

2012-03-15 Thread Rob Mensching
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
 bSDL 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


[WiX-users] Burn: shedule reboot from Managed BA

2012-03-13 Thread Vadym Verba
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
bSDL 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