[wpkg-users] Notepad++
Daniel Berteaud
daniel at firewall-services.com
Fri Jul 6 12:34:51 CEST 2012
Le 06/07/2012 12:07, Cedric Frayssinet a écrit :
>
> Hi !
>
> Do you have a good XML file for notepad++ because, if we use
>
> /<remove cmd='%ComSpec% /c if exist
> "%ProgramFiles%\Notepad++\uninstall.exe"
> "%ProgramFiles%\Notepad++\uninstall.exe" /S' />/
>
> Like this page : http://wpkg.org/Notepad_plus_plus
>
> Notepad++ is uninstalled but :
>
> 1. folder notepad++ is already in %programfiles%
> 2. the wpkg.xml is not updated
The problem with notepad++ uninstall (and some other programs) is that
it returns immediatly, and the check to see if it was uninstalled
successfuly runs while the uninstall runs. I use something like this
just after:
<!-- Uninstall returns immediatly, so just wait a few seconds
for it to remove before checking the status again
Unfortunatly, WINDOWS has no sleep commands -->
<remove cmd='%COMSPEC% /C ping -n 5 127.0.0.1 1>NUL 2>NUL' >
<exit code="any" />
</remove>
This way, the process will wait a few seconds, which should be enough
for the uninstall to complete before the checks run
Regards, Daniel
>
>
> Thanks for your help,
>
> Cédric
>
>
> -------------------------------------------------------------------------
> wpkg-users mailing list archives>> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
--
Daniel Berteaud
FIREWALL-SERVICES SARL.
Société de Services en Logiciels Libres
Technopôle Montesquieu
33650 MARTILLAC
Tel : 05 56 64 15 32
Fax : 05 56 64 15 32
Web : http://www.firewall-services.com
More information about the wpkg-users
mailing list