Hi Daniel,

Am Freitag, 6. Juli 2012, 12:34:51 schrieb Daniel Berteaud:
> 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

That's right, yet the solution not only introduces an often too long delay, 
but is also fragile as a slower system might very well need more time than 
that.  I described a cleaner solution for most NSIS based setups a while ago 
here:

http://bugzilla.wpkg.org/show_bug.cgi?id=241#c3

Kind regards,
Malte
-------------------------------------------------------------------------
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

Reply via email to