Difference between revisions of "Heise Offline-Update"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (Fixed comments in the script)
m
Line 1: Line 1:
 +
Silent installer for Heise Offline-Update.
 +
 
Download the [http://www.heise.de/ct/projekte/offlineupdate/download_uk.shtml Offline-Update] scripts.  Run the downloader and select the products you want updates for.  One note: if you're using the [http://wpkg.org/MS_Office_2007_Compatibility_Pack Compatibility Pack for the 2007 Office System] then download the updates for Office 2007.  Those patch the Compatibility Pack as well as Office 2007.
 
Download the [http://www.heise.de/ct/projekte/offlineupdate/download_uk.shtml Offline-Update] scripts.  Run the downloader and select the products you want updates for.  One note: if you're using the [http://wpkg.org/MS_Office_2007_Compatibility_Pack Compatibility Pack for the 2007 Office System] then download the updates for Office 2007.  Those patch the Compatibility Pack as well as Office 2007.
  

Revision as of 09:44, 9 June 2008

Silent installer for Heise Offline-Update.

Download the Offline-Update scripts. Run the downloader and select the products you want updates for. One note: if you're using the Compatibility Pack for the 2007 Office System then download the updates for Office 2007. Those patch the Compatibility Pack as well as Office 2007.

Once all of the downloads are complete copy the contents of the "client" folder to your server. These scripts assume the share name is "offlineupdate" and the server name is "ntinstall". You also need "rm.exe" and "mkdir.exe" from GnuWin32 in your "tools" folder.

Note: I increment the revision each Patch Tuesday. If you want this to run every time wpkg is run add 'execute="always"' to the package tag and disable the reboot.

offlineupdate.xml:

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
	id="offlineupdate"
	name="offlineupdate"
	revision="200805131"
	reboot="true"
	priority="0">

	<check type="file" condition="exists" path="%SystemDrive%\netinst\wpkg\offlineupdate.log" />

	<install cmd='cmd /c %WPKGROOT%\scripts\offlineupdate.cmd' />

	<upgrade cmd='cmd /c %WPKGROOT%\scripts\offlineupdate.cmd' />

	<remove cmd='cmd /c %WPKGROOT%\tools\rm.exe -f "%SystemDrive%\netinst\wpkg\offlineupdate.log"' />

</package>
</packages>

offlineupdate.cmd:

@echo off

:: Disconnect the o: drive (if connected)
net use /delete /y o: > nul

:: Connect the o: drive
net use /y o: \\ntinstall\offlineupdate > nul

:: Make sure that the log directly exists and is hidden
%WPKGROOT%\tools\mkdir.exe -p %SystemDrive%\netinst\wpkg
attrib +H %SystemDrive%\netinst

:: Update the system and log it
cmd /c o:\cmd\DoUpdate.cmd >%SystemDrive%\netinst\wpkg\offlineupdate.log

:: Disconnect the o: drive
net use /delete /y o: > nul