Difference between revisions of "Windows Search"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Silent Installer for Windows Search 4.0)
 
(Add package to disable Windows Search service.)
Line 10: Line 10:
 
   <upgrade cmd='"%SOFTWARE%\microsoft\WindowsSearch-KB940157-XP-x86-enu.exe" /quiet /norestart' />
 
   <upgrade cmd='"%SOFTWARE%\microsoft\WindowsSearch-KB940157-XP-x86-enu.exe" /quiet /norestart' />
 
   <remove cmd='"%WINDIR%\$NtUninstallKB940157$\spuninst\spuninst.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>
 
</package>
 
</source>
 
</source>
  
 
[[Category: Silent Installers]]
 
[[Category: Silent Installers]]

Revision as of 03:43, 25 January 2010

Silent installer for Windows Search 4.0.

WPKG Package

<!-- http://support.microsoft.com/kb/940157 -->
<package id="winsearch" name="Windows Search 4.0" revision="1" reboot="false" priority="10">
  <check type="uninstall" condition="exists" path="Windows Search 4.0" />
  <install cmd='"%SOFTWARE%\microsoft\WindowsSearch-KB940157-XP-x86-enu.exe" /quiet /norestart' />
  <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>