117
edits
Changes
Add package to disable Windows Search service.
<upgrade cmd='"%SOFTWARE%\microsoft\WindowsSearch-KB940157-XP-x86-enu.exe" /quiet /norestart' />
<remove cmd='"%WINDIR%\$NtUninstallKB940157$\spuninst\spuninst.exe" /quiet /norestart' />
</package>
<!-- Windows Search slows WPKG processing significantly if set to Automatic start. We can set it to manual
using the package below. To disable Windows Search service altogether, use "4" instead of "3". -->
<package id="winsearch_Manual" name="Set Windows Search startup to Manual" revision="1" reboot="false" priority="9">
<check type="registry" condition="equals" path="HKLM\SYSTEM\CurrentControlSet\Services\WSearch\Start" value="3" />
<depends package-id="winsearch" />
<install cmd='reg add "HKLM\SYSTEM\CurrentControlSet\Services\WSearch" /v Start /t REG_DWORD /d 3 /f' >
<exit code="0" reboot="delayed" />
</install>
<upgrade cmd='reg add "HKLM\SYSTEM\CurrentControlSet\Services\WSearch" /v Start /t REG_DWORD /d 3 /f' >
<exit code="0" reboot="delayed" />
</upgrade>
<remove cmd='reg add "HKLM\SYSTEM\CurrentControlSet\Services\WSearch" /v Start /t REG_DWORD /d 2 /f' />
</package>
</source>
[[Category: Silent Installers]]