View Single Post
Old 29th August 2021, 21:35   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,446
I think the installer is excluded from End/Kill as well if you kill it by name but I'm not excluding if you do it by PId IIRC. The installer is excluded because of the issue you mentioned and the full path is not always reliable. On 95/98/ME it should always work. On other systems there will be processes you don't have access to. There should never be false positives but if someone runs your app as System for example, StrCmp $2 "$InstDir\myapp.exe" will not find it.

The FindProcDLL plug-in claims to handle short names/paths, I'm not currently doing any short name handling.

Yes, you should pop. If not to inspect the result then pop just to free the memory. Not a big deal in most cases but can be trouble if you don't pop inside a loop or callback.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote