REM	October 31, 2006
REM	This batch file is run after oobe and before desktop. The HPQware engine
REM	launches this batch file during it's PostUser install phase.
REM	This process is needed to fix IMS#58004 by resetting the LastRun
REM	value pair in the HKLM\Software\Hewlett-Packard\HP Software Update key
REM	to zero (0).
REM	Check the hpu_installLog.txt file to verify that this batch file has
REM	run.


Setlocal
set blocklog=c:\hp\bin\logs\hpu\hpu_installLog.txt

@echo			HPQWARE PostUser Registry Modifications: >> %BlockLog%
@echo			****************************************  >> %BlockLog%
@echo	%date% %time% "POSTUSER MODIFY REGISTRY ":   Modify HPU LastRun key... >> %BlockLog%
REM  ...What gets piped to the log file is "The operation completed successfully."
reg add "HKLM\Software\Hewlett-Packard\HP Software UPdate" /f /v LastRun /t REG_DWORD /d 0 >> %BlockLog%
REM ...when a section completes, pipe a completion message to the log
@echo  %date% %time% "POSTUSER MODIFY REGISTRY ": LastRun key set to zero (0) Complete. >> %BlockLog%

endlocal
del /q postuser.bat