[prev in list] [next in list] [prev in thread] [next in thread]
List: wpkg-users
Subject: Re: [wpkg-users] Amending package deployment after 50%
From: Marco Gaiarin <gaio () sv ! lnf ! it>
Date: 2009-10-28 8:21:11
Message-ID: 20091028082110.GA4190 () sv ! lnf ! it
[Download RAW message or body]
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)
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic