View Single Post
Old 15th June 2017, 03:06   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,891
This is a bit tricky because the uninstaller has a random name in %temp%.

I can think of two ways of dealing with this:

A) If it always has a common prefix you can search $InstDir with FindFirstFile looking for Uninst*.exe (Not sure if this works in your specific case, you might have to save the uninstaller in a subdirectory under $InstDir)

B) Use something like the WriteCustomerData function from the wiki to append something to the uninstaller after WriteUninstaller. You can then read this data in the uninstaller (reading from itself).

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