From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Silent Install for windows service pack 2, checks for file instead of registry as the registry keys seem to vary from laptop to laptop.

<package id="Win_XP_SP2" name="Service Pack 2" revision="2" reboot="true" priority="0">
    	<check type="file" condition="exists" path="%Windir%\system32\xpsp2res.dll" /> 
    	<install cmd='\\server\WindowsXP-KB835935-SP2-ENU.exe /passive /restart /n'>
    		<exit code="0" />
    	<remove cmd='\\server\WindowsXP-KB835935-SP2-ENU.exe /uninstall'>
        	<exit code="0"/>