[wpkg-users] Vista service

Michael Ugilt michael at ugilt.net
Thu Oct 30 19:16:32 CET 2008


Sorry - my fault (off course!) - I did not realize there's two separate
config files so I basically screwed up!

I got it running not in debug mode as expected 
2008-10-30 18:46:38, DEBUG   : Initialized temporary local log file:
C:\Users\ADMINI~1\AppData\Local\Temp\wpkg-logInit.log
2008-10-30 18:46:38, DEBUG   : Initializing new log file:
\\espresso\netlogon\\wpkg-laptp02.log
2008-10-30 18:46:39, DEBUG   : Reboot-Cmd is standard.
2008-10-30 18:46:39, DEBUG   : WPKG 1.1.0-M6 starting...
2008-10-30 18:46:39, DEBUG   : Base directory is '\\espresso\netlogon'.
2008-10-30 18:46:39, DEBUG   : Log level is 255
2008-10-30 18:46:39, DEBUG   : Trying to read XML file:
\\espresso\netlogon\profiles.xml
2008-10-30 18:46:39, DEBUG   : Successfully loaded XML file:
\\espresso\netlogon\profiles.xml
2008-10-30 18:46:39, DEBUG   : Trying to read XML files from directory:
\\espresso\netlogon\profiles
2008-10-30 18:46:39, DEBUG   : Specified XML directory does not exist:
\\espresso\netlogon\profiles
2008-10-30 18:46:39, DEBUG   : Trying to read XML file:
\\espresso\netlogon\hosts.xml
2008-10-30 18:46:39, DEBUG   : Successfully loaded XML file:
\\espresso\netlogon\hosts.xml
2008-10-30 18:46:39, DEBUG   : Trying to read XML files from directory:
\\espresso\netlogon\hosts
2008-10-30 18:46:39, DEBUG   : Specified XML directory does not exist:
\\espresso\netlogon\hosts
2008-10-30 18:46:39, DEBUG   : Trying to read XML file:
\\espresso\netlogon\packages.xml
2008-10-30 18:46:39, DEBUG   : Successfully loaded XML file:
\\espresso\netlogon\packages.xml
2008-10-30 18:46:39, DEBUG   : Trying to read XML files from directory:
\\espresso\netlogon\packages
2008-10-30 18:46:39, DEBUG   : Profiles applying to the current
host:|laptp02|
2008-10-30 18:46:39, DEBUG   : Reading settings file:
C:\Windows\system32\wpkg.xml
2008-10-30 18:46:39, DEBUG   : Trying to read XML file:
C:\Windows\system32\wpkg.xml
2008-10-30 18:46:39, DEBUG   : Successfully loaded XML file:
C:\Windows\system32\wpkg.xml
2008-10-30 18:46:39, DEBUG   : Hosts file contains 5
hosts:|wm-cmdb|divine|malles|laptp01|laptp02
2008-10-30 18:46:39, DEBUG   : Settings file contains 1 packages:|test
2008-10-30 18:46:39, DEBUG   : Packages file contains 8
packages:|TEMPLATE|test|sys-ctrl-panel1|Avast|AcrobatReader|iTunes|LiveMesse
nger|Office2007
2008-10-30 18:46:39, DEBUG   : Profile file contains 5
profiles:|test|default1|std-laptop|laptp01|laptp02
2008-10-30 18:46:39, DEBUG   : Using profile(s):|laptp02|
2008-10-30 18:46:39, DEBUG   : Getting profiles which apply to this node.
2008-10-30 18:46:39, DEBUG   : Applying profile: laptp02
2008-10-30 18:46:39, DEBUG   : Adding package with ID 'test' to profile
packages.
2008-10-30 18:46:39, DEBUG   : Found package node 'Test if WPKG can deploy
(test) in package database 
2008-10-30 18:46:39, DEBUG   : Synchronizing: Number of packages referenced
by profile: 1
2008-10-30 18:46:39, DEBUG   : Found installed package 'Test if WPKG can
deploy' (test).
2008-10-30 18:46:39, DEBUG   : Package 'Test if WPKG can deploy' (test)
found in profile packages.
2008-10-30 18:46:39, DEBUG   : Number of packages to remove: 0
2008-10-30 18:46:39, DEBUG   : Going to install package 'Test if WPKG can
deploy' (test), Revision 1, (execute flag is 'once', notify flag is 'true').
2008-10-30 18:46:39, DEBUG   : Package 'Test if WPKG can deploy' (test): Not
yet processed during this session.
2008-10-30 18:46:39, DEBUG   : Package 'Test if WPKG can deploy' (test):
Installed already.
2008-10-30 18:46:39, DEBUG   : Saving sorted settings to
'C:\Windows\system32\wpkg.xml'.
2008-10-30 18:46:39, DEBUG   : Adding settings node: 'Test if WPKG can
deploy' (test), Revision 1
2008-10-30 18:46:39, DEBUG   : Saving XML : C:\Windows\system32\wpkg.xml


But when booting I got an error that the network path is not found. Can it
be that my wifi is not initialized yet? - then how to delay launch until
avail?

Debug at boot time:
2008-10-30 18:50:08 -> Starting WPKG on startup
2008-10-30 18:50:08 -> Before create shared memory: successfuly done.
2008-10-30 18:50:08 -> Create shared memory: successfuly done.
2008-10-30 18:50:08 -> Set script security context: successfuly done.
2008-10-30 18:50:08 -> Network resource required
2008-10-30 18:50:09 -> WNetAddConnection2-> Netværksstien blev ikke fundet.
(translates to: Network path not found)
2008-10-30 18:50:09 -> Working done. Perform cleanup.
2008-10-30 18:50:09 -> Cleanup done.

thx

-----Oprindelig meddelelse-----
Fra: Tomasz Chmielewski [mailto:mangoo at wpkg.org] 
Sendt: 29. oktober 2008 16:48
Til: Michael Ugilt
Cc: wpkg-users at lists.wpkg.org
Emne: Re: [wpkg-users] Vista service

Michael Ugilt schrieb:
> I have now installed as admin and added this to the parameter string "
> /log_file_path:c:\" - the FAQ is however also referring to adding this
> entry: <param name='log_file_path' value='\\\\server\\share\\dir' /> -
what
> is the right one to use??

Did you read comments in config.xml?

* Path where the logfiles are written to. This might be an UNC path on the
* network as well as a local path. Environment variables are expanded.
* Default value      : "%TEMP%"
* Command-line switch: -


> I still don't get the service to run properly - here's entries from
eventlog
> 
> WPKG Service trying start...
> WPKG Service->RegisterServiceCtrlHandler: successfuly done
> WPKG Service->SERVICE_START_PENDING: successfuly done
> Starting WPKG on startup
> Before create shared memory: successfuly done.
> Create shared memory: successfuly done.
> Set script security context: successfuly done.
> Starting script action execution
> Script action execution done.
> Script execution: failure. Exit code: 1  <--- *** this I don't like!

Your script failed.

Run with GUI enabled, in verbose mode - see http://wpkg.org/FAQ


-- 
Tomasz Chmielewski





More information about the wpkg-users mailing list