[wpkg-users] What is best way to have WPKG notify me that all packages are installed?
Stefan Pendl
stefan.pendl.71 at gmail.com
Wed Dec 4 22:50:49 CET 2013
Am 04.12.2013 22:15, schrieb Falko Trojahn:
> Carlos Gomes - STI Unesp Franca --> 04.12.2013 21:49:
>> well, I tryed to change on the settings file for creatint eht installer,
>> but the parameter /loglevel:<32> would break the xml... Can anyone
>> please send an example of the config.xml file with some log levels
>> setted up?
I am using the following in a batch file, but if you are lucky and have
only XP clients, you can do this by the pre and port scripts too in the
WPKG client.
'---code start (watch for line wraps)
echo.
call "%WPKG_ROOT%\tools\WPKGclearLog.bat"
echo.
cscript.exe -Nologo "%WPKG_ROOT%\wpkg.js" /synchronize /nonotify /quiet /sendStatus /logLevel:0xFF
echo.
call "%WPKG_ROOT%\tools\WPKGclientCollect.bat"
echo.
'---code end
WPKGclearLog.bat
'---code start (watch for line wraps)
for /f "tokens=*" %%V in ('ver') do set os_ver=%%V
echo %DATE% %TIME% ERROR : %os_ver% - WPKG did not finish sucessfully! >"%SOFTWARE%\WPKG\ClientLogs\%COMPUTERNAME%.log"
'---code end
WPKGclientCollect.bat
'---code start (watch for line wraps)
set script_name=%~n0
echo %DATE% %TIME% INFO : WPKG successfully finished! >"%SOFTWARE%\WPKG\ClientLogs\%COMPUTERNAME%.log"
echo SOFTWARE .... %SOFTWARE% >"%TMP%\%script_name%.log"
echo WPKG_ROOT ... %WPKG_ROOT% >>"%TMP%\%script_name%.log"
if exist "%TMP%\wpkg-%COMPUTERNAME%.log" copy /Y "%TMP%\wpkg-%COMPUTERNAME%.log" "%SOFTWARE%\WPKG\ClientLogs\%COMPUTERNAME%.log" >>"%TMP%\%script_name%.log"
if exist "%SystemRoot%\system32\wpkg.xml" copy /Y "%SystemRoot%\system32\wpkg.xml" "%SOFTWARE%\WPKG\ClientStatus\%COMPUTERNAME%.xml" >>"%TMP%\%script_name%.log"
'---code end
--
Stefan P.
Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
More information about the wpkg-users
mailing list