[wpkg-users] WPKG - issues
Alex Owen
r.alex.owen at gmail.com
Wed Apr 4 19:52:47 CEST 2007
My settings.xml contains:
<parameters> /synchronize /rebootcmd:"shutdown.exe -r -t 20" </parameters>
But this does not work when the delayed logon is also active!
(windowsXP)
the shutdown.exe complains that the "device is not ready" or something similar.
looking at win32 API docs the solution is to try again in a bit. I
tried to make a batch script to repeatedly run the shutdown command
but that did not work either.
I have tried many thinngs today and think I have come to a solution
based on reading this:
http://wwwthep.physik.uni-mainz.de/~frink/newgina_pre09/readme.html
The idea is this:
(1) make wpkg.js set a registery key if it needs a reboot
(2) write a GINA stub that intercepts WlxDisplaySASNotice() and if the
wpkg-needs-reboot registery key is set then clear wpkg-needs-reboot
key and initiate a reboot.
Of course I have no proof that this will work but I think that the
system is effectivly "up" when
WlxDisplaySASNotice() is called.
The normal MSGINA can also shut the system down so I don't see why
this stub couldn't either.
Alex Owen
On 04/04/07, Tomasz Chmielewski <mangoo at wpkg.org> wrote:
> Alex Owen schrieb:
> > On 03/04/07, Tomasz Chmielewski <mangoo at wpkg.org> wrote:
> >> > On 03/04/07, Alex Owen <r.alex.owen at gmail.com> wrote:
> >> >> (2) the delayed login thing currently has a bug where WPKG can't
> >> reboot.
> >> >> I gather that (2) is being worked on.
> >> Yes.
> >> As a workaround, you can use an alternative reboot method (wpkg.js
> >> allows that: on XP use a shutdown.exe command bundled with a system, on
> >> 2000 a 3rd party tool of your choice).
> >
> > I can't seem to make this work... and it seem neither can you!
> > http://bugs.wpkg.org/show_bug.cgi?id=59#c1
> >
> > If anyone does have a working "reboot during delayed login" setup
> > please post some fool proof details!
>
> It doesn't work when reboot is initiated from within the wpkg.js.
>
> It should work if you use an external command for reboot; wpkg.js allows
> that.
>
>
> --
> Tomasz Chmielewski
> http://wpkg.org
>
More information about the wpkg-users
mailing list