[wpkg-users] Amending package deployment after 50% of workstations done

Marco Gaiarin gaio at sv.lnf.it
Wed Oct 28 09:21:11 CET 2009


Mandi! simplesi
  In chel di` si favelave...

> I recently made up a package to deploy Scratch 1.4.

I use the .exe, with:

<package
	id="scratch"
	name="Scratch"
	revision="14001"
	reboot="false"
	priority="50">
	<depends package-id="jre"/>

	<check type="uninstall" condition="exists" path="Scratch" />

	<install cmd='"%SOFTWARE%\WPKG\ScratchInstaller1.4.exe" /S' />
	<install cmd='%WPKGROOT%\tools\shortcut /f:"%ALLUSERSPROFILE%\Desktop\Scratch.lnk" /a:c /t:"%ProgramFiles%\Scratch\Scratch.exe" /p:\"%ProgramFiles%\Scratch\Scratch.image\"' />
	<upgrade cmd='"%SOFTWARE%\WPKG\ScratchInstaller1.4.exe" /S' />
	<upgrade cmd='%WPKGROOT%\tools\shortcut /f:"%ALLUSERSPROFILE%\Desktop\Scratch.lnk" /a:c /t:"%ProgramFiles%\Scratch\Scratch.exe" /p:\"%ProgramFiles%\Scratch\Scratch.image\"' />
	<remove cmd='cmd /c del /f /q "%ALLUSERSPROFILE%\Desktop\Scratch.lnk"' />
	<remove cmd='cmd /c start "" /wait "%ProgramFiles%\Scratch\uninstall.exe" /S _?=%ProgramFiles%\Scratch' />
</package>


I use 'shortcut' to create the... shortcut insted of copy it, and i use
'start /wait' and the uninstaller with the _? options to prevent fork


> Have I got my logic right or would I be better off leaving original package
> alone and adding a new dependant package that just does the shortcut
> copying?

I think you're right, expecially considering that .msi are very
efficient on reinstallation, normally they does nothing so there will
be minimal delay/load.

-- 
dott. Marco Gaiarin				    GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it	  tel +39-0434-842711  fax +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
	   http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the wpkg-users mailing list