Thanks for helping out!
I install the service by a login script from a samba share (KIX script)

LOGIN SCRIPT
============
;
; install wpkg as a service
;
if not exist("c:\programmer\wpkg\wpkgsrv.exe") 
        MESSAGEBOX ("Installerer WPKG...", "Info", 0, 10)
        SHELL "l:\wpkg-inst.bat"
        SHUTDOWN ("","Genstart af PC nødvendig...", 5, 1)
endif

; Make sure latest settings.xml is in use at next boot
SHELL "c:\programmer\wpkg\wpkginst --SETTINGSFILE=l:\settings.xml"


Wpkg.inst-bat
=============
echo Installing WPKG...
mkdir "c:\program files\wpkg" > nul:
COPY L:\wpkginst.exe "c:\program files\wpkg" > nul:
COPY L:\wpkglogon.dll "c:\program files\wpkg" > nul:
COPY L:\wpkgsrv.exe "c:\program files\wpkg" > nul:

c:\programmer\wpkg\wpkgsrv.exe /install
c:\programmer\wpkg\wpkginst --SETTINGSFILE=l:\settings.xml

I have attached my settings.xml

If I check the running processes after login I do not see wpkg service
running so my guess is that it's not launched during boot!?!?!

Digging into the windows eventviewer I see an error (translated) in the
lines of "Service WPKG is marked as inactive service. The system is not
configured to allow inactive services"

My eventviewer has some entries for WPKG - attached

Any clues?

Thx
Mike

-----Oprindelig meddelelse-----
Fra: Tomasz Chmielewski [mailto:[EMAIL PROTECTED] 
Sendt: 28. oktober 2008 19:14
Til: Michael Ugilt
Cc: [email protected]
Emne: Re: [wpkg-users] Vista service

Michael Ugilt schrieb:
> Have a couple of issues getting WPKG to run as a service under Vista.
> 
>  
> 
> In order to install service user needs to be administrator.
> 
> If administrator install then a “normal” user login will not trigger 
> wpkg, but running “wpkgsrv –debug” will deploy just fine!
> 
> If a user tries to install service I’m getting a “OpenSCManager failed – 
> Acces denied (0x5)”

How do you make the "install service" part?
Use WPKG Client, it's the easiest.


> So can someone please explain/guide on how to this properly -thx
> 
>  
> 
> How to set file_log_path?
> 
> Is <param name='log_file_path' value='\\\\server\\share\\dir' /> in the 
> settings.xml correct or is this outdated?

Set it to whatever path you have on your server.


> Also, is there a way to have the service display a message during boot 
> (like wpkgmessage) that a deployment is under way

Not under Vista.


-- 
Tomasz Chmielewski
http://wpkg.org

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<file>wpkg.js</file>
<path-user>Administrator</path-user>
<path-password>*****</path-password>
<exec-user>SYSTEM</exec-user>
<exec-password></exec-password>
<parameters>/synchronize /quiet /logLevel:7 /logfilePattern:wpkg-[HOSTNAME].log</parameters>
<silent>YES</silent>
<pre-action></pre-action>
<post-action></post-action>
<show-GUI>YES</show-GUI>
<logon-delay>0</logon-delay>
<logon-message-title>WPKG Software Deployment</logon-message-title>
<logon-message-1>WPKG is installing applications and applying settings...</logon-message-1>
<logon-message-2>Please wait, don't restart or power off your computer...</logon-message-2>
<priority>normal</priority>
<stop-service-after-done>NO</stop-service-after-done>
<laptop-mode>NO</laptop-mode>
<server-connecting-method>standard</server-connecting-method>
<server-connecting-ip></server-connecting-ip>
<server-connecting-timeout>3</server-connecting-timeout>
<server-connecting-script-timeout>3</server-connecting-script-timeout>
<server-connecting-script-file></server-connecting-script-file>
<log-file></log-file>
<param name='log_file_path' value='\\\\espresso\\netlogon' /> 
<run-on-shutdown>NO</run-on-shutdown>
<shutdown-delay>10</shutdown-delay>

</configuration>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Events><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:09.000Z'/><EventRecordID>779</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>Cleanup done.</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:09.000Z'/><EventRecordID>778</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>Working done. Perform cleanup.</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>2</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:09.000Z'/><EventRecordID>777</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>Script execution: failure. Exit code: 1</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:09.000Z'/><EventRecordID>776</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>Script action execution done.</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:08.000Z'/><EventRecordID>775</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>Starting script action execution</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:08.000Z'/><EventRecordID>774</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>Set script security context: successfuly done.</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:08.000Z'/><EventRecordID>773</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>Create shared memory: successfuly done.</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:08.000Z'/><EventRecordID>772</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>Before create shared memory: successfuly done.</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:08.000Z'/><EventRecordID>771</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>Starting WPKG on startup</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:08.000Z'/><EventRecordID>770</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>WPKG Service-&gt;SERVICE_START_PENDING: successfuly done</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:08.000Z'/><EventRecordID>769</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>WPKG Service-&gt;RegisterServiceCtrlHandler: successfuly done</Data></EventData></Event><Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='WpkgService'/><EventID Qualifiers='0'>1</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2008-10-28T19:53:08.000Z'/><EventRecordID>768</EventRecordID><Channel>Application</Channel><Computer>laptp01</Computer><Security/></System><EventData><Data>WPKG Service trying start...</Data></EventData></Event></Events>
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to