[wpkg-users] Notepad++

Malte Starostik lists at malte.homeip.net
Fri Jul 6 12:45:30 CEST 2012


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



More information about the wpkg-users mailing list