Discussion:
[wpkg-users] WPKG runningstate not working?
Nils Thiele
2016-09-22 08:55:42 UTC
Permalink
Hey,

Currently working on wpkg-gp client and thought about implemented a
check to not accidentially run wpkg twice at the same time

(checking for updates while also running a synchronisation or if another
user logged on is running something)

I stumbled upon the wpkg registry key that should display if it is
running but i have tested this now quite a few times and the value of
"running" won't change to true if its executed through wpkg-gp r
manually, i checked the wpkg config but it should display.

Just wondering if this is working for anyone else because i could only
check this on one system.

If it is in fact broken, i think i implement this into wpkg-gp.

Thanks!

Greetings,

Nils
--
IT-Support - Fachbereich 09 Kulturgeschichte und Kulturkunde
Universität Hamburg
Flügelbau West, R. 204
Edmund-Siemers-Allee 1
D-20146 Hamburg
Tel.: +49-40-42838-3024
Email: ***@uni-hamburg.de

---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
h***@horiba.com
2016-09-22 09:05:35 UTC
Permalink
Hello Nils,

you're right. there is no code in wpkg.js that will set runningstate to
true.

but it will get set to false (in function reboot() and exit() )

i don't know if this is a bug or deliberate though... but you can set it
before starting wpkg.js and it will set it to false on exit. As wpkg.js
never checks or reads it (it only writes) this should work.

Best Regards
Heiko



From: Nils Thiele <***@uni-hamburg.de>
To: WPKG-Mailinglist <wpkg-***@lists.wpkg.org>
Date: 22.09.2016 10:55
Subject: [wpkg-users] WPKG runningstate not working?
Sent by: "wpkg-users" <wpkg-users-***@lists.wpkg.org>



Hey,

Currently working on wpkg-gp client and thought about implemented a
check to not accidentially run wpkg twice at the same time

(checking for updates while also running a synchronisation or if another
user logged on is running something)

I stumbled upon the wpkg registry key that should display if it is
running but i have tested this now quite a few times and the value of
"running" won't change to true if its executed through wpkg-gp r
manually, i checked the wpkg config but it should display.

Just wondering if this is working for anyone else because i could only
check this on one system.

If it is in fact broken, i think i implement this into wpkg-gp.

Thanks!

Greetings,

Nils
--
IT-Support - Fachbereich 09 Kulturgeschichte und Kulturkunde
Universität Hamburg
Flügelbau West, R. 204
Edmund-Siemers-Allee 1
D-20146 Hamburg
Tel.: +49-40-42838-3024
Email: ***@uni-hamburg.de

---------------------------------
wpkg-users mailing list archives >>
http://lists.wpkg.org/pipermail/wpkg-users/
Rainer Meier
2016-10-22 21:04:19 UTC
Permalink
Hi Nils
Post by Nils Thiele
I stumbled upon the wpkg registry key that should display if it is
running but i have tested this now quite a few times and the value of
"running" won't change to true if its executed through wpkg-gp r
manually, i checked the wpkg config but it should display.
Just wondering if this is working for anyone else because i could only
check this on one system.
I think this is a bug. The code to set the running state must have been
lost some when during development. I have just committed an update
including a fix for this:


Changes 2016-10-22, v1.3.2-RC2 by Rainer Meier <r.meier (at) wpkg.org>
FIX: Forcing OS to write logfile in Unicode to fix exception 800a0005 when
writing unicode characters to the log on OS with non-unicode
application
settings set to languages like "Chinese (Hong Kong SAR)".
Fixes bug 291. Thanks to "isd".
FIX: Setting running state in registry (HKLM\Software\WPKG\running)) on WPKG
startup.
Thanks to Niels Thiele for reporting this on the mailing list.



WPKG 1.3.2-RC2 has not been released yet. Though you can get the latest
wpkg.js from Sourceforge:

<https://sourceforge.net/p/wpkg/code/HEAD/tree/wpkg/stable/src/main/resources/wpkg/wpkg.js>
(Download it using the "Download this file" link on top of the page.


Thanks for reporting.

best regards,
Rainer
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Loading...