Archive: Name the Uninstall Process


Name the Uninstall Process
When you launch an uninstall.exe written using WriteUninstaller, the uninstall.exe is named in the process list something to the tune of A_u.exe, or B_u.exe (depending on how many of the exe's you have launched, it will go through the alphabet).

Is there a way to set a flag to name the process for the uninstaller? The install name stays named the exe you launch. I assume this is part of the "uninstaller extracts itself to a temp directory and then launches so it doesn't retain a file lock on the folder you're trying to delete" behavior. Is it possible to retain the process name?


You could copy it there yourself and then run it with _?=$INSTDIR.

Stu


Yea, I was thinking about doing that and using "Exec" so it wouldn't block when I spawn off the child process. I just wondered if there was a directly supported NSIS method of handling this.

Thanks!