17
edits
Changes
A package to modify the Windows OEM Informations on your workstations
This package will allow you to configure the OEM Information easily in the System tab of the system menu of MS Windows.
Don't forget to prepare a Bitmap image with the logo of your company
<source lang="xml">
<?xml version="1.0" encoding="utf-8" ?>
<packages>
<package
id="Oeminfo"
name="OEM Info"
revision="%version%"
priority="0"
reboot="false">
<variable name="version" value="1.2" />
<variable name="Manufacturer" value="make IT simple" />
<variable name="SupportHours" value="24/24h 7/7d" />
<variable name="SupportPhone" value="+32-473-xxxxxxx" />
<variable name="SupportURL" value="" />
<variable name="Logo" value="c:\windows\oemlogo.bmp" />
<check type="logical" condition="and">
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\Manufacturer" value="%Manufacturer%" />
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\SupportPhone" value="%SupportPhone%" />
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\SupportHours" value="%SupportHours%" />
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\SupportURL" value="%SupportURL%" />
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\Logo" value="%Logo%" />
<check type="file" condition="exists" path="%logo%" />
</check>
<install cmd='%COMSPEC% /c if exist "%SOFTWARE%\Oeminfo\oemlogo.bmp" %COMSPEC% /c copy "%SOFTWARE%\Oeminfo\oemlogo.bmp" "%Logo%"' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Manufacturer" /d "%Manufacturer%" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportPhone" /d "%SupportPhone%" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportHours" /d "%SupportHours%" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportURL" /d "%SupportURL%" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Logo" /d "%Logo%" /t REG_SZ /f' />
<upgrade include="install" />
<remove cmd='%COMSPEC% /c if exist "%SOFTWARE%\Oeminfo\oemlogo.bmp" %COMSPEC% /c del /f /q "%Logo%"' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Manufacturer" /f' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportPhone" /f' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportHours" /f' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportURL" /f' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Logo" /f' />
</package>
</source>
Don't forget to prepare a Bitmap image with the logo of your company
<source lang="xml">
<?xml version="1.0" encoding="utf-8" ?>
<packages>
<package
id="Oeminfo"
name="OEM Info"
revision="%version%"
priority="0"
reboot="false">
<variable name="version" value="1.2" />
<variable name="Manufacturer" value="make IT simple" />
<variable name="SupportHours" value="24/24h 7/7d" />
<variable name="SupportPhone" value="+32-473-xxxxxxx" />
<variable name="SupportURL" value="" />
<variable name="Logo" value="c:\windows\oemlogo.bmp" />
<check type="logical" condition="and">
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\Manufacturer" value="%Manufacturer%" />
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\SupportPhone" value="%SupportPhone%" />
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\SupportHours" value="%SupportHours%" />
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\SupportURL" value="%SupportURL%" />
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation\Logo" value="%Logo%" />
<check type="file" condition="exists" path="%logo%" />
</check>
<install cmd='%COMSPEC% /c if exist "%SOFTWARE%\Oeminfo\oemlogo.bmp" %COMSPEC% /c copy "%SOFTWARE%\Oeminfo\oemlogo.bmp" "%Logo%"' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Manufacturer" /d "%Manufacturer%" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportPhone" /d "%SupportPhone%" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportHours" /d "%SupportHours%" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportURL" /d "%SupportURL%" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Logo" /d "%Logo%" /t REG_SZ /f' />
<upgrade include="install" />
<remove cmd='%COMSPEC% /c if exist "%SOFTWARE%\Oeminfo\oemlogo.bmp" %COMSPEC% /c del /f /q "%Logo%"' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Manufacturer" /f' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportPhone" /f' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportHours" /f' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "SupportURL" /f' />
<remove cmd='reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v "Logo" /f' />
</package>
</source>