![]() |
#1 |
Junior Member
Join Date: Mar 2010
Location: Austin, TX
Posts: 21
|
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? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You could copy it there yourself and then run it with _?=$INSTDIR.
Stu |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Mar 2010
Location: Austin, TX
Posts: 21
|
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! |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Mar 2016
Posts: 1
|
dear i am facing same problem my process name while uninstalling is Au_.exe or Bu_.exe how can i fix it please can you provide me some details.
|
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,185
|
There is currently no way to customize the name of this uninstaller file but I did change it from %UNIQUE%u_.exe to Un_%UNIQUE%.exe for the next version of NSIS 3.
You could file a feature request but it is unlikely to get fixed any time soon. There is a reason for the name the way it is and we would have to figure out a way to be able to keep most of the name while still having the ability to transform it if there is another uninstaller running at the same time. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Tags |
nsis |
Thread Tools | Search this Thread |
Display Modes | |
|
|