[wpkg-users] how delete a file

Marco Gaiarin gaio at sv.lnf.it
Thu Jan 21 17:18:07 CET 2016


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

> <install cmd='msiexec /qn /norestart /i "%source%\BBWin_0.13.msi"'>
> <exit code="1223" /> </install>
> <install cmd='%COMSPEC% /c del "C:\Program Files (x86)\BBWin\etc\BBWin.cfg" ' ><exit code="any" /> </install>

Try to verify if, for some reason, the MSI ''forks'' and so the del
command get executed, does nothing, and only after the installation pu
the \BBWin.cfg file in place.

A simple method, add a:

	<install cmd='%COMSPEC% /c if exist "C:\Program Files (x86)\BBWin\etc\BBWin.cfg" echo exist > %TEMP%\log.txt' />

or something like that.

-- 
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)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
    http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)


More information about the wpkg-users mailing list